/* Base CSS - Variables, Reset, Utilities */

:root {
    --bg: #ffffff;
    --bg-soft: #f6f7fb;
    --text: #111827;
    --muted: #6b7280;
    --border: rgba(17, 24, 39, 0.1);

    --red: #e53935;
    --blue: #1976d2;
    --yellow: #fdd835;
    --green: #43a047;
    --orange: #fb8c00;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 12px;

    --shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 14px 40px rgba(17, 24, 39, 0.12);
}

/* Hilangkan spinner di Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Hilangkan spinner di Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial,
        "Apple Color Emoji",
        "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 64px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 650;
    font-size: 12px;
    border: 1px solid var(--border);
    background: #fff;
}
.badge.hot {
    border-color: rgba(229, 57, 53, 0.25);
    background: rgba(229, 57, 53, 0.08);
    color: var(--red);
}
.badge.new {
    border-color: rgba(25, 118, 210, 0.25);
    background: rgba(25, 118, 210, 0.08);
    color: var(--blue);
}
.badge.ok {
    border-color: rgba(67, 160, 71, 0.25);
    background: rgba(67, 160, 71, 0.1);
    color: var(--green);
}
.badge.warn {
    border-color: rgba(253, 216, 53, 0.35);
    background: rgba(253, 216, 53, 0.18);
    color: #8a6b00;
}
.badge.muted {
    background: rgba(17, 24, 39, 0.04);
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
    user-select: none;
}
.btn:active {
    transform: translateY(1px);
}
.btn-primary {
    color: #fff;
    /* background: linear-gradient(90deg, var(--red), var(--blue), var(--yellow)); */
    background: var(--red);
    box-shadow: 0 10px 26px rgba(25, 118, 210, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 14px 34px rgba(25, 118, 210, 0.32);
}
.btn-secondary {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}
.btn-secondary:hover {
    box-shadow: var(--shadow-sm);
}
.btn-outline {
    background: transparent;
    border-color: rgba(229, 57, 53, 0.35); 
    color: var(--red);
}
.btn-outline:hover {
    background: rgba(229, 57, 53, 0.08);
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-pad {
    padding: 18px;
}
.muted {
    color: var(--muted);
}

/* Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Sections */
.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.section-title h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.02em;
}
.section-title p {
    margin: 0;
    color: var(--muted);
}
.section {
    padding: 64px 0;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Grids */
@media (max-width: 980px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 720px) {
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 52px 0;
    }
}
