:root {
    /* Colors */
    --color-primary: #806639;
    --color-secondary: #c9a961;
    --color-dark: #3d321f;
    --color-brown-dark: #5a4a2f;
    --color-brown-darker: #472F05;
    --color-brown-light: #7a5f3a;
    --color-beige: #e8dcc8;
    --color-beige-light: #f0d9b5;
    --color-beige-medium: #d4b896;
    --color-text-dark-badge: #352201;
    --color-text-gray: #575757;
    --color-text-medium: #666;
    --color-text-light: #999;
    --color-white: #fff;
    --color-black: #000;
    --color-gold: #D3AE6D;
    --color-gold-light: #D3AE6D;
    --color-navy: #132B50;
    --color-navy-dark: #132B50;
    --color-bronze: #6D5A38;
    --color-bg-light: #f5f5f5;
    --color-bg-cream: #F5EEE1;
    --color-bg-gray: #f8f8f8;
    --color-bg-hover: #f0f0f0;
    --color-border-light: #e5e5e5;
    --color-gray: #818181;
    --color-green: #00A840;
    --color-linen: #F4F1EC;

    /* Font Sizes */
    --font-xs: clamp(0.75rem, 1.5vw, 0.875rem);
    --font-sm: clamp(0.875rem, 2vw, 1.125rem);
    --font-base: clamp(1rem, 2vw, 1.125rem);
    --font-lg: clamp(1rem, 2.5vw, 1.375rem);
    --font-xl: clamp(1.25rem, 3.5vw, 2.25rem);
    --font-2xl: clamp(1.5rem, 4vw, 2.5rem);
    --font-36: clamp(1.25rem, 3.5vw, 2.25rem);
    --font-24: clamp(1rem, 2.8vw, 1.5rem);
    --font-22: clamp(1rem, 2.5vw, 1.375rem);
    --font-18: clamp(0.875rem, 2vw, 1.125rem);
    --font-16: clamp(0.875rem, 1.8vw, 1rem);
    --font-14: clamp(0.75rem, 1.5vw, 0.875rem);
    --font-12: clamp(0.625rem, 1.2vw, 0.75rem);

    /* Font Weights */
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
}

.hukum-header-section {
    margin-top: 120px !important;
}

.hukum-title {
    color: var(--color-text-dark);
    font-size: var(--font-36);
    font-weight: var(--font-bold);
}

.hukum-description {
    color: var(--color-gray);
    font-size: var(--font-18);
    font-weight: var(--font-regular);
    font-family: Inter, Sans-Serif;
    max-width: 850px;
}

/* List Styling */
.regulation-grid .list-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.list-view .summary {
    display: none;
}

.regulation-card h4 {
    max-width: 100%;
}

/* Search Container */
.search-form-container {
    margin-bottom: 30px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    max-width: 100%;
    justify-content: space-between;
}

/* Search Input Area */
.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 40%;
}

.search-field-wrapper {
    margin: 0;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 60px 14px 20px;
    border: 1px solid var(--color-gold);
    border-radius: 50px;
    font-size: 15px;
    color: #666;
    background-color: #fff;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(180, 165, 122, 0.1);
}

.search-input::placeholder {
    color: #999;
}

/* Search Button */
.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--color-gold);
}

.search-button .search-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
}

/* Filter Dropdown */
.filter-dropdown-wrapper {
    flex-shrink: 0;
    min-width: 250px;
}

.filter-field-wrapper {
    margin: 0;
}

.filter-select {
    width: 100%;
    padding: 14px 40px 14px 20px;
    border: 1px solid var(--color-gold);
    border-radius: 50px;
    font-size: 15px;
    color: #666;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(180, 165, 122, 0.1);
}

.filter-select option {
    padding: 10px;
}

@media (max-width: 768px) {
    .search-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .search-input-wrapper {
        width: 100% !important;
        max-width: 100%;
    }

    .search-field-wrapper input {
        width: 100% !important;
    }

    .filter-dropdown-wrapper {
        width: 100%;
        min-width: 100%;
    }

    .hukum-header-section {
        margin-top: 90px !important;
    }

    .regulation-grid .list-view {
        grid-template-columns: repeat(1, 1fr);
    }
}

.search-field-wrapper .form-group,
.filter-field-wrapper .form-group {
    margin-bottom: 0;
}

.detail-title {
    font-size: var(--font-36) !important;
    font-weight: var(--font-bold) !important;
}

.btn-action-wrap {
    margin-bottom: 24px !important;
    gap: 10px !important;
    display: flex !important;
}

.btn-kep-menteri,
.btn-berlaku {
    border-radius: 24px !important;
    padding: 12px 24px !important;
}

.btn-kep-menteri {
    border: 1px solid var(--color-navy) !important;
    color: var(--color-navy) !important;
    background-color: rgba(19, 43, 80, .08) !important;
}

.btn-berlaku {
    border: 1px solid var(--color-green) !important;
    color: var(--color-green) !important;
    background-color: rgba(0, 168, 64, .14) !important;
}

.section-header-abstrak {
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 14px 14px 0 0;
}

.abstrak-badge {
    background: var(--color-text-dark-badge);
    color: #fff;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 13px;
}

.materi-pokok-content {
    padding: 18px 22px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--color-primary);
}


.meta-detail-wrapper {
    display: flex;
    gap: 2% !important;
    margin-top: 32px !important;
    flex-wrap: wrap;
}

.meta-section,
.keterangan-status-section {
    flex: 1 1 29%;
    background: #fff;
}

.keterangan-status-section {
    border: 1px solid var(--color-primary);
    border-radius: 16px;
    width: 100%;
}

.status-content {
    min-height: 200px !important;
}

.meta-table {
    width: 100% !important;
    font-size: 15px !important;
    font-family: Inter, sans-serif !important;
}

.meta-table td:first-child {
    color: #ac9152 !important;
    vertical-align: top !important;
    width: 40% !important;
}

.meta-table td {
    padding: 24px !important;
}

.meta-table td:first-child {
    color: rgba(0, 0, 0, 0.7);
}

.meta-table td:last-child {
    color: #000000;
}

.meta-table tbody tr:nth-child(odd) {
    background-color: var(--color-linen) !important;
}

.meta-table tbody tr:nth-child(even) {
    background-color: #fff !important;
}

.meta-table td {
    background-color: transparent !important;
}

.meta-table th {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    height: 43px !important;
    padding: 24px !important;
    font-size: var(--font-18) !important;
    font-weight: var(--font-bold) !important;
}

.meta-table th:first-child {
    border-radius: 14px 0 0 0;
}

.meta-table th:last-child {
    border-radius: 0 14px 0 0;
}


.btn-file-peraturan {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 50px !important;
    border-radius: 10px !important;
    font-weight: var(--font-medium) !important;
    cursor: pointer;
    font-size: var(--font-16) !important;
}

.btn-kep-menteri,
.btn-berlaku {
    border-radius: 24px !important;
    padding: 12px 24px !important;
}

.btn-kep-menteri:hover,
.btn-berlaku:hover {
    color: #fff !important;
}

.btn-kep-menteri {
    border: 1px solid var(--color-navy) !important;
    color: var(--color-navy) !important;
    background-color: rgba(19, 43, 80, .08) !important;
}

.btn-kep-menteri:hover {
    background-color: var(--color-navy) !important;
}

.btn-berlaku {
    border: 1px solid var(--color-green) !important;
    color: var(--color-green) !important;
    background-color: rgba(0, 168, 64, .14) !important;
}

.btn-berlaku:hover {
    background-color: var(--color-green) !important;
}

.btn-file-peraturan:hover {
    background-color: #5a4a2f !important;
    color: #fff !important;
}

.file-viewer-section {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid var(--color-primary) !important;
}

.meta-body {
    padding: 24px !important;
}


.meta-header {
    background-color: var(--color-primary);
    color: #fff;
    padding: 24px;
    font-size: var(--font-18);
    font-weight: var(--font-bold);
    border-radius: 16px 16px 0 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.status-content {
    padding: 10px 20px;
}

.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow: auto;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.btn-close-fullscreen {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fullscreen-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Empty State Styling */
.empty-state-wrapper {
    grid-column: 1 / -1;
    padding: 60px 20px;
}

.empty-state {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    margin-bottom: 24px;
}

.empty-state-icon svg {
    margin: 0 auto;
    display: block;
}

.empty-state-title {
    color: var(--color-text-dark);
    font-size: var(--font-24);
    font-weight: var(--font-bold);
    margin-bottom: 12px;
}

.empty-state-message {
    color: var(--color-gray);
    font-size: var(--font-16);
    line-height: 1.6;
    margin-bottom: 0;
}
