/* Dasar Hukum Page Styles */
.dasar-hukum-container {
    padding: 1rem 0;
    max-width: 95vw;
    margin: 0 auto;
    overflow-x: hidden;
}
/* Hero Styles untuk Judul Dokumen dengan Gambar */
.judul-dokumen-hero {
    position: relative;
    padding: 20px 0;
    margin: 0 auto;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.judul-dokumen-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.judul-dokumen-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.judul-dokumen-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.837); /* Putih transparan */
    z-index: 2;
}

.judul-dokumen-hero-content {
    position: relative;
    z-index: 3;
    max-width: 85vw;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.judul-dokumen-hero-text h3 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 550;
    color: var(--primary-dark);
    text-align: center;
}

.judul-dokumen-hero-text h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
    text-align: center;    
}

/* Responsive Design untuk Hero dengan Gambar */
@media (max-width: 992px) {
    .judul-dokumen-hero {
        min-height: 220px;
    }
    
    .judul-dokumen-hero-text h1 {
        font-size: 1.9rem;
    }
    
    .judul-dokumen-hero-text h3 {
        font-size: 1.1rem;
    }
    
}

@media (max-width: 768px) {
    .judul-dokumen-hero {
        padding: 40px 0;
        min-height: 100px;
        margin-bottom: 1rem;
    }
    
    .judul-dokumen-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 0 20px;
    }
    
    .judul-dokumen-hero-text h1 {
        font-size: 2rem;
    }
    
    .judul-dokumen-hero-text h3 {
        font-size: 1rem;
    }
    
}

@media (max-width: 576px) {
    .judul-dokumen-hero {
        padding: 30px 0;
        min-height: 75px;
        margin-bottom: 1rem;
    }
    
    .judul-dokumen-hero-text h1 {
        font-size: 1.8rem;
    }
    
    .judul-dokumen-hero-text h3 {
        font-size: 0.95rem;
    }
    
}

.container h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 0.5;
    color: var(--black);
}

/* Breadcrumb Container */
.custom-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    background-color: #f5f5f5; /* Warna default light */
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333; /* Warna teks default */
}

/* Breadcrumb Items */
.custom-breadcrumb span:not(.divider) {
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Link Normal */
.custom-breadcrumb a {
    color: #e0e0e0; /* Abu-abu muda */
    text-decoration: none;
    font-weight: 500;
}

/* Link Hover */
/* .custom-breadcrumb a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.589);
    text-decoration: none;
    
} */

/* Divider - Pastikan Terlihat */
.custom-breadcrumb .divider {
    color: #666; 
    font-weight: bold;
    display: inline-block; 
}

/* Active Item */
/* .custom-breadcrumb .active {
    color: #1d1d1d;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 600;
} */

/* Dark Mode */
/* @media (prefers-color-scheme: dark) {
    .custom-breadcrumb {
        background-color: #2a2a2a;
    }
    .custom-breadcrumb .divider {
        color: #ccc;
    } 
} */

/* Layout Improvements */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px;
}

.col-lg-8, .col-lg-4 {
    padding: 0 20px;
    box-sizing: border-box;
}

.col-lg-8 {
    flex: 0 0 80%;
    max-width: 80%;
    height: fit-content;
}

.col-lg-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 1024px) {
    /* Layout Improvements */
    .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -20px;
    }

    .col-lg-8, .col-lg-4 {
        padding: 0 20px;
        box-sizing: border-box;
    }

    .col-lg-8 {
        flex: 0 0 75%;
        max-width: 75%;
        height: fit-content;
    }

    .col-lg-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 992px) {
    .col-lg-8, .col-lg-4 {
        flex: 0 0 100%;
        margin: auto;
        max-width: 95%;
    }
}

/* =============== KONTEN DASAR HUKUM SECTION =============== */
/* Main Container */
.dasar-hukum-container {
    padding: 3rem 0;
}

/* Search Section */
.search-section-dasar-hukum {
    margin-top: 2rem;
}

.modern-search-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.search-toggle {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    color: var(--primary-medium);
}

.advanced-search-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.advanced-search-form.expanded {
    max-height: 500px;
}

.search-filters {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-medium);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.search-btn,
.reset-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn {
    background-color: var(--primary-medium);
    color: white;
}

.search-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.reset-btn {
    background-color: #6c757d;
    color: white;
}

.reset-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Data Controls */
.data-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.total-info {
    font-size: 1rem;
    color: var(--text-dark);
}

.total-info strong {
    color: var(--primary-dark);
}

.controls-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.control-group select {
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.control-group select:focus {
    outline: none;
    border-color: var(--primary-medium);
}

/* Search Result Info */
.search-result-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.search-result-info p {
    margin: 0;
    color: var(--primary-dark);
    font-weight: 500;
}

/* Dasar Hukum List */
.dasar-hukum-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.dasar-hukum-card {
    display: flex;
    background-color: var(--white);
    border: 1px solid var(--primary-very-light);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
}

.dasar-hukum-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
    background-color: #122b370f;
}

.card-pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--gray);
    min-width: 80px;
}

.card-pdf-icon img {
    width: 50px;
    height: 50px;
}

.card-content {
    flex: 1;
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.nomor-tahun {
    color: var(--primary-medium);
    font-size: 14px;
}

.jenis-dokumen {
    background-color: var(--primary-very-light);
    color: var(--primary-medium);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.card-body {
    margin-bottom: 15px;
}

.judul-dasar-hukum {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
}

.urutan-badge {
    background: #e7f3ff;
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--primary-medium);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-medium);
    font-size: 14px;
}

.info-item i {
    color: var(--primary-medium);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background-color: #e8f6ef;
    color: #27ae60;
}

.status-badge.inactive {
    background-color: #fce8e8;
    color: #e74c3c;
}

/* Loading and No Data States */
.loading,
.no-data {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.loading i,
.no-data i {
    font-size: 3rem;
    color: var(--primary-medium);
    margin-bottom: 1rem;
}

.loading p,
.no-data p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.pagination-item {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-item:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-medium);
    color: var(--primary-dark);
}

.pagination-item.active {
    background-color: var(--primary-medium);
    border-color: var(--primary-medium);
    color: white;
}

.pagination-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-item:disabled:hover {
    background-color: transparent;
    border-color: #e9ecef;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dasar-hukum-hero {
        height: 200px;
    }
    
    .dasar-hukum-hero-text h1 {
        font-size: 2rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .data-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .controls-right {
        justify-content: space-between;
    }
    
    .dasar-hukum-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .search-btn,
    .reset-btn {
        width: 100%;
        justify-content: center;
    }
    
    .controls-right {
        flex-direction: column;
        gap: 1rem;
    }
    
    .control-group {
        justify-content: space-between;
    }
}