*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #212529;
    background: #f5f5f5;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 20px 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.header__subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 16px;
}

.search-wrap {
    margin-top: 12px;
}

.search {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #f8f9fa;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
    background: #fff;
}

/* Kategori sections */
.kategori {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.kategori.is-hidden {
    display: none;
}

.kategori__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: none;
    border-bottom: 2px solid #e9ecef;
    cursor: pointer;
    text-align: left;
}

.kategori__toggle:hover {
    background: #f8f9fa;
}

.kategori__nama {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #495057;
}

.kategori__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #6c757d;
    border-bottom: 2px solid #6c757d;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.kategori.is-collapsed .kategori__chevron {
    transform: rotate(-45deg);
}

.kategori.is-collapsed .kategori__content {
    display: none;
}

.kategori__content {
    padding: 0;
}

/* Table - mobile card layout */
.guide-table {
    width: 100%;
    border-collapse: collapse;
}

.guide-table thead {
    display: none;
}

.guide-table tbody tr {
    display: block;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
}

.guide-table tbody tr:last-child {
    border-bottom: none;
}

.guide-table tbody tr.is-hidden {
    display: none;
}

.guide-table td {
    display: block;
    padding: 4px 0;
}

.guide-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 4px;
}

.guide-table td:first-child::before {
    display: none;
}

.guide-table td:first-child {
    margin-bottom: 8px;
}

/* Shortcut pill */
.shortcut-pill {
    display: inline-block;
    background: #e9ecef;
    color: #212529;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Contoh list */
.contoh-list {
    list-style: none;
    padding: 0;
}

.contoh-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    color: #495057;
    font-size: 0.95rem;
}

.contoh-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #adb5bd;
}

.text-muted {
    color: #adb5bd;
}

/* Empty / no results */
.empty-state,
.no-results {
    text-align: center;
    padding: 40px 16px;
    color: #6c757d;
}

.no-results {
    background: #fff;
    border-radius: 8px;
    margin-top: 20px;
}

/* Footer */
.footer {
    padding: 24px 0;
    text-align: center;
    margin-top: 32px;
}

.footer a {
    color: #adb5bd;
    font-size: 0.8rem;
    text-decoration: none;
}

.footer a:hover {
    color: #6c757d;
}

/* Desktop table layout */
@media (min-width: 768px) {
    .header__title {
        font-size: 1.5rem;
    }

    .kategori__toggle {
        pointer-events: none;
        cursor: default;
    }

    .kategori__chevron {
        display: none;
    }

    .table-wrap {
        overflow-x: auto;
    }

    .guide-table thead {
        display: table-header-group;
    }

    .guide-table thead th {
        padding: 12px 16px;
        text-align: left;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #6c757d;
        background: #f8f9fa;
        border-bottom: 2px solid #e9ecef;
    }

    .guide-table thead th:first-child {
        width: 140px;
    }

    .guide-table tbody tr {
        display: table-row;
        padding: 0;
    }

    .guide-table tbody tr:hover {
        background: #f8f9fa;
    }

    .guide-table td {
        display: table-cell;
        padding: 14px 16px;
        vertical-align: top;
        border-bottom: 1px solid #e9ecef;
    }

    .guide-table td::before {
        display: none;
    }

    .guide-table td:first-child {
        margin-bottom: 0;
    }
}
