:root {
    --esijil-blue: #003366;
    --esijil-red: #CC0000;
    --esijil-yellow: #FFCC00;
    --esijil-white: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-banner {
    background: linear-gradient(135deg, var(--esijil-blue) 0%, #004488 50%, var(--esijil-red) 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--esijil-blue), var(--esijil-yellow), var(--esijil-red), var(--esijil-white));
}

.jalur-gemilang {
    height: 4px;
    background: linear-gradient(90deg, var(--esijil-blue) 25%, var(--esijil-yellow) 25%, var(--esijil-yellow) 50%, var(--esijil-red) 50%, var(--esijil-red) 75%, var(--esijil-white) 75%);
}

.search-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.15);
}

.btn.btn-esijil,
a.btn.btn-esijil,
button.btn.btn-esijil {
    --bs-btn-bg: var(--esijil-blue);
    --bs-btn-border-color: var(--esijil-blue);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #002244;
    --bs-btn-hover-border-color: #002244;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #001a33;
    --bs-btn-active-border-color: #001a33;
    --bs-btn-focus-shadow-rgb: 0, 51, 102;
    background-color: var(--esijil-blue) !important;
    border: 2px solid var(--esijil-blue) !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.35);
    min-height: 48px;
    letter-spacing: 0.02em;
}

.btn.btn-esijil:hover,
a.btn.btn-esijil:hover,
button.btn.btn-esijil:hover {
    background-color: #002244 !important;
    border-color: #002244 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 51, 102, 0.45);
    transform: translateY(-1px);
}

.btn.btn-esijil:active,
a.btn.btn-esijil:active,
button.btn.btn-esijil:active {
    background-color: #001a33 !important;
    border-color: #001a33 !important;
    transform: translateY(0);
}

.btn.btn-download,
button.btn.btn-download {
    --bs-btn-bg: var(--esijil-red);
    --bs-btn-border-color: var(--esijil-red);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #990000;
    --bs-btn-hover-border-color: #990000;
    --bs-btn-hover-color: #ffffff;
    background-color: var(--esijil-red) !important;
    border: 2px solid var(--esijil-red) !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.35);
    min-height: 48px;
    letter-spacing: 0.02em;
}

.btn.btn-download:hover,
button.btn.btn-download:hover {
    background-color: #990000 !important;
    border-color: #990000 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(204, 0, 0, 0.45);
    transform: translateY(-1px);
}

.btn.btn-download:active,
button.btn.btn-download:active {
    background-color: #770000 !important;
    border-color: #770000 !important;
    transform: translateY(0);
}

.btn-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.admin-sidebar {
    background-color: var(--esijil-blue);
    width: 260px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

.admin-sidebar-logo {
    width: 42px;
    height: 42px;
    background: var(--esijil-yellow);
    color: var(--esijil-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.admin-sidebar-nav {
    padding: 0.75rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.7rem 1.25rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: var(--esijil-yellow);
    font-weight: 600;
}

.admin-sidebar .nav-icon {
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.nav-section-label {
    display: block;
    padding: 0.5rem 1.25rem 0.25rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.admin-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: auto;
}

.admin-sidebar-offcanvas {
    background-color: var(--esijil-blue);
    width: 280px !important;
}

.admin-sidebar-offcanvas .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.25rem;
}

.admin-sidebar-offcanvas .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.admin-content {
    padding: 1.5rem;
    background-color: #f4f6f9;
}

.admin-body {
    background-color: #f4f6f9;
}

.admin-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-page-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--esijil-blue);
}

.admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.admin-table-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 0;
}

.admin-table-footer .pagination {
    margin-bottom: 0;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

@media (max-width: 991.98px) {
    .admin-content {
        padding: 1rem;
    }
}

.stat-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.privacy-notice {
    background-color: #f8f9fa;
    border-left: 4px solid var(--esijil-yellow);
    padding: 1rem;
    font-size: 0.9rem;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-overlay.show {
    display: flex;
}

footer.esijil-footer {
    background-color: var(--esijil-blue);
    color: white;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 2rem 0;
    }

    .hero-banner h1 {
        font-size: 1.5rem;
    }
}
