/* GRANT+ Scholarship & Award Portal CSS - Matching Home Visual System Strictly */

/* Skeuomorphic Container Styles */
.skeuo-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1.5px solid #cbd5e1;
    box-shadow: 
        0 20px 45px -10px rgba(15, 23, 42, 0.18), 
        0 8px 20px -6px rgba(15, 23, 42, 0.1),
        inset 0 2px 3px rgba(255, 255, 255, 1), 
        inset 0 -3px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.skeuo-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 28px 55px -12px rgba(16, 185, 129, 0.22), 
        0 10px 25px -8px rgba(15, 23, 42, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 1);
}

.skeuo-header-dark {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2.5px solid #10b981;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2), 
        0 3px 8px rgba(0,0,0,0.25);
}

.skeuo-header-dark h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
}

.skeuo-grommet {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e2e8f0 0%, #94a3b8 60%, #475569 100%);
    border: 1px solid #334155;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.6),
        0 2px 4px rgba(0,0,0,0.3);
    z-index: 25;
}

.skeuo-grommet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0f172a;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

.skeuo-perforation {
    border-bottom: 2px dashed #cbd5e1;
    position: relative;
    margin: 1.25rem 0;
}

.skeuo-perforation::before,
.skeuo-perforation::after {
    content: '';
    position: absolute;
    top: -9px;
    width: 18px;
    height: 18px;
    background: var(--bg-base);
    border-radius: 50%;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.15);
}

.skeuo-perforation::before { left: -24px; }
.skeuo-perforation::after { right: -24px; }

/* Award Status Tabs */
.status-switch-bar {
    display: flex;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 0.4rem;
    gap: 0.4rem;
    overflow-x: auto;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    margin-bottom: 2rem;
}

.status-switch-btn {
    flex: 1;
    min-width: 150px;
    background: transparent;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.status-switch-btn:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--brand-primary);
}

.status-switch-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.status-switch-btn i {
    font-size: 1.1rem;
}

/* Document Checklist Table & Badges */
.checklist-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
}

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
    transition: background 0.2s;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item:hover {
    background: #f8fafc;
}

.checklist-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.checklist-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.checklist-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.checklist-sub {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.status-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-chip.verified {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.status-chip.pending {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-chip.action {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.status-chip.eligible {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

/* Tier Ladder Grid */
.tier-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.tier-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid var(--border-light);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tier-card.highlight-top {
    border-color: #10b981;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.tier-badge-top {
    position: absolute;
    top: -12px;
    right: 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.tier-range {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.tier-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tier-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.tier-value span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tier-quota-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    margin: 0.75rem 0 0.5rem 0;
}

.tier-quota-fill {
    height: 100%;
    background: linear-gradient(to right, #10b981, #3b82f6);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Financial Ledger Component */
.ledger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.ledger-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ledger-label {
    font-size: 0.775rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ledger-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-card {
    background: #ffffff;
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 1.75rem 1.5rem;
}

/* Navigation Badge Pill Fix */
.nav-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.775rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

/* ==========================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   ========================================== */

/* Mobile Nav Menu Dropdown Floating Positioning */
#mobile-nav-menu {
    position: absolute !important;
    top: 100% !important;
    left: 1rem !important;
    right: 1rem !important;
    width: calc(100% - 2rem) !important;
    max-width: 1200px !important;
    margin: 0.5rem auto 0 auto !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2) !important;
    border: 1.5px solid var(--border-light) !important;
    z-index: 10000 !important;
    background: #ffffff !important;
}

/* Table Scroll Container */
.exam-table-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.custom-table {
    width: 100% !important;
    min-width: 720px !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
}

.custom-table th,
.custom-table td {
    padding: 0.85rem 1rem !important;
    text-align: left !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
}

.custom-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 0.775rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
}

.custom-table td {
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Tablet & Laptop (<= 1024px) */
@media (max-width: 1024px) {
    .nav-menu-left,
    .nav-menu-right {
        display: none !important;
    }
    
    .pill-nav-container {
        padding: 0.5rem 1rem;
    }
    
    .mobile-nav-toggle {
        display: flex !important;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .specimen-card-stage {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    /* Disable right vertical dock on mobile */
    .home-nav-wrap.dock-right {
        position: sticky !important;
        top: 0.5rem !important;
        transform: none !important;
        width: 100% !important;
        right: auto !important;
    }
    .home-nav-wrap.dock-right .pill-nav-container {
        flex-direction: row !important;
        width: 100% !important;
        padding: 0.4rem 1rem !important;
        border-radius: 50px !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .status-bar {
        padding: 0.5rem 0.75rem;
    }
    
    .status-content {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
        align-items: center;
    }
    
    .status-btn {
        font-size: 0.75rem;
    }
    
    .hero-main-title {
        font-size: 2rem !important;
        line-height: 1.25 !important;
    }
    
    .hero-lede {
        font-size: 0.95rem !important;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .hero-cta-group .btn-primary,
    .hero-cta-group .btn-ghost-sm {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    /* Skeuomorphic Hall Ticket Card Mobile Adaptation */
    .hall-ticket-card {
        padding: 1rem !important;
        border-radius: 14px !important;
    }
    
    .ht-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem !important;
    }
    
    .ht-status-chip {
        align-self: flex-start;
        font-size: 0.7rem;
    }
    
    .ht-main-grid {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .ht-photo-column {
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100% !important;
        background: #f8fafc !important;
        padding: 0.5rem !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    
    .ht-photo-box {
        width: 80px !important;
        height: 90px !important;
    }
    
    .ht-details-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .ht-field, .ht-field.full-width {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .ht-security-strip {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !alignment;
        gap: 0.75rem !important;
    }
    
    .ht-footer {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }
    
    .ht-footer-meta {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    /* Status Switcher Scrollable */
    .status-switch-bar {
        padding: 0.35rem;
        gap: 0.35rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .status-switch-bar::-webkit-scrollbar {
        display: none;
    }
    
    .status-switch-btn {
        min-width: max-content;
        padding: 0.65rem 0.85rem;
        font-size: 0.775rem;
    }
    
    /* Tier Cards & Ledger Grid */
    .tier-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .ledger-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .checklist-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .checklist-item > div:last-child {
        width: 100%;
        justify-content: space-between;
    }
    
    .skeuo-card {
        padding: 1.25rem !important;
    }
}

/* Extra Small Screens (<= 480px) */
@media (max-width: 480px) {
    .ledger-grid {
        grid-template-columns: 1fr !important;
    }
    
    .modal-card {
        width: 95%;
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1.25rem 1rem;
    }
    
    .ledger-val {
        font-size: 1.3rem !important;
    }
}
