/* --------------------------------------------------------------------------
   E-REPOSITORI UNIVERSITAS BINA INSANI - MASTER STYLESHEET
   Framework: Bootstrap 5.3 + Custom CSS (No Tailwind CSS)
   Color System:
     - Primary Green: #00A669 (Brand Accent / Accent Primary)
     - Primary Dark Green: #0A8B5B (Headers, Nav, Solid Elements)
     - Primary Deep Green: #12211A (Dark Mode / Admin Sidebar)
     - Accent Gold/Yellow: #FFD100 / #F3C010 (Highlights & Badges)
     - Light Neutral: #F8FAFC / #F1F5F9 (Backgrounds)
     - Dark Text: #1E293B / #0F172A
   -------------------------------------------------------------------------- */

:root {
    --bi-primary: #00A669;
    --bi-primary-dark: #0A8B5B;
    --bi-primary-deep: #12211A;
    --bi-primary-light: #E6F6F0;
    --bi-accent: #FFD100;
    --bi-accent-hover: #E5BC00;
    --bi-text-dark: #1E293B;
    --bi-text-muted: #64748B;
    --bi-bg-light: #F8FAFC;
    --bi-border-color: #E2E8F0;
    --bi-sidebar-width: 280px;
}

html {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--bi-text-dark);
    background-color: var(--bi-bg-light);
    line-height: 1.6;
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
    margin: 0;
    padding: 0;
}

main {
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: clip !important;
}

/* --------------------------------------------------------------------------
   Full Screen Wide Container Layout System (Strictly Horizontally Contained)
   -------------------------------------------------------------------------- */
.container-wide {
    width: 100% !important;
    max-width: 1720px;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .container-wide {
        max-width: 100% !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

@media (max-width: 640px) {
    .container-wide {
        max-width: 100% !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* --------------------------------------------------------------------------
   Buttons & Badges System
   -------------------------------------------------------------------------- */
.btn-bi-primary {
    background-color: var(--bi-primary);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 166, 105, 0.2);
}

.btn-bi-primary:hover, .btn-bi-primary:focus {
    background-color: var(--bi-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 166, 105, 0.3);
}

.btn-bi-accent {
    background-color: var(--bi-accent);
    color: #12211A;
    font-weight: 700;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 209, 0, 0.3);
}

.btn-bi-accent:hover, .btn-bi-accent:focus {
    background-color: var(--bi-accent-hover);
    color: #12211A;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 209, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Top Utility Header & Navbar
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: #12211A;
    color: #E2E8F0;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--bi-primary);
}

.navbar-bi {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bi-border-color);
}

.navbar-brand-img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    max-width: 140px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bi-text-dark);
    line-height: 1.15;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.brand-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bi-primary);
    line-height: 1.15;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.nav-link-bi {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bi-text-dark) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
}

.nav-link-bi:hover, .nav-link-bi.active {
    color: var(--bi-primary) !important;
    background-color: var(--bi-primary-light);
}

/* --------------------------------------------------------------------------
   Hero Carousel Section (Ultra-Thin Green Overlay for High Campus Clarity)
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    background-color: #0A1C14;
    color: #ffffff;
    padding: 5.5rem 0;
    border-bottom: 5px solid var(--bi-accent);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(135deg, rgba(10, 25, 18, 0.35) 0%, rgba(0, 166, 105, 0.18) 50%, rgba(0, 50, 30, 0.38) 100%), url('../storage/kampus.png');
    background-size: cover;
    background-position: center;
    opacity: 0.98;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.75);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 500;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.hero-search-card,
.hero-search-card-lean {
    max-width: 1000px;
    margin: 1.5rem auto 0 auto;
}

.search-bar-unified {
    background: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
}

.search-bar-unified:focus-within {
    box-shadow: 0 15px 40px rgba(0, 166, 105, 0.35), 0 0 0 3px rgba(0, 166, 105, 0.3) !important;
    border-color: var(--bi-primary) !important;
    transform: translateY(-2px);
}

.doc-type-select-wrap {
    min-width: 190px;
}

/* --------------------------------------------------------------------------
   Alphabetical Index Strip (A - Z) Professional Styling
   -------------------------------------------------------------------------- */
.a-z-strip {
    background: #ffffff;
    border: 1px solid var(--bi-border-color);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.a-z-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #ffffff;
    color: var(--bi-text-dark);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.a-z-btn:hover {
    background: var(--bi-primary-light);
    color: var(--bi-primary-dark);
    border-color: var(--bi-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 166, 105, 0.15);
}

.a-z-btn.active {
    background: var(--bi-primary) !important;
    color: #ffffff !important;
    border-color: var(--bi-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 166, 105, 0.3);
}

.a-z-btn-wide {
    min-width: 125px;
    padding: 0 1rem;
    font-size: 0.85rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Explore by Year — Publication Distribution Chart
   -------------------------------------------------------------------------- */
.year-peak-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bi-primary-dark);
    background: var(--bi-primary-light);
    border: 1px solid rgba(0, 166, 105, 0.25);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}

.year-peak-badge strong {
    font-weight: 800;
}

.year-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    padding: 0.5rem 0.25rem 0.85rem;
    border-bottom: 1px solid var(--bi-border-color);
    overflow-x: auto;
    scrollbar-width: thin;
}

.year-chart::-webkit-scrollbar {
    height: 6px;
}

.year-chart::-webkit-scrollbar-thumb {
    background: var(--bi-border-color);
    border-radius: 999px;
}

.year-chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 58px;
    min-width: 58px;
    text-decoration: none;
}

.year-chart-value {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--bi-text-muted);
    margin-bottom: 0.45rem;
    transition: color 0.2s ease;
}

.year-chart-bar {
    width: 30px;
    min-height: 8px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, var(--bi-primary) 0%, var(--bi-primary-dark) 100%);
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.year-chart-year {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bi-text-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    transition: color 0.2s ease;
}

.year-chart-col:hover .year-chart-bar {
    opacity: 1;
    transform: scaleX(1.15);
    box-shadow: 0 6px 14px rgba(0, 166, 105, 0.3);
}

.year-chart-col:hover .year-chart-value,
.year-chart-col:hover .year-chart-year {
    color: var(--bi-primary-dark);
}

.year-chart-col.is-peak .year-chart-bar {
    background: linear-gradient(180deg, var(--bi-accent) 0%, var(--bi-accent-hover) 100%);
    opacity: 1;
}

.year-chart-col.is-peak .year-chart-year {
    color: var(--bi-primary-dark);
}

@media (prefers-reduced-motion: reduce) {
    .year-chart-bar { transition: none; }
    .year-chart-col:hover .year-chart-bar { transform: none; }
}

/* --------------------------------------------------------------------------
   Live Repository Statistics Bar & Cards System (Clean Institutional Style)
   -------------------------------------------------------------------------- */
.stat-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    border-color: #0A8B5B;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #E6F6F0;
    color: #0A8B5B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748B;
    font-weight: 600;
}

/* DataTables Theme */
.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid var(--bi-border-color);
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid var(--bi-border-color);
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--bi-primary);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 166, 105, 0.25);
}

.dataTables_wrapper .page-item.active .page-link {
    background-color: var(--bi-primary);
    border-color: var(--bi-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 166, 105, 0.25);
}

/* ADMIN PORTAL DASHBOARD STYLES */
.admin-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar {
    width: var(--bi-sidebar-width);
    background-color: #12211A;
    color: #ECFDF5;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid #1E3A2E;
    z-index: 1000;
    min-height: 100vh;
    height: auto;
    align-self: stretch;
    /* Hide Scrollbar Completely */
    scrollbar-width: none;            /* Firefox */
    -ms-overflow-style: none;         /* IE 10+ */
}

@media (min-width: 992px) {
    .admin-sidebar {
        position: sticky;
        top: 0;
        max-height: 100vh;
        overflow-y: auto;
    }
}

.admin-sidebar::-webkit-scrollbar {
    display: none;                    /* Chrome, Safari, Opera */
}

/* Sidebar Collapsed State (Hide Unhide Feature) */
.admin-wrapper.sidebar-collapsed .admin-sidebar {
    margin-left: calc(-1 * var(--bi-sidebar-width));
}

.admin-sidebar-header {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

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

.admin-nav-heading {
    padding: 0.5rem 1.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-uppercase: uppercase;
    color: var(--bi-accent);
    letter-spacing: 1px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #A7F3D0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background-color: #1A3328;
    color: #ffffff;
    border-left-color: var(--bi-accent);
}

.admin-nav-item i {
    font-size: 1.2rem;
    margin-right: 0.85rem;
}

.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #F8FAFC;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-topbar {
    background-color: #ffffff;
    height: 70px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--bi-border-color);
}

.admin-stat-widget {
    background: #ffffff;
    border: 1px solid var(--bi-border-color);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
}

.admin-stat-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 166, 105, 0.12);
    border-color: var(--bi-primary);
}

.admin-stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.bg-stat-green {
    background: #E6F6F0;
    color: var(--bi-primary);
}

.bg-stat-yellow {
    background: #FEF9C3;
    color: #CA8A04;
}

.bg-stat-blue {
    background: #E0F2FE;
    color: #0284C7;
}

.bg-stat-purple {
    background: #F3E8FF;
    color: #9333EA;
}

/* Footer */
.footer-bi {
    background-color: #16241E;
    color: #D1D5DB;
    padding: 4.5rem 0 2rem 0;
    border-top: 4px solid var(--bi-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.footer-bi a {
    color: #9CA3AF;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-bi a:hover {
    color: var(--bi-accent);
}

.footer-logo-img {
    height: 38px !important;
    width: auto !important;
    max-height: 38px !important;
    max-width: 135px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.footer-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.footer-brand-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bi-accent);
    line-height: 1.2;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.footer-desc {
    line-height: 1.6;
    color: #9CA3AF;
}

.footer-links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.footer-contact-icon {
    margin-top: 2px;
    font-size: 0.95rem;
}

.footer-contact-text {
    line-height: 1.5;
    color: #D1D5DB;
}

.footer-bottom {
    padding-top: 1.75rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Panduan Akses Section Responsive Grid (Public Home)
   -------------------------------------------------------------------------- */
.panduan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.panduan-card-wrap {
    min-width: 0;
}

.panduan-step-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--bi-border-color);
}

.panduan-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.panduan-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.panduan-card-title {
    font-size: 0.95rem;
    line-height: 1.35;
}

.panduan-card-desc {
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES (PUBLIC PAGES)
   Desktop views are NOT changed - only screens <= 991px (tablet) and <= 575px (mobile)
   ========================================================================== */

/* --------------------------------------------------------------------------
   TABLET & MOBILE NAVIGATION STYLES (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

    /* --- Navbar --- */
    .navbar-bi {
        padding: 0.45rem 0;
    }

    .navbar-brand-img {
        height: 32px;
        max-width: 120px;
    }

    .navbar-bi .navbar-brand .d-flex.flex-column span:first-child {
        font-size: 0.95rem !important;
    }

    .navbar-bi .navbar-brand .d-flex.flex-column span:last-child {
        font-size: 0.72rem !important;
    }

    /* --- Offcanvas Mobile Menu Panel --- */
    .offcanvas.offcanvas-end {
        width: 320px;
        max-width: 85vw;
        border-left: 3px solid var(--bi-primary);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    }

    .offcanvas-header {
        padding: 1rem 1.25rem;
        background: linear-gradient(180deg, #f8faf9 0%, #ffffff 100%);
        border-bottom: 1px solid var(--bi-border-color) !important;
    }

    .offcanvas-body {
        padding: 0.75rem 1rem;
    }

    .offcanvas-body .navbar-nav {
        gap: 0 !important;
        align-items: stretch !important;
    }

    .offcanvas-body .nav-link-bi {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        margin-bottom: 2px;
        font-size: 0.92rem;
    }

    .offcanvas-body .nav-link-bi:hover,
    .offcanvas-body .nav-link-bi.active {
        background-color: var(--bi-primary-light);
    }

    .offcanvas-body .nav-item.ms-lg-2 {
        margin-left: 0 !important;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--bi-border-color);
    }

    /* Offcanvas Civitas Profile & Menu Styles */
    .offcanvas-civitas-card {
        border: 1px solid var(--bi-border-color);
        background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
    }

    .offcanvas-user-menu {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .offcanvas-menu-item {
        background-color: #ffffff;
        border: 1px solid var(--bi-border-color);
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .offcanvas-menu-item:hover,
    .offcanvas-menu-item.active {
        background-color: var(--bi-primary-light);
        border-color: var(--bi-primary);
        transform: translateX(2px);
    }

    .offcanvas-menu-item.active .fw-bold {
        color: var(--bi-primary) !important;
    }

    .offcanvas-menu-icon {
        font-size: 1rem;
    }

    /* Dropdown menus inside offcanvas - stack to single column */
    .offcanvas-body .dropdown-menu {
        min-width: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        box-shadow: none !important;
        border: 1px solid var(--bi-border-color) !important;
        border-radius: 8px !important;
        margin-top: 0.25rem !important;
        padding: 0.75rem !important;
    }

    .offcanvas-body .dropdown-menu .row .col-sm-6 {
        width: 100%;
    }

    .offcanvas-body .dropdown-menu .col-sm-6.border-start {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid var(--bi-border-color);
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }

    /* Offcanvas backdrop */
    .offcanvas-backdrop.show {
        opacity: 0.4;
    }


    /* --- Hero Section --- */
    .hero-section {
        padding: 3.5rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .hero-search-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .hero-search-card .row.g-2 > div {
        margin-bottom: 0.25rem;
    }

    /* --- A-Z Strip --- */
    .a-z-strip {
        padding: 0.65rem 0.85rem;
        border-radius: 10px;
    }

    .a-z-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .a-z-btn-wide {
        min-width: 100px;
        font-size: 0.78rem;
    }

    /* --- Stat Cards --- */
    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    /* --- Content Sections --- */
    .hero-content .col-xl-9 {
        text-align: center;
    }

    /* --- Browse Page: Filter sidebar collapses on tablet --- */
    .col-xl-3.col-lg-4 .card {
        margin-bottom: 1rem;
    }

    /* --- Item Detail Show Page --- */
    .detail-header-card {
        padding: 1.5rem;
    }

    .cover-container {
        margin-bottom: 1rem;
    }

    .detail-header-card .col-lg-3 {
        text-align: center;
    }

    /* --- Table Metadata --- */
    .table-metadata th {
        width: 35% !important;
        min-width: 120px;
        font-size: 0.82rem;
    }

    .table-metadata td {
        font-size: 0.85rem;
    }

    /* --- Footer Grid on Tablet (768px - 1024px) --- */
    .footer-bi {
        padding: 3.5rem 0 1.75rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-col-brand {
        grid-column: 1 / -1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .footer-col-links {
        grid-column: 1 / 2;
    }

    .footer-col-contact {
        grid-column: 2 / 3;
    }

    .footer-links-grid {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    /* --- Panduan Grid on Tablet --- */
    .panduan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* --- Panduan Akses: Step cards & FAQ --- */
    .display-5 {
        font-size: 2rem !important;
    }

    /* --- Browse A-Z contextual strip responsive layout --- */
    .a-z-strip.d-flex.flex-wrap.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .a-z-strip .d-flex.align-items-center.gap-2:first-child {
        justify-content: center;
    }

    .a-z-strip .d-flex.flex-wrap.gap-1 {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   MOBILE STYLES (max-width: 640px) - Ponsel 320px - 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {

    /* --- Global & Container --- */
    .container-wide {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    /* --- Top Utility Bar --- */
    .top-bar {
        display: none !important;
    }

    /* --- Navbar --- */
    .navbar-bi {
        padding: 0.35rem 0;
    }

    .navbar-brand-img {
        height: 26px;
        max-width: 95px;
    }

    .navbar-bi .navbar-brand .d-flex.flex-column span:first-child {
        font-size: 0.82rem !important;
    }

    .navbar-bi .navbar-brand .d-flex.flex-column span:last-child {
        font-size: 0.64rem !important;
    }

    .navbar-bi .navbar-brand .d-flex.flex-column.border-start {
        padding-left: 0.5rem !important;
    }

    .navbar-toggler {
        padding: 0.35rem 0.65rem;
    }

    .offcanvas.offcanvas-end {
        width: 290px;
        max-width: 80vw;
    }

    .offcanvas-body {
        padding: 0.65rem 0.85rem;
    }

    /* --- Hero Section --- */
    .hero-section {
        padding: 2.5rem 0 2rem 0;
    }

    .hero-title {
        font-size: 1.55rem;
        letter-spacing: -0.3px;
        line-height: 1.25;
        margin-bottom: 0.85rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .hero-search-card {
        padding: 1rem;
        margin-top: 1.25rem;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .hero-search-card .form-label {
        font-size: 0.78rem !important;
    }

    .hero-search-card .input-group-lg .form-control,
    .hero-search-card .input-group-lg .input-group-text {
        font-size: 0.88rem;
        padding: 0.55rem 0.75rem;
    }

    .hero-search-card .form-select-lg {
        font-size: 0.88rem;
        padding: 0.55rem 0.75rem;
    }

    .hero-search-card .btn-lg {
        font-size: 0.88rem;
        padding: 0.6rem 0.75rem !important;
    }

    /* Popular search tags in hero */
    .hero-search-card .mt-3.d-flex.flex-wrap {
        justify-content: center;
    }

    .hero-search-card .mt-3 .badge {
        font-size: 0.72rem;
    }

    /* --- Hero Badge (Official Institutional Repository) --- */
    .hero-content .badge.bg-warning {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem !important;
    }

    /* --- Alphabetical Index Strip (A-Z) on Home --- */
    .py-3.bg-white.border-bottom .d-flex.flex-wrap.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.85rem !important;
    }

    .py-3.bg-white.border-bottom .d-flex.align-items-center.gap-2 {
        text-align: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.25rem !important;
    }

    .py-3.bg-white.border-bottom .d-flex.align-items-center.gap-2 i.fs-4 {
        display: none;
    }

    .py-3.bg-white.border-bottom h6.fw-bold {
        font-size: 0.85rem;
    }

    .a-z-strip {
        padding: 0.5rem 0.65rem;
        border-radius: 8px;
        justify-content: center;
    }

    .a-z-btn {
        min-width: 28px;
        height: 28px;
        font-size: 0.72rem;
        padding: 0 0.3rem;
        border-radius: 6px;
    }

    .a-z-btn-wide {
        min-width: 80px;
        font-size: 0.72rem;
        padding: 0 0.65rem;
    }

    /* --- Stat Cards --- */
    .stat-card {
        padding: 1rem 0.85rem;
        border-radius: 10px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
        border-radius: 8px;
    }

    .stat-number {
        font-size: 1.35rem;
        margin-bottom: 0.2rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    /* --- Recent Items Cards (Home Page) --- */
    .d-flex.flex-column.gap-3.mb-5 .card {
        padding: 0.85rem !important;
    }

    .d-flex.flex-column.gap-3.mb-5 .card .d-flex.flex-column.flex-md-row {
        gap: 0.65rem !important;
    }

    .d-flex.flex-column.gap-3.mb-5 .card .bg-light.p-3.rounded {
        padding: 0.65rem !important;
        min-width: auto !important;
        flex-direction: row !important;
        gap: 0.5rem;
    }

    .d-flex.flex-column.gap-3.mb-5 .card .bg-light.p-3.rounded i.fs-1 {
        font-size: 1.5rem !important;
    }

    .d-flex.flex-column.gap-3.mb-5 .card h5.fw-bold {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .d-flex.flex-column.gap-3.mb-5 .card .text-muted.small.mb-2.line-clamp-2 {
        display: none;
    }

    /* --- Main Content Section Header --- */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.65rem;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 h4 {
        font-size: 1.05rem;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 .btn {
        width: 100%;
        text-align: center;
    }

    /* --- Koleksi Utama Cards --- */
    .col-md-4.col-sm-6 .card {
        padding: 0.85rem !important;
    }

    .col-md-4.col-sm-6 .card h6 {
        font-size: 0.82rem;
    }

    .col-md-4.col-sm-6 .card .small.text-muted {
        font-size: 0.72rem !important;
    }

    /* --- Sidebar: Faculty Structure & Popular Authors (home) --- */
    .col-lg-4 .card.border-0.shadow-sm.rounded-3 {
        padding: 1rem !important;
    }

    .col-lg-4 .card h5 {
        font-size: 0.95rem;
    }

    /* --- Panduan Akses Section (Home Bottom) --- */
    #kebijakan-akses .d-flex.flex-wrap.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.85rem !important;
    }

    #kebijakan-akses h3 {
        font-size: 1.15rem;
    }

    #kebijakan-akses .btn {
        width: 100%;
        text-align: center;
    }

    /* --- Panduan Grid on Mobile --- */
    .panduan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .panduan-step-card {
        padding: 0.75rem !important;
    }

    .panduan-card-title {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .panduan-card-desc {
        font-size: 0.7rem;
        line-height: 1.35;
    }

    .panduan-icon-circle {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    /* --- Footer Grid on Mobile --- */
    .footer-bi {
        padding: 2.75rem 0 1.5rem 0;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .footer-col-brand {
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1.25rem;
    }

    .footer-links-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem 0.75rem;
    }

    .footer-links-grid li a {
        display: flex;
        align-items: center;
        font-size: 0.82rem;
        padding: 0.2rem 0;
    }

    .footer-contact-list {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .footer-contact-item {
        font-size: 0.82rem;
        gap: 0.6rem;
    }

    .footer-heading {
        font-size: 0.98rem;
        margin-bottom: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 0.4rem;
    }

    .footer-bottom {
        padding-top: 1.25rem;
        margin-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.78rem;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem !important;
    }

    /* --- BROWSE PAGE --- */

    /* Browse Header */
    .bg-dark.text-white.py-4 h2 {
        font-size: 1.25rem;
    }

    .bg-dark.text-white.py-4 .breadcrumb {
        font-size: 0.75rem;
    }

    /* Browse A-Z filter bar */
    .a-z-strip.d-flex.flex-wrap.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: center !important;
        gap: 0.65rem !important;
        padding: 0.65rem;
    }

    .a-z-strip .d-flex.align-items-center.gap-2:first-child {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem !important;
    }

    .a-z-strip .d-flex.flex-wrap.gap-1 {
        justify-content: center;
    }

    /* Browse Filter Panel - Full width on mobile */
    .col-xl-3.col-lg-4 {
        order: 2;
    }

    .col-xl-9.col-lg-8 {
        order: 1;
    }

    /* Browse Table DataTable */
    #repositoryDataTable thead th:nth-child(2),
    #repositoryDataTable thead th:nth-child(3),
    #repositoryDataTable tbody td:nth-child(2),
    #repositoryDataTable tbody td:nth-child(3) {
        display: none;
    }

    #repositoryDataTable thead th:first-child {
        width: 100% !important;
    }

    #repositoryDataTable tbody td .py-1 h6 {
        font-size: 0.85rem;
        line-height: 1.35;
    }

    #repositoryDataTable tbody td .py-1 .small.text-muted {
        font-size: 0.75rem;
    }

    #repositoryDataTable tbody td .py-1 .text-truncate {
        display: none;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: center !important;
        float: none !important;
        margin-bottom: 0.5rem;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 0.35rem;
    }

    .dataTables_wrapper .dataTables_info {
        text-align: center;
        font-size: 0.78rem;
    }

    .dataTables_wrapper .dataTables_paginate {
        text-align: center !important;
        float: none !important;
        margin-top: 0.5rem;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.78rem;
    }

    /* --- SHOW / DETAIL PAGE --- */

    /* Detail header badge row */
    .bg-dark.text-white .d-flex.flex-wrap.align-items-center.gap-2 {
        gap: 0.35rem !important;
    }

    .bg-dark.text-white .d-flex.flex-wrap.align-items-center.gap-2 .badge,
    .bg-dark.text-white .d-flex.flex-wrap.align-items-center.gap-2 .badge-doc-type {
        font-size: 0.68rem;
    }

    .bg-dark.text-white h2.fw-bold {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    /* Detail header card - cover and info stack */
    .detail-header-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .detail-header-card .cover-container {
        max-width: 180px;
        margin: 0 auto 1rem auto;
    }

    .detail-header-card h4.fw-bold {
        font-size: 1rem;
        line-height: 1.35;
    }

    .detail-header-card .row.g-3.small .col-md-6 {
        font-size: 0.78rem;
    }

    .detail-header-card .d-flex.flex-wrap.gap-2 .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.35rem;
    }

    /* Citation box */
    .citation-box {
        flex-direction: column;
        gap: 0.65rem !important;
    }

    .citation-box code,
    .citation-box pre {
        font-size: 0.75rem;
        word-break: break-all;
    }

    /* Metadata table */
    .table-metadata {
        font-size: 0.78rem;
    }

    .table-metadata th {
        width: 38% !important;
        min-width: 90px;
        font-size: 0.75rem;
        padding: 0.5rem !important;
    }

    .table-metadata td {
        font-size: 0.78rem;
        padding: 0.5rem !important;
        word-break: break-word;
    }

    /* Document files list on show page */
    .col-xl-4.col-lg-5 .card-body .list-group-item {
        padding: 0.65rem !important;
    }

    .col-xl-4.col-lg-5 .list-group-item .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.5rem;
    }

    .col-xl-4.col-lg-5 .list-group-item .d-flex.justify-content-between.align-items-center.mt-2 {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Access restricted policy box */
    .access-restricted-box {
        padding: 1rem !important;
    }

    .access-restricted-box h6 {
        font-size: 0.88rem;
    }

    /* --- EXPLORE PAGE --- */

    /* Explore dimension selector bar */
    .card.border-0.shadow-sm.rounded-3.mb-4.p-3 .d-flex.flex-wrap.align-items-center.gap-2 {
        justify-content: center;
    }

    .card.border-0.shadow-sm.rounded-3.mb-4.p-3 .btn-sm {
        font-size: 0.72rem;
        padding: 0.3rem 0.6rem;
    }

    /* Explore by year — distribution chart */
    .year-chart {
        gap: 0.4rem;
    }

    .year-chart-col {
        flex: 1 1 42px;
        min-width: 42px;
    }

    .year-chart-bar {
        width: 22px;
    }

    .year-chart-value {
        font-size: 0.68rem;
    }

    .year-chart-year {
        font-size: 0.68rem;
    }

    .year-peak-badge {
        font-size: 0.72rem;
        padding: 0.35rem 0.7rem;
        white-space: normal;
    }

    /* --- PANDUAN AKSES PAGE --- */

    /* Panduan header */
    .bg-gradient-bi .display-5 {
        font-size: 1.45rem !important;
        line-height: 1.25;
    }

    .bg-gradient-bi .lead {
        font-size: 0.88rem !important;
    }

    .bg-gradient-bi .col-lg-4.text-lg-end {
        text-align: center !important;
    }

    .bg-gradient-bi .btn-lg {
        font-size: 0.88rem;
        padding: 0.65rem 1.25rem !important;
        width: 100%;
    }

    /* Panduan step cards */
    .col-lg-3.col-md-6 .card.rounded-4 {
        padding: 1.25rem !important;
    }

    .col-lg-3.col-md-6 .card.rounded-4 h5 {
        font-size: 1rem;
    }

    /* FAQ accordion */
    .accordion-button {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .accordion-body {
        padding: 0.75rem 1rem;
        font-size: 0.82rem !important;
    }

    /* Registration Detail Card */
    .card.rounded-4.p-4.p-md-5 {
        padding: 1.25rem !important;
    }

    .card.rounded-4.p-4.p-md-5 h4 {
        font-size: 1.05rem;
    }

    /* --- Login Modal on Mobile --- */
    .modal-content {
        margin: 0.5rem;
    }

    .modal-body.p-4 {
        padding: 1.25rem !important;
    }
}

/* --------------------------------------------------------------------------
   SMALL MOBILE STYLES (max-width: 374px) - For very small phones
   -------------------------------------------------------------------------- */
@media (max-width: 374px) {

    .container-wide {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
    }

    .hero-search-card {
        padding: 0.85rem;
    }

    .a-z-btn {
        min-width: 25px;
        height: 25px;
        font-size: 0.65rem;
    }

    .a-z-btn-wide {
        min-width: 65px;
    }

    .stat-number {
        font-size: 1.15rem;
    }

    .stat-label {
        font-size: 0.68rem;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 0.75rem 0.5rem;
    }

    .footer-bi h5 {
        font-size: 0.92rem;
    }
}

/* --------------------------------------------------------------------------
   TABLET RESPONSIVE STYLES (min-width: 641px and max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 641px) and (max-width: 1024px) {

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-search-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    /* Browse table - keep 2nd column on tablet */
    #repositoryDataTable thead th:nth-child(2),
    #repositoryDataTable tbody td:nth-child(2) {
        display: table-cell;
    }

    #repositoryDataTable thead th:nth-child(3),
    #repositoryDataTable tbody td:nth-child(3) {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   PRINT & ACCESSIBILITY
   -------------------------------------------------------------------------- */
@media print {
    .top-bar,
    .navbar-bi,
    .footer-bi,
    .a-z-strip,
    .hero-search-card {
        display: none !important;
    }

    .hero-section {
        padding: 1rem 0;
        background: #fff !important;
        color: #000 !important;
    }

    .hero-title {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* --------------------------------------------------------------------------
   TOUCH-FRIENDLY HELPERS (mobile & tablet)
   -------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {

    .a-z-btn {
        min-width: 34px;
        height: 34px;
    }

    .btn-sm {
        min-height: 36px;
        padding: 0.4rem 0.85rem;
    }

    .form-control-sm,
    .form-select-sm {
        min-height: 40px;
        font-size: 0.88rem;
    }

    /* Prevent double-tap-to-zoom on interactive elements */
    .nav-link-bi,
    .a-z-btn,
    .btn,
    .dropdown-item {
        touch-action: manipulation;
    }
}

/* --------------------------------------------------------------------------
   UNIVERSITAS BINA INSANI - HIGH-END PROFESSIONAL DOCUMENT VIEWER & DETAIL MODAL
   Redesigned for Ultra-clean Application Window Experience
   -------------------------------------------------------------------------- */

/* Global Document Preview Modal Window */
.bi-doc-modal .modal-dialog {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.3s ease;
}

.bi-doc-modal .modal-content {
    background: #0F172A !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

/* Modal Title Bar / Header (Dark Pro Theme) */
.bi-doc-modal-header {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%) !important;
    border-bottom: 1px solid #334155 !important;
    padding: 1rem 1.5rem !important;
    position: relative;
    z-index: 10;
}

.bi-doc-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF !important;
    line-height: 1.3;
    margin-bottom: 0.15rem;
    letter-spacing: -0.3px;
}

.bi-doc-modal-subtitle {
    font-size: 0.82rem;
    color: #94A3B8 !important;
    font-weight: 500;
    line-height: 1.4;
}

/* Tool Buttons in Preview Header */
.btn-doc-tool {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #E2E8F0 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 8px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-doc-tool:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

.btn-doc-tool-primary {
    background: linear-gradient(135deg, #0A8B5B 0%, #10B981 100%) !important;
    border: 1px solid #34D399 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(10, 139, 91, 0.35) !important;
}

.btn-doc-tool-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #0A8B5B 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 16px rgba(10, 139, 91, 0.45) !important;
}

/* Chapter Switcher Tabs (Dark Segmented Capsule Bar) */
.bi-doc-nav-wrapper {
    background: #0B1120 !important;
    border-bottom: 1px solid #1E293B !important;
    position: relative;
}

.bi-doc-nav-tabs {
    background: #0B1120 !important;
    border-bottom: 1px solid #1E293B !important;
    padding: 0.6rem 1.25rem !important;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
    white-space: nowrap;
}

.bi-doc-nav-tabs::-webkit-scrollbar {
    display: none;
}

.bi-doc-nav-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-right: 0.25rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    user-select: none;
}

.bi-doc-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem 0.35rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bi-doc-nav-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 0.15rem;
    flex-shrink: 0;
}

.bi-doc-nav-tab {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.38rem 0.82rem;
    border-radius: 18px;
    border: 1px solid transparent;
    background: transparent;
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
    line-height: 1.35;
}

.bi-doc-nav-tab .tab-num {
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.1rem;
}

.bi-doc-nav-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.15);
}

.bi-doc-nav-tab.active {
    background: linear-gradient(135deg, #0A8B5B 0%, #10B981 100%) !important;
    border-color: #34D399 !important;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.45) !important;
}

.bi-doc-nav-tab.active i {
    color: #FFFFFF !important;
}

.bi-doc-nav-tab.active .tab-num {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* Document Viewer Area (Dark Canvas & Iframe) */
.bi-doc-viewer-area {
    background: #070B14 !important;
    min-height: 78vh;
    position: relative;
    overflow: hidden;
}

.bi-doc-viewer-area iframe {
    background: #070B14 !important;
    border: 0 !important;
}

.bi-doc-spinner-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFFFFF;
    z-index: 5;
    background: rgba(15, 23, 42, 0.9);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

.bi-doc-modal-footer {
    background: #0F172A !important;
    border-top: 1px solid #1E293B !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.82rem;
    color: #94A3B8 !important;
}

/* Google Drive Dedicated Interactive Preview Card */
.bi-doc-gdrive-card {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    max-width: 680px;
    width: 100%;
    color: #F8FAFC;
}

/* --------------------------------------------------------------------------
   PUBLIC REPOSITORY DOCUMENT PREVIEW MODAL (CLEAN GREEN, WHITE & GRAY THEME)
   Desain terang elegan sesuai identitas resmi Universitas Bina Insani
   -------------------------------------------------------------------------- */
.bi-public-doc-modal .modal-dialog {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.3s ease;
}

.bi-public-doc-modal .modal-content {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 166, 105, 0.15) !important;
    border-radius: 16px;
    overflow: hidden;
}

.bi-public-doc-modal-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
    border-top: 4px solid var(--bi-primary, #00A669) !important;
    padding: 1.1rem 1.5rem !important;
    position: relative;
    z-index: 10;
}

.bi-public-doc-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A !important;
    line-height: 1.3;
    margin-bottom: 0.15rem;
    letter-spacing: -0.3px;
}

.bi-public-doc-modal-subtitle {
    font-size: 0.84rem;
    color: #64748B !important;
    font-weight: 500;
    line-height: 1.4;
}

.bi-public-doc-viewer-area {
    background: #F1F5F9 !important;
    min-height: 78vh;
    position: relative;
    overflow: hidden;
}

.bi-public-doc-viewer-area iframe {
    background: #F1F5F9 !important;
    border: 0 !important;
}

.bi-public-doc-spinner-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #0F172A !important;
    z-index: 5;
    background: rgba(255, 255, 255, 0.96) !important;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(10px);
}

.bi-public-doc-modal-footer {
    background: #F8FAFC !important;
    border-top: 1px solid #E2E8F0 !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.84rem;
    color: #64748B !important;
}

/* Global Icon Spacing Helper & Utilities */
.me-1\.5 {
    margin-right: 0.375rem !important;
}
.ms-1\.5 {
    margin-left: 0.375rem !important;
}
.gap-1\.5 {
    gap: 0.375rem !important;
}
.p-1\.5 {
    padding: 0.375rem !important;
}
.px-2\.5 {
    padding-left: 0.625rem !important;
    padding-right: 0.625rem !important;
}
.py-1\.5 {
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}

/* Ensure Button & Action Pill Icons have natural, non-cramped spacing */
.btn > i:first-child:not(:last-child),
.btn > svg:first-child:not(:last-child) {
    margin-right: 0.45rem;
}
.staff-action-pill i {
    margin-right: 0.45rem;
}
.staff-stat-card small i {
    margin-right: 0.35rem;
}
.admin-stat-widget small i {
    margin-right: 0.35rem;
}

/* ==========================================================================
   MODAL DETAIL METADATA & BERKAS - HIGH-END STRUCTURED DESIGN
   ========================================================================== */

.modal-detail-dialog {
    max-width: 1100px;
    margin: 1.5rem auto;
}

.modal-detail-dialog .modal-content {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 18px !important;
    box-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.25) !important;
    overflow: hidden;
}

/* Modal Detail Header (Deep Navy Slate with Institutional Glow Accent) */
.modal-detail-header {
    background: linear-gradient(135deg, #0B1120 0%, #1E293B 60%, #0F172A 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.35rem 1.75rem !important;
    position: relative;
    overflow: hidden;
}

.modal-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0A8B5B 0%, #FFD100 50%, #0A8B5B 100%);
}

.modal-header-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFD100;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Modal Body Background */
.modal-detail-body {
    background-color: #F8FAFC !important;
    padding: 1.75rem 2rem !important;
}

/* Section Cards Inside Modal Detail */
.metadata-section-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 1.5rem !important;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.metadata-section-card:last-child {
    margin-bottom: 0 !important;
}

.metadata-section-card:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07) !important;
}

.metadata-section-header {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metadata-section-body {
    padding: 1.5rem 1.5rem !important;
}

/* Metadata Definition Table (Rock-Solid 2-Column Responsive Layout) */
.meta-table {
    width: 100%;
    margin-bottom: 0;
}

.meta-table tr td {
    padding: 0.95rem 0.6rem;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.meta-table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0.2rem;
}

.meta-table tr:first-child td {
    padding-top: 0.2rem;
}

.meta-table td.meta-lbl {
    width: 230px;
    min-width: 190px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    display: table-cell;
}

.meta-table td.meta-val,
.meta-val {
    font-size: 0.92rem;
    font-weight: 500;
    color: #0F172A;
    line-height: 1.65;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Judul Karya Ilmiah Content Box (Wrap naturally when exceeding modal width) */
.title-content-box {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-left: 4px solid #0A8B5B !important;
    border-radius: 10px !important;
    padding: 1.15rem 1.35rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.65 !important;
    color: #0F172A !important;
    text-align: justify !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    margin-bottom: 1.25rem !important;
}

/* Abstract Content Box (Guaranteed Fluid Text Wrapping & No Horizontal Scrolling) */
.abstract-content-box {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-left: 4px solid #0A8B5B !important;
    border-radius: 10px !important;
    padding: 1.25rem 1.5rem !important;
    font-size: 0.92rem !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    text-align: justify !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

/* Status Workflow Banner (Spacious & Cleanly Aligned) */
.status-workflow-banner {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 1.25rem 1.75rem !important;
    margin-bottom: 1.5rem !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.status-workflow-banner.is-approved { border-left: 6px solid #10B981 !important; }
.status-workflow-banner.is-rejected { border-left: 6px solid #EF4444 !important; }
.status-workflow-banner.is-pending  { border-left: 6px solid #F59E0B !important; }

.status-indicator-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.status-indicator-icon.is-approved { background: #ECFDF5; color: #10B981; border: 1px solid #A7F3D0; }
.status-indicator-icon.is-rejected { background: #FEF2F2; color: #EF4444; border: 1px solid #FECACA; }
.status-indicator-icon.is-pending  { background: #FFFBEB; color: #F59E0B; border: 1px solid #FDE68A; }

.status-date-badge {
    font-size: 0.82rem;
    font-family: var(--bs-font-monospace, monospace);
    color: #475569;
    background: #F8FAFC;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 0.25rem;
}

/* Digital File Preview Card & Spaced Action Buttons */
.file-preview-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 1.25rem 1.35rem !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.file-preview-card:hover {
    border-color: #0A8B5B !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10, 139, 91, 0.12) !important;
}

.file-preview-card .file-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.file-card-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem !important;
    margin-top: 1.15rem;
    padding-top: 0.95rem;
    border-top: 1px solid #F1F5F9;
}

.btn-action-tool {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #475569 !important;
    padding: 0.42rem 0.75rem !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease !important;
    text-decoration: none;
}

.btn-action-tool:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #94A3B8 !important;
    transform: translateY(-1px);
}

.btn-action-download {
    background: #F0FDF4 !important;
    border: 1px solid #BBF7D0 !important;
    color: #16A34A !important;
    padding: 0.42rem 0.75rem !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease !important;
    text-decoration: none;
}

.btn-action-download:hover {
    background: #16A34A !important;
    color: #FFFFFF !important;
    border-color: #16A34A !important;
    transform: translateY(-1px);
}

/* Live Pulse Dot Animation */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulseDotAnim 2s infinite ease-in-out;
    vertical-align: middle;
}

.pulse-dot.pulse-green {
    background-color: #10B981;
    box-shadow: 0 0 8px #10B981;
}

.pulse-dot.pulse-amber {
    background-color: #F59E0B;
    box-shadow: 0 0 8px #F59E0B;
}

.pulse-dot.pulse-red {
    background-color: #EF4444;
    box-shadow: 0 0 8px #EF4444;
}

@keyframes pulseDotAnim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* ============================================================================
   WORKFLOW & SUBMISSION DATA TABLE (SPACIOUS, ELEGANT & AIRY)
   ============================================================================ */
.table-workflow {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 0 !important;
}

.table-workflow thead th {
    background: #F8FAFC !important;
    color: #475569 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 1.05rem 1.25rem !important;
    border-top: 1px solid #E2E8F0 !important;
    border-bottom: 2px solid #E2E8F0 !important;
    white-space: nowrap;
}

.table-workflow tbody tr td {
    padding: 1.2rem 1.25rem !important;
    border-bottom: 1px solid #F1F5F9 !important;
    vertical-align: middle !important;
    background: #FFFFFF;
    transition: background-color 0.15s ease;
}

.table-workflow tbody tr:hover td {
    background: #F8FAFC !important;
}

.table-workflow tbody tr:last-child td {
    border-bottom: none !important;
}

/* ID Tag */
.id-tag {
    font-family: var(--bs-font-monospace, monospace);
    font-weight: 700;
    font-size: 0.8rem;
    color: #475569;
    background: #F1F5F9;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    display: inline-block;
    white-space: nowrap;
}

/* Author Meta Line */
.work-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.45;
    margin-bottom: 0.35rem;
}

.work-author-line {
    font-size: 0.8rem;
    color: #64748B;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

/* Document Chips Container & Modern Badge System */
.doc-chips-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    min-width: 250px;
}

.doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-family: var(--bs-font-monospace, monospace);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.32rem 0.65rem;
    border-radius: 7px;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.2;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.doc-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.doc-chip-open { background: #ECFDF5; color: #0F172A !important; font-weight: 700; border-color: #A7F3D0; }
.doc-chip-restricted { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.doc-chip-jurnal { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.doc-chip-gdrive { background: #F8FAFC; color: #1E293B; border-color: #CBD5E1; }

/* Status Chip */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--bs-font-monospace, monospace);
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-chip-approved { background: #ECFDF5; color: #0F172A !important; font-weight: 700; border-color: #A7F3D0; }
.status-chip-rejected { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.status-chip-pending  { background: #FFFBEB; color: #D97706; border-color: #FDE68A; }

/* Action Buttons inside Table Row */
.table-action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Prominent Declaration & Agreement Card Component
   -------------------------------------------------------------------------- */
.declaration-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #cbd5e1;
    border-left: 6px solid #f59e0b;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.declaration-card:hover {
    border-color: #94a3b8;
    border-left-color: #f59e0b;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.declaration-card:has(#agreementCheck:checked),
.declaration-card.is-agreed {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    border-color: #0A8B5B !important;
    border-left: 6px solid #0A8B5B !important;
    box-shadow: 0 6px 24px rgba(10, 139, 91, 0.18) !important;
}

.declaration-icon-badge {
    width: 40px;
    height: 40px;
    background: #fef3c7;
    color: #b45309;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.declaration-card:has(#agreementCheck:checked) .declaration-icon-badge,
.declaration-card.is-agreed .declaration-icon-badge {
    background: #0A8B5B;
    color: #ffffff;
    transform: scale(1.05);
}

.declaration-badge-pending {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1.5px solid #fde68a !important;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.2s ease;
    font-family: var(--bs-font-monospace, monospace);
}

.declaration-badge-approved {
    background-color: #0A8B5B !important;
    color: #ffffff !important;
    border: 1.5px solid #0A8B5B !important;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.2s ease;
    font-family: var(--bs-font-monospace, monospace);
}

.declaration-body-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.declaration-body-box:hover {
    border-color: #0A8B5B;
    background: #fafafa;
    box-shadow: 0 4px 12px rgba(10, 139, 91, 0.08);
}

.declaration-card:has(#agreementCheck:checked) .declaration-body-box,
.declaration-card.is-agreed .declaration-body-box {
    background: rgba(255, 255, 255, 0.95);
    border-color: #86efac;
    box-shadow: 0 2px 10px rgba(10, 139, 91, 0.08);
}

.declaration-checkbox {
    width: 1.45rem !important;
    height: 1.45rem !important;
    min-width: 1.45rem !important;
    margin-top: 0.15rem !important;
    cursor: pointer !important;
    border: 2px solid #64748b !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

.declaration-checkbox:hover {
    border-color: #0A8B5B !important;
}

.declaration-checkbox:checked {
    background-color: #0A8B5B !important;
    border-color: #0A8B5B !important;
}

.declaration-checkbox:focus {
    box-shadow: 0 0 0 0.25rem rgba(10, 139, 91, 0.25) !important;
    border-color: #0A8B5B !important;
}

/* Global Icon & Spacing Fixes */
.btn > i:first-child:not(:last-child),
.btn > svg:first-child:not(:last-child) {
    margin-right: 0.5rem;
}
.rounded-pill i:first-child:not(:last-child) {
    margin-right: 0.5rem;
}
.badge > i:first-child:not(:last-child) {
    margin-right: 0.35rem;
}
.me-0\.5 { margin-right: 0.125rem !important; }
.me-1\.5 { margin-right: 0.375rem !important; }
.me-2\.5 { margin-right: 0.625rem !important; }
.ms-0\.5 { margin-left: 0.125rem !important; }
.ms-1\.5 { margin-left: 0.375rem !important; }
.ms-2\.5 { margin-left: 0.625rem !important; }
.gap-0\.5 { gap: 0.125rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }

/* --------------------------------------------------------------------------
   Prodi Interactive Accordion & Yearly Publication Lists
   -------------------------------------------------------------------------- */
.prodi-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}

.prodi-accordion .accordion-item:hover {
    border-color: #cbd5e1;
}

.prodi-accordion .accordion-button {
    background-color: #f8fafc;
    box-shadow: none !important;
    color: #1e293b;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.prodi-accordion .accordion-button:focus {
    box-shadow: 0 0 0 2px rgba(0, 166, 105, 0.25) !important;
}

.prodi-accordion .accordion-button:not(.collapsed) {
    background-color: #e8f7f0;
    color: #0A8B5B;
    font-weight: 700;
}

.prodi-accordion .accordion-button::after {
    background-size: 0.85rem;
    width: 0.85rem;
    height: 0.85rem;
}

.prodi-year-item {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.prodi-year-item:hover {
    background-color: #E6F6F0 !important;
    border-color: var(--bi-primary) !important;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 166, 105, 0.12);
}

.prodi-year-card {
    background-color: #f8fafc;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.prodi-year-card:hover {
    border-color: #00A669;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 166, 105, 0.08);
}

.publication-mini-item {
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.publication-mini-item:hover {
    background-color: #f1f5f9;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   ENHANCED FLUIDITY, TOUCH TARGETS & STRICT ZERO-HORIZONTAL-OVERFLOW RULES
   - Mobile: 320px - 640px (Ponsel)
   - Tablet: 641px - 1024px (Tablet)
   - Desktop: > 1024px (Preserved completely intact)
   ========================================================================== */

/* Universal Fluid Imagery & Elements */
img, svg, video, canvas {
    max-width: 100%;
    box-sizing: border-box;
}

/* Safe word break for general body text only */
body {
    overflow-wrap: break-word;
}

code, pre, .font-monospace {
    overflow-wrap: anywhere;
    word-break: break-all;
}

/* Base Touch Enhancement */
button,
a,
input,
select,
textarea,
.btn,
.nav-link,
.dropdown-item,
.page-link,
.a-z-btn {
    touch-action: manipulation;
}

/* Table strict responsiveness */
.table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
}

/* --------------------------------------------------------------------------
   MOBILE SCREENS (320px - 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {

    /* Prevent auto-zoom on iOS */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Container & Gutters: Eliminate negative margin overflow */
    .container-wide,
    .container,
    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .row {
        margin-left: -0.375rem !important;
        margin-right: -0.375rem !important;
    }

    .row > [class*="col-"],
    .row > * {
        padding-left: 0.375rem !important;
        padding-right: 0.375rem !important;
        min-width: 0 !important;
    }

    /* Navbar Brand: Compact & Non-overflowing */
    .navbar-bi {
        padding: 0.4rem 0 !important;
    }

    .navbar-brand {
        max-width: calc(100vw - 65px) !important;
        min-width: 0 !important;
        margin-right: 0 !important;
        gap: 0.35rem !important;
    }

    .navbar-brand-img {
        height: 24px !important;
        max-width: 90px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .brand-title,
    .navbar-bi .navbar-brand .d-flex.flex-column span:first-child {
        font-size: 0.84rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .brand-subtitle,
    .navbar-bi .navbar-brand .d-flex.flex-column span:last-child {
        font-size: 0.65rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        letter-spacing: 0.2px !important;
    }

    .navbar-toggler {
        padding: 0.25rem 0.45rem !important;
        font-size: 1.1rem !important;
    }

    /* Hero Section: Compact */
    .hero-section {
        padding: 2rem 0 1.5rem 0 !important;
    }

    .hero-title {
        font-size: 1.4rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.6rem !important;
    }

    .hero-subtitle {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
        margin-bottom: 1rem !important;
    }

    .hero-search-card,
    .hero-search-card-lean {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 1rem !important;
        box-sizing: border-box !important;
    }

    .search-bar-unified {
        border-radius: 14px !important;
        padding: 0.5rem !important;
        gap: 0.35rem !important;
    }

    .search-bar-unified input {
        font-size: 0.88rem !important;
    }

    .doc-type-select-wrap {
        border-top: 1px solid #e2e8f0;
        padding: 0.4rem 0.75rem !important;
    }

    /* A-Z Alphabetical Index Strip */
    .a-z-strip {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 3px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        justify-content: center !important;
        padding: 0.5rem !important;
    }

    .a-z-btn {
        min-width: 27px !important;
        width: 27px !important;
        height: 27px !important;
        font-size: 0.72rem !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        border-radius: 6px !important;
        line-height: 1 !important;
    }

    .a-z-btn-wide {
        min-width: 72px !important;
        width: auto !important;
        height: 27px !important;
        font-size: 0.72rem !important;
        padding: 0 0.45rem !important;
        flex-shrink: 0 !important;
    }

    /* Stat Cards */
    .stat-card {
        padding: 0.75rem 0.5rem !important;
        border-radius: 8px !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .stat-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
        margin-bottom: 0.25rem !important;
    }

    .stat-number {
        font-size: 1.15rem !important;
        margin-bottom: 0.1rem !important;
        line-height: 1.2 !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }

    /* Recent Items Cards */
    .d-flex.flex-column.gap-3.mb-5 .card {
        padding: 0.75rem !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .recent-doc-type-box,
    .d-flex.flex-column.gap-3.mb-5 .card .bg-light.p-3.rounded {
        min-width: 0 !important;
        width: 100% !important;
        padding: 0.45rem 0.65rem !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
    }

    .d-flex.flex-column.gap-3.mb-5 .card h5.fw-bold {
        font-size: 0.88rem !important;
        line-height: 1.35 !important;
    }

    /* Right Column: Faculties, Prodi & Yearly items */
    .col-lg-4 .card.border-0.shadow-sm.rounded-3 {
        padding: 0.85rem !important;
    }

    .prodi-accordion .accordion-button {
        padding: 0.5rem 0.65rem !important;
        font-size: 0.78rem !important;
    }

    .prodi-year-card {
        padding: 0.45rem !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .publication-mini-item {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .publication-mini-item a {
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
    }

    /* Touch Target Sizing (Sentuhan Jari) */
    .btn:not(.btn-sm):not(.btn-xs) {
        min-height: 44px;
        padding: 0.625rem 1.15rem;
    }

    .btn-sm {
        min-height: 38px;
        padding: 0.4rem 0.75rem !important;
    }

    /* Breadcrumbs on small screens */
    .breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    /* Modal Responsive Dialog */
    .modal-dialog {
        margin: 0.5rem auto !important;
        max-width: calc(100vw - 1rem) !important;
    }

    /* Document Viewer inside Modal on Mobile */
    .bi-doc-viewer-area,
    .bi-public-doc-viewer-area {
        min-height: 58vh !important;
    }

    /* Detail Page Header Card */
    .detail-header-card {
        padding: 1rem !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }
}

/* --------------------------------------------------------------------------
   EXTRA SMALL MOBILE (max-width: 374px)
   -------------------------------------------------------------------------- */
@media (max-width: 374px) {
    .container-wide,
    .container,
    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .hero-title {
        font-size: 1.25rem !important;
    }

    .a-z-btn {
        min-width: 23px !important;
        width: 23px !important;
        height: 23px !important;
        font-size: 0.65rem !important;
    }

    .a-z-btn-wide {
        min-width: 62px !important;
        height: 23px !important;
        font-size: 0.65rem !important;
        padding: 0 0.35rem !important;
    }

    .navbar-brand-img {
        height: 20px !important;
        max-width: 75px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .brand-title {
        font-size: 0.76rem !important;
    }

    .brand-subtitle {
        font-size: 0.60rem !important;
    }
}

/* --------------------------------------------------------------------------
   TABLET SCREENS (641px - 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 641px) and (max-width: 1024px) {
    .container-wide {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .bi-doc-viewer-area,
    .bi-public-doc-viewer-area {
        min-height: 68vh !important;
    }
}

/* ==========================================================================
   SHADCN / UI MODERN TOAST NOTIFICATION SYSTEM (UNIVERSITAS BINA INSANI)
   ========================================================================== */

.shadcn-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 105500;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 440px;
    width: calc(100vw - 2.5rem);
    pointer-events: none;
}

.shadcn-toast {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -6px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.shadcn-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.shadcn-toast.hiding {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 1, 1);
}

.shadcn-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 1.05rem 1.15rem;
    position: relative;
}

.shadcn-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Icon variations */
.shadcn-toast-icon.toast-icon-store,
.shadcn-toast-icon.toast-icon-login,
.shadcn-toast-icon.toast-icon-success {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #059669;
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18);
}

.shadcn-toast-icon.toast-icon-update {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #2563EB;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.shadcn-toast-icon.toast-icon-delete {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    color: #475569;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.shadcn-toast-icon.toast-icon-logout {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    color: #1E293B;
    border: 1.5px solid rgba(51, 65, 85, 0.25);
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.12);
}

.shadcn-toast-icon.toast-icon-error,
.shadcn-toast-icon.toast-icon-store_error,
.shadcn-toast-icon.toast-icon-update_error,
.shadcn-toast-icon.toast-icon-delete_error {
    background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
    color: #E11D48;
    border: 1px solid rgba(225, 29, 72, 0.3);
}

.shadcn-toast-icon.toast-icon-warning,
.shadcn-toast-icon.toast-icon-validation {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.shadcn-toast-body {
    flex-grow: 1;
    min-width: 0;
    padding-right: 0.25rem;
}

.shadcn-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.shadcn-toast-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.shadcn-toast-badge {
    font-size: 0.65rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.shadcn-toast-user-row {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.shadcn-toast-message {
    font-size: 0.8125rem;
    color: #64748B;
    line-height: 1.45;
    margin: 0;
    word-break: break-word;
}

.shadcn-toast-close {
    background: transparent;
    border: none;
    color: #94A3B8;
    padding: 0.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: -0.25rem;
    margin-right: -0.25rem;
}

.shadcn-toast-close:hover {
    background-color: #F1F5F9;
    color: #0F172A;
}

.shadcn-toast-progress {
    height: 3px;
    width: 100%;
    background-color: rgba(226, 232, 240, 0.7);
    position: relative;
    overflow: hidden;
}

.shadcn-toast-progress-bar {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: left;
}

/* Progress bar colors */
.shadcn-toast-progress-bar.progress-success,
.shadcn-toast-progress-bar.progress-store,
.shadcn-toast-progress-bar.progress-login {
    background: linear-gradient(90deg, #059669 0%, #10B981 100%);
}

.shadcn-toast-progress-bar.progress-update {
    background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%);
}

.shadcn-toast-progress-bar.progress-delete {
    background: linear-gradient(90deg, #475569 0%, #64748B 100%);
}

.shadcn-toast-progress-bar.progress-logout {
    background: linear-gradient(90deg, #0F172A 0%, #334155 100%);
}

.shadcn-toast-progress-bar.progress-error,
.shadcn-toast-progress-bar.progress-store_error,
.shadcn-toast-progress-bar.progress-update_error,
.shadcn-toast-progress-bar.progress-delete_error {
    background: linear-gradient(90deg, #E11D48 0%, #F43F5E 100%);
}

.shadcn-toast-progress-bar.progress-warning,
.shadcn-toast-progress-bar.progress-validation {
    background: linear-gradient(90deg, #D97706 0%, #F59E0B 100%);
}

/* Mobile responsive toast */
@media (max-width: 640px) {
    .shadcn-toast-container {
        top: 0.85rem;
        right: 0.85rem;
        left: 0.85rem;
        width: auto;
        max-width: none;
    }

    .shadcn-toast {
        border-radius: 14px;
    }

    .shadcn-toast-content {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .shadcn-toast-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .shadcn-toast-title {
        font-size: 0.88rem;
    }

    .shadcn-toast-badge {
        max-width: 120px;
    }

    .shadcn-toast-message {
        font-size: 0.785rem;
    }
}





/* ==========================================================================
   PANDUAN AKSES — HALAMAN MANUAL AKSES & PENDAFTARAN (DEDICATED PAGE)
   Namespace: `.ag-*` (Access Guide) — terpisah dari `.panduan-grid` di atas
   yang dipakai untuk widget ringkas di homepage. Layout mengandalkan CSS
   Grid asli (bukan Bootstrap row/col) agar kolom benar-benar menyesuaikan
   di mobile & tablet, bukan sekadar wrap.
   ========================================================================== */

/* --- Hero --- */
.ag-hero {
    padding: 3.5rem 0;
    background: linear-gradient(155deg, var(--bi-primary-deep) 0%, var(--bi-primary-dark) 62%, var(--bi-primary) 130%);
}

.ag-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bi-accent);
    margin-bottom: 0.9rem;
}

.ag-hero-kicker::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--bi-accent);
    display: inline-block;
}

.ag-hero-title {
    font-size: clamp(1.65rem, 1.1rem + 2vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.18;
    margin-bottom: 0.85rem;
    color: #ffffff;
}

.ag-hero-desc {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    max-width: 620px;
    margin-bottom: 0;
}

.ag-hero-cta.btn-bi-accent {
    padding: 0.85rem 1.75rem;
    font-weight: 700;
}

/* --- Kicker & judul section, dipakai konsisten di semua bagian halaman --- */
.ag-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bi-primary-dark);
}

.ag-kicker::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--bi-primary);
    display: inline-block;
}

.ag-section-title {
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem);
    font-weight: 800;
    color: var(--bi-text-dark);
    margin: 0.6rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.ag-section-desc {
    color: var(--bi-text-muted);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 0;
}

.ag-panel-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bi-text-dark);
    margin: 0.55rem 0 0.85rem;
    letter-spacing: -0.01em;
}

.ag-panel-desc {
    color: var(--bi-text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* --- Steps: CSS Grid murni, kolom berubah per breakpoint --- */
.ag-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    align-items: stretch;
}

.ag-step {
    --ag-tone: var(--bi-primary);
    --ag-bar: var(--bi-primary);
    position: relative;
    background: #ffffff;
    border: 1px solid var(--bi-border-color);
    border-radius: 14px;
    padding: 1.5rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ag-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ag-bar);
}

.ag-step:hover {
    border-color: var(--ag-tone);
    box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.18);
    transform: translateY(-2px);
}

.ag-step[data-tone="a"] { --ag-tone: var(--bi-primary-dark); --ag-bar: var(--bi-primary); }
.ag-step[data-tone="b"] { --ag-tone: var(--bi-primary-dark); --ag-bar: var(--bi-primary-dark); }
.ag-step[data-tone="c"] { --ag-tone: #8A6D00; --ag-bar: var(--bi-accent); }
.ag-step[data-tone="d"] { --ag-tone: var(--bi-primary-deep); --ag-bar: var(--bi-primary-deep); }

.ag-step-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.ag-step-num {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ag-tone);
    opacity: 0.16;
    font-variant-numeric: tabular-nums;
}

.ag-step-tag {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ag-tone);
    padding-top: 0.4rem;
    white-space: nowrap;
}

.ag-step-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--bi-text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.ag-step-desc {
    font-size: 0.86rem;
    color: var(--bi-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ag-step-detail,
.ag-step-list,
.ag-step-status {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--bi-border-color);
    font-size: 0.79rem;
}

.ag-step-detail { margin-bottom: 0; }

.ag-step-detail > div + div { margin-top: 0.6rem; }

.ag-step-detail dt {
    color: var(--bi-text-muted);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.ag-step-detail dd {
    margin: 0;
    color: var(--bi-text-dark);
    font-weight: 600;
}

.ag-step-detail code,
.ag-reg-item code {
    background: var(--bi-bg-light);
    border: 1px solid var(--bi-border-color);
    padding: 0.15rem 0.4rem;
    border-radius: 5px;
    color: var(--bi-primary-dark);
    font-size: 0.78rem;
    word-break: break-word;
}

.ag-step-list {
    list-style: none;
    padding-left: 0;
    font-size: 0.82rem;
    color: var(--bi-text-dark);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0;
}

.ag-step-list li {
    position: relative;
    padding-left: 1.15rem;
    line-height: 1.5;
}

.ag-step-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ag-tone);
}

.ag-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ag-tone);
    margin-bottom: 0.45rem;
}

.ag-status-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ag-tone);
}

.ag-step-status p {
    font-size: 0.79rem;
    color: var(--bi-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* --- Panel detail registrasi + kebijakan RBAC: CSS Grid 2 kolom --- */
.ag-panel {
    padding: 2rem 1.5rem;
}

.ag-detail-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 2.25rem;
    align-items: start;
}

.ag-reg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ag-reg-item {
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--bi-border-color);
    border-radius: 12px;
    background: var(--bi-bg-light);
}

.ag-reg-item h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--bi-text-dark);
    margin-bottom: 0.4rem;
}

.ag-reg-item p {
    font-size: 0.82rem;
    color: var(--bi-text-muted);
    line-height: 1.6;
    margin: 0;
}

.ag-tier-wrap {
    background: var(--bi-primary-deep);
    border-radius: 14px;
    padding: 1.5rem 1.4rem;
    height: 100%;
}

.ag-tier-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.1rem;
}

.ag-tier-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.ag-tier {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ag-tier:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ag-tier-num {
    font-size: 0.72rem;
    font-weight: 800;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--bi-primary-deep);
    background: rgba(255, 255, 255, 0.92);
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ag-tier[data-level="2"] .ag-tier-num { background: var(--bi-primary); color: #ffffff; }
.ag-tier[data-level="3"] .ag-tier-num { background: var(--bi-accent); color: var(--bi-primary-deep); }

.ag-tier strong {
    display: block;
    font-size: 0.86rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.ag-tier p {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

/* --- FAQ --- */
.ag-faq .accordion-item {
    border: 1px solid var(--bi-border-color);
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.ag-faq .accordion-item:last-child { margin-bottom: 0; }

.ag-faq .accordion-button {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--bi-text-dark);
    padding: 1rem 1.15rem;
}

.ag-faq .accordion-button:not(.collapsed) {
    background: var(--bi-primary-light);
    color: var(--bi-primary-dark);
    box-shadow: none;
}

.ag-faq .accordion-button:focus {
    box-shadow: none;
}

.ag-faq .accordion-button:focus-visible {
    outline: 2px solid var(--bi-primary);
    outline-offset: -2px;
}

.ag-faq-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--bi-text-muted);
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.ag-faq .accordion-body {
    padding: 0 1.15rem 1.15rem 1.15rem;
    color: var(--bi-text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
    .ag-step { transition: none; }
    .ag-step:hover { transform: none; }
}

/* ==========================================================================
   PANDUAN AKSES — RESPONSIVE TABLET (641px – 1024px)
   ========================================================================== */
@media (min-width: 641px) and (max-width: 1024px) {
    .ag-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .ag-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .ag-tier-wrap { height: auto; }

    .ag-panel { padding: 1.75rem 1.35rem; }
}

/* ==========================================================================
   PANDUAN AKSES — RESPONSIVE MOBILE (≤ 640px)
   ========================================================================== */
@media (max-width: 640px) {
    .ag-hero { padding: 2.5rem 0; }

    .ag-hero-cta.btn-bi-accent {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    .ag-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ag-step { padding: 1.25rem 1.1rem 1.15rem; }

    .ag-step-num { font-size: 1.7rem; }

    .ag-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ag-reg-grid { grid-template-columns: 1fr; }

    .ag-tier-wrap { height: auto; }

    .ag-panel { padding: 1.5rem 1.1rem; }

    .ag-section-title { font-size: 1.3rem; }

    .ag-panel-title { font-size: 1.1rem; }

    .ag-faq .accordion-button {
        font-size: 0.85rem;
        padding: 0.85rem 0.9rem;
    }

    .ag-faq .accordion-body {
        padding: 0 0.9rem 0.9rem 0.9rem;
        font-size: 0.8rem;
    }
}