/* 
 * BAP NESAPA - Main Styling
 * Theme: Navy Blue (#0f2b5c) & White
 * Modern Android-inspired UI, Clean & Responsive
 */

:root {
    --primary-navy: #0f2b5c;
    --primary-navy-dark: #0a1c3d;
    --primary-navy-light: #1e3a8a;
    --accent-blue: #2563eb;
    --accent-cyan: #0284c7;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-radius: 14px;
    --btn-radius: 10px;
    --shadow-sm: 0 2px 8px rgba(15, 43, 92, 0.05);
    --shadow-md: 0 4px 20px rgba(15, 43, 92, 0.08);
    --shadow-lg: 0 10px 30px rgba(15, 43, 92, 0.12);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Gradients */
.bg-navy {
    background-color: var(--primary-navy) !important;
    color: #ffffff;
}

.bg-navy-gradient {
    background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 60%, var(--primary-navy-light) 100%);
    color: #ffffff;
}

.text-navy {
    color: var(--primary-navy) !important;
}

/* Card Styling */
.card-modern {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-modern:hover {
    box-shadow: var(--shadow-md);
}

.card-header-modern {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 1.4rem;
    font-weight: 600;
}

/* Mobile & Android Feel */
.btn-modern {
    border-radius: var(--btn-radius);
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-modern:active {
    transform: scale(0.98);
}

.btn-navy {
    background-color: var(--primary-navy);
    color: #ffffff;
    border: none;
}

.btn-navy:hover, .btn-navy:focus {
    background-color: var(--primary-navy-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 43, 92, 0.25);
}

/* Form Controls with Modern Look */
.form-control, .form-select {
    border-radius: var(--btn-radius);
    border: 1.5px solid var(--border-color);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-navy-light);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-navy);
}

/* Signature Pad Area */
.signature-box {
    border: 2px dashed #cbd5e1;
    border-radius: var(--card-radius);
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
    touch-action: none;
}

.signature-box.active {
    border-color: var(--primary-navy);
    background-color: #ffffff;
}

.signature-canvas {
    width: 100%;
    height: 180px;
    touch-action: none;
    cursor: crosshair;
    display: block;
}

/* ========================================================
   Admin Layout: Desktop Sidebar (Left) & Mobile Swipe-Up
   ======================================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

/* 1. Desktop Sidebar */
.admin-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1035;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 16px rgba(15, 43, 92, 0.04);
}

.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}
.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-brand-header {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-user-card {
    padding: 0.75rem 1rem;
    margin: 0.75rem 0.85rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.sidebar-menu-wrapper {
    padding: 0.35rem 0.75rem 1.5rem 0.75rem;
    flex-grow: 1;
}

.sidebar-heading {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    padding: 0.75rem 0.65rem 0.35rem 0.65rem;
    margin-top: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    margin-bottom: 0.2rem;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-link:hover {
    background: #eff6ff;
    color: var(--primary-navy);
    transform: translateX(3px);
}

.sidebar-link:hover i {
    color: var(--primary-navy);
}

.sidebar-link.active {
    background: var(--primary-navy);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 43, 92, 0.2);
}

.sidebar-link.active i {
    color: #ffffff !important;
}

.sidebar-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

/* 2. Main Content & Responsive Header */
.admin-content {
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: #f8fafc;
}

.admin-topbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 10px rgba(15, 43, 92, 0.03);
}

@media (min-width: 992px) {
    .admin-sidebar {
        display: flex !important;
    }
    .admin-content {
        margin-left: 260px !important;
        width: calc(100% - 260px) !important;
        padding-bottom: 40px !important;
    }
    .admin-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        display: none !important; /* Smartphone uses Swipe Up Bottom Sheet */
    }
    .admin-topbar {
        padding: 0.75rem 1rem;
    }
    .admin-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-bottom: 105px !important; /* Space for bottom nav: guarantees bottom content is never obscured */
    }
    .admin-bottom-nav {
        display: flex !important;
    }
    .main-container-guru,
    .android-app-container,
    .content-wrapper {
        padding-bottom: 105px !important;
    }
    .pagination-android {
        margin-bottom: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Android App Drawer Grid Tiles (Swipe-Up Sheet) */
.android-app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: var(--primary-navy);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.android-app-tile:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 43, 92, 0.08);
}

.android-app-tile:active {
    transform: scale(0.94);
}

.android-app-tile.active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.app-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
    transition: transform 0.2s ease;
}

.android-app-tile:hover .app-tile-icon {
    transform: scale(1.08);
}

.app-tile-label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Status Badges */
.badge-status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.78rem;
}

.badge-draft { background-color: #f1f5f9; color: #475569; }
.badge-terkirim { background-color: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; font-weight: 600; }
.badge-revisi, .badge-ditolak { background-color: #fef3c7; color: #b45309; border: 1px solid #fde68a; font-weight: 600; }
.badge-selesai { background-color: #dcfce7; color: #166534; border: 1px solid #bbf7d0; font-weight: 600; }

/* Mobile Bottom Navigation for Guru (Material 3 Android Specification) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1030;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item:hover {
    color: var(--primary-navy);
}

.bottom-nav-item.active {
    color: var(--primary-navy);
}

.nav-icon-pill {
    width: 44px;
    height: 26px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    font-size: 1.15rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item.active .nav-icon-pill {
    background: #dbeafe;
    color: var(--primary-navy);
}

/* Stats Counter Card */
.stat-card {
    border-left: 4px solid var(--primary-navy);
}

.stat-card.stat-info { border-left-color: #0284c7; }
.stat-card.stat-warning { border-left-color: #f59e0b; }
.stat-card.stat-success { border-left-color: #10b981; }
.stat-card.stat-danger { border-left-color: #ef4444; }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
    }
    .admin-sidebar.show {
        left: 0;
    }
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1035;
    }
    .mobile-overlay.show {
        display: block;
    }
    .main-container-guru {
        padding-bottom: 70px; /* Space for bottom nav */
    }
}

/* Select2 Customization - Navy Blue Theme */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: var(--btn-radius);
    border: 1.5px solid var(--border-color);
    min-height: 48px;
    padding: 0.45rem 0.65rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 0.25rem rgba(15, 43, 92, 0.15);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: var(--btn-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 1060;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.65rem 0.95rem;
    font-size: 0.95rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-navy);
    color: #ffffff;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border-radius: var(--btn-radius);
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border-color);
}

/* ========================================================
   Android Native App Feel - Mobile-First Styling
   ======================================================== */
.android-app-container {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 2rem;
}

@media (max-width: 991.98px) {
    .android-app-container {
        max-width: 640px;
    }
}

@media (min-width: 992px) {
    .android-app-container {
        max-width: 1240px;
    }
}

.android-header {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.15rem 1.4rem;
    box-shadow: 0 4px 18px rgba(15, 43, 92, 0.04);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
}

.android-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 43, 92, 0.04);
    padding: 1.35rem 1.4rem;
    margin-bottom: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.android-card:hover {
    box-shadow: 0 6px 22px rgba(15, 43, 92, 0.07);
}

.android-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.android-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.badge-blue-soft {
    background: #eff6ff;
    color: #1d4ed8;
}

.badge-teal-soft {
    background: #f0fdfa;
    color: #0d9488;
}

.badge-amber-soft {
    background: #fffbeb;
    color: #d97706;
}

.badge-indigo-soft {
    background: #eef2ff;
    color: #4f46e5;
}

.badge-emerald-soft {
    background: #ecfdf5;
    color: #059669;
}

.android-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
}

.android-section-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* Android Stat Counter Tiles for Attendance */
.android-stat-tile {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.9rem;
    text-align: center;
    transition: all 0.2s ease;
}

.android-stat-tile:focus-within {
    border-color: var(--primary-navy);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 43, 92, 0.08);
}

.android-stat-tile.tile-success {
    background: #f0fdf4;
    border-color: #86efac;
}

.android-stat-tile.tile-danger {
    background: #fef2f2;
    border-color: #fca5a5;
}

.android-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Floating Sticky Action Bar on Smartphone */
.android-floating-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.9rem 1rem;
    z-index: 1030;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    margin: 0 -1rem -1rem -1rem;
    border-radius: 0 0 20px 20px;
}

@media (max-width: 767.98px) {
    .android-floating-bar {
        position: fixed;
        bottom: 56px; /* above mobile nav */
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
    }
    .main-container-guru {
        padding-bottom: 140px; /* space for floating bar + bottom nav */
    }
}

.btn-android-cta {
    min-height: 52px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(15, 43, 92, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-android-cta:active {
    transform: scale(0.97);
}

/* Dynamic Produktif Kejuruan Input Box */
.produktif-card-box {
    background: #f0fdf4;
    border: 1.5px dashed #86efac;
    border-radius: 16px;
    padding: 1.15rem;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideDownAndroid 0.3s ease-out;
}

@keyframes slideDownAndroid {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Android Feed Cards for History & Activity Lists */
.android-feed-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 1.15rem 1.25rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 10px rgba(15, 43, 92, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    color: inherit;
}

.android-feed-card:hover, .android-feed-card:focus {
    box-shadow: 0 6px 20px rgba(15, 43, 92, 0.08);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    color: inherit;
}

.android-feed-card:active {
    transform: scale(0.98);
}

/* Android Hero Banner for Dashboard */
.android-hero-card {
    background: linear-gradient(135deg, #0f2b5c 0%, #1e3a8a 50%, #2563eb 100%);
    border-radius: 22px;
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 43, 92, 0.2);
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.android-hero-card::after {
    content: '';
    position: absolute;
    right: -25px;
    bottom: -25px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

/* Android Quick Status Tiles */
.android-status-tile {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 0.95rem 1rem;
    box-shadow: 0 2px 8px rgba(15, 43, 92, 0.03);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.android-status-tile:active {
    transform: scale(0.97);
}

/* Android Auth / Login Screen */
.android-auth-container {
    max-width: 440px;
    margin: 0 auto;
    padding: 1rem;
}

.android-auth-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem 1.6rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(15, 43, 92, 0.08);
}

.android-code-input {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1.35rem;
    letter-spacing: 3px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    border-radius: 16px;
    min-height: 54px;
    border: 2px solid #cbd5e1;
    background-color: #f8fafc;
}

.android-code-input:focus {
    border-color: var(--primary-navy);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 43, 92, 0.15);
}

/* Enhanced Android Feed Card & Status Edge Indicator */
.android-feed-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1.35rem;
    margin-bottom: 0.95rem;
    box-shadow: 0 3px 12px rgba(15, 43, 92, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    color: inherit;
}

.android-feed-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #cbd5e1;
    border-radius: 4px 0 0 4px;
    transition: width 0.2s ease;
}

.android-feed-card.status-terkirim::before { background: #3b82f6; }
.android-feed-card.status-revisi::before,
.android-feed-card.status-ditolak::before  { background: #f59e0b; }
.android-feed-card.status-selesai::before  { background: #10b981; }

.android-feed-card:hover, .android-feed-card:focus {
    box-shadow: 0 8px 24px rgba(15, 43, 92, 0.09);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    color: inherit;
}

.android-feed-card:hover::before {
    width: 7px;
}

/* Modern Tab Switcher Pill */
.android-tab-pill {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 16px;
    display: flex;
    gap: 4px;
}

.android-tab-pill .tab-link {
    flex: 1;
    text-align: center;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.android-tab-pill .tab-link.active {
    background: #ffffff;
    color: var(--primary-navy);
    box-shadow: 0 2px 8px rgba(15, 43, 92, 0.08);
}

/* Class Progress Monitoring Card */
.kelas-progress-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 14px rgba(15, 43, 92, 0.04);
    transition: all 0.2s ease;
}

.kelas-progress-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 20px rgba(15, 43, 92, 0.08);
}

.progress-track-android {
    height: 10px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-android {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.4s ease;
}

.progress-bar-android.bar-complete {
    background: #10b981;
}

/* Accordion subject item */
.subject-item-row {
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    margin-bottom: 0.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.15s ease;
}

.subject-item-row.is-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.subject-item-row.is-pending {
    background: #fffbeb;
    border-color: #fef3c7;
}

/* Pagination Android Style */
.pagination-android {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.25rem 2rem 0.25rem;
}

/* ========================================================
   Android Native Bottom Sheet & Swipe-Up Interaction
   ======================================================== */
.android-bottom-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1055;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.android-bottom-sheet-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.android-bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -10px 40px rgba(15, 43, 92, 0.18);
    z-index: 1060;
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.android-bottom-sheet.show {
    transform: translateY(0);
}

@media (min-width: 992px) {
    .android-bottom-sheet {
        max-width: 580px;
        left: 50%;
        right: auto;
        transform: translate(-50%, 105%);
        border-radius: 28px;
        bottom: 24px;
        box-shadow: 0 16px 48px rgba(15, 43, 92, 0.2);
    }
    .android-bottom-sheet.show {
        transform: translate(-50%, 0);
    }
}

.sheet-drag-handle-area {
    padding: 12px 0 6px 0;
    display: flex;
    justify-content: center;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.sheet-drag-handle {
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease, width 0.2s ease;
}

.sheet-drag-handle-area:hover .sheet-drag-handle,
.sheet-drag-handle-area:active .sheet-drag-handle {
    background: #94a3b8;
    width: 52px;
}

.sheet-body {
    padding: 1rem 1.4rem 2rem 1.4rem;
    overflow-y: auto;
}

/* Quick Action Sheet Grid Tiles */
.sheet-action-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: var(--primary-navy);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.65rem;
}

.sheet-action-tile:hover, .sheet-action-tile:focus {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--primary-navy);
    transform: translateX(3px);
}

.sheet-action-tile:active {
    transform: scale(0.98);
}

/* Swipe-Up Prompt Pill in Bottom Navigation */
.swipe-up-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: gentleBounce 2.5s infinite ease-in-out;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Admin Mobile Bottom Navigation Bar */
.admin-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1030;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
    .admin-content {
        padding-bottom: 105px !important; /* Space for admin-bottom-nav on smartphone: never obscures bottom data */
    }
}

/* Admin Android Card & Hub Styles */
.admin-hub-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 3px 14px rgba(15, 43, 92, 0.04);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--primary-navy);
}

.admin-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 43, 92, 0.08);
    border-color: #cbd5e1;
    color: var(--primary-navy);
}

.admin-hub-card:active {
    transform: scale(0.98);
}

/* Android Search Bar Component */
.search-input-group {
    background: #ffffff;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-group:focus-within {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(15, 43, 92, 0.12);
}

.search-input-group .form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent;
    font-size: 0.88rem;
    color: var(--primary-navy);
}

.search-input-group .form-control:focus {
    box-shadow: none !important;
    background: transparent;
}

.search-input-group .input-group-text {
    border: none !important;
    background: transparent;
}

.search-input-group .btn-clear-search {
    border: none !important;
    background: transparent;
    padding-left: 0.4rem;
    padding-right: 0.85rem;
}

.search-input-group .btn-clear-search:hover {
    color: #ef4444 !important;
}

.search-empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    margin: 1rem 0;
}

/* Hide redundant default DataTables search bar in favor of unified Android Search Bar */
.dataTables_filter {
    display: none !important;
}






