/* admin.css */

/* -------------------------------------------------------------
   Premium Emerald & Gold Light Theme Tokens (High Accessibility)
   ------------------------------------------------------------- */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Accessibility Friendly Light Palette */
    --bg-base: #f0f7f3;            /* Warm minty white background */
    --bg-surface: #ffffff;         /* Pure white container cards */
    --bg-card: #ffffff;
    --bg-card-hover: #e8f5ee;      /* Soft green hover highlight */
    --border-color: #bad3c5;       /* Muted green-gray borders */
    --border-focus: #006B3C;       /* Sharp emerald focus border */
    
    /* High-contrast Brand Colors */
    --color-primary: #006B3C;       /* Emerald Green */
    --color-primary-hover: #004D2C; /* Deep Forest Green */
    --color-primary-glow: rgba(0, 107, 60, 0.08);
    
    --color-urgent: #c21c1c;        /* Strong Red */
    --color-urgent-bg: #fdf2f2;
    --color-urgent-border: #f87171;
    
    --color-success: #006B3C;       /* Emerald Green */
    --color-success-bg: #e8f5ee;
    --color-success-border: #a7f3d0;

    --color-pending: #b8912a;       /* Amber Gold */
    --color-pending-bg: #fef9e7;
    --color-pending-border: #fde68a;
    
    /* High-contrast text colors for elderly readability */
    --color-text-main: #021a0f;     /* Very dark green-black */
    --color-text-muted: #3a4d42;    /* Medium dark green-gray */
    --color-text-dark: #56685d;     /* Muted dark gray-green */
    
    /* Shadows & Border Radii */
    --shadow-sm: 0 1px 3px rgba(0, 77, 44, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 77, 44, 0.08), 0 2px 4px -1px rgba(0, 77, 44, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 77, 44, 0.12), 0 4px 6px -2px rgba(0, 77, 44, 0.06);
    --shadow-premium: 0 20px 25px -5px rgba(0, 77, 44, 0.15), 0 0 50px rgba(0, 107, 60, 0.05);
    
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basic Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.admin-body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 107, 60, 0.06) 0%, transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* -------------------------------------------------------------
   Buttons & UI Controls (Large & Clear for accessibility)
   ------------------------------------------------------------- */
.btn-primary, .btn-secondary, .btn-pagination, .btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px; /* Larger text */
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    height: 48px; /* Taller button for easy clicking */
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 107, 60, 0.2);
}
.btn-primary:hover:not(:disabled) {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 107, 60, 0.35);
}
.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--color-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover:not(:disabled) {
    background-color: var(--bg-base);
    border-color: var(--color-primary);
}

.btn-pagination {
    background-color: #ffffff;
    color: var(--color-text-main);
    border: 2px solid var(--border-color);
    width: 44px;
    height: 44px;
    padding: 0;
}
.btn-pagination:hover:not(:disabled) {
    background-color: var(--bg-card-hover);
    border-color: var(--color-primary);
}
.btn-pagination:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-logout {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 2px solid #fee2e2;
}
.btn-logout:hover {
    background-color: #b91c1c;
    color: white;
    border-color: #b91c1c;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.btn-full {
    width: 100%;
}

/* -------------------------------------------------------------
   1. LOGIN VIEW STYLING (Premium White Card)
   ------------------------------------------------------------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.login-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 107, 60, 0.08) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

.login-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 45px 35px;
    box-shadow: var(--shadow-premium);
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--color-success-bg);
    border: 2px solid var(--color-success-border);
    border-radius: 50%;
    color: var(--color-primary);
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(0, 107, 60, 0.1);
}

.logo-circle i {
    width: 28px;
    height: 28px;
}

.login-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.login-header p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Alert Banners */
.login-alert, .form-alert, .alert-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 2px solid transparent;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fee2e2;
}

.alert-success {
    background-color: var(--color-success-bg);
    color: var(--color-primary-hover);
    border-color: var(--color-success-border);
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #dbeafe;
}

/* Form Group Layout */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-dark);
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: var(--transition-fast);
}

.input-wrapper input, .form-group input[type="text"], .form-group input[type="password"], .form-group input[type="email"], .form-group input[type="tel"], .form-group input[type="date"], .form-group textarea, .form-group select {
    width: 100%;
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
    outline: none;
    font-size: 15px; /* Larger readable input text */
    color: var(--color-text-main);
    transition: var(--transition-smooth);
    min-height: 48px;
}

.input-wrapper input {
    padding-left: 48px; /* indentation for icon */
}

.input-wrapper input:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(0, 107, 60, 0.12);
}

.input-wrapper input:focus + .input-icon {
    color: var(--color-primary);
}

/* -------------------------------------------------------------
   2. DASHBOARD VIEW STYLING
   ------------------------------------------------------------- */
.dashboard-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background-color: #ffffff;
    border-bottom: 2px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    color: var(--color-primary);
    width: 36px;
    height: 36px;
}

.brand h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary-hover);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.brand .sub-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-pending);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-success-bg);
    border: 2px solid var(--color-success-border);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

.user-pill i {
    width: 16px;
    height: 16px;
}

/* Workspace main content */
.workspace {
    padding: 30px 24px 60px;
    flex-grow: 1;
}

/* Dashboard Tabs Navigation (Large & High Contrast) */
.dashboard-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2px;
}

.tab-btn {
    background: none;
    border: none;
    outline: none;
    padding: 12px 24px;
    font-size: 16px; /* Highly visible */
    font-weight: 700;
    color: var(--color-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 4px;
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

/* -------------------------------------------------------------
   3. TOOLBAR CONTROLS
   ------------------------------------------------------------- */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.toolbar-search {
    position: relative;
    flex-grow: 1;
    max-width: 480px;
    min-width: 280px;
}

.toolbar-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-dark);
    width: 20px;
    height: 20px;
}

.toolbar-search input {
    width: 100%;
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    padding: 11px 16px 11px 48px;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
}
.toolbar-search input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(0, 107, 60, 0.1);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.toolbar-actions select, .select-wrapper select {
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--color-text-main);
    padding: 8px 36px 8px 16px;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    height: 48px; /* match primary button height */
    appearance: none;
    -webkit-appearance: none;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition-smooth);
    min-width: 180px;
}

.toolbar-actions select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(0, 107, 60, 0.1);
}

.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-text-muted);
    pointer-events: none;
}

/* -------------------------------------------------------------
   4. DATA CARDS & ADMIN TABLES (Large, Easy to read)
   ------------------------------------------------------------- */
.data-card {
    background-color: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px; /* Highly readable font size */
}

.admin-table th, .admin-table td {
    padding: 20px 24px;
    border-bottom: 2px solid var(--bg-base);
}

.admin-table th {
    background-color: #f7fbf9;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.admin-table tbody tr {
    background-color: transparent;
    transition: var(--transition-fast);
}

.admin-table tbody tr:hover {
    background-color: var(--bg-card-hover);
}

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.status-pill.urgent {
    background-color: var(--color-urgent-bg);
    color: #991b1b;
    border: 2px solid var(--color-urgent-border);
}
.status-pill.normal {
    background-color: #f1f5f9;
    color: #475569;
    border: 2px solid #cbd5e1;
}

.table-title {
    font-weight: 700;
    color: var(--color-primary-hover);
    display: block;
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-category, .table-dept, .table-session, .table-date {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.table-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    background-color: #ffffff;
    transition: var(--transition-smooth);
}
.table-file-btn:hover {
    background-color: var(--color-success-bg);
    border-color: var(--color-primary);
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-icon-edit, .btn-icon-delete, .btn-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-icon-edit {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    width: 38px;
    height: 38px;
}
.btn-icon-edit:hover {
    background-color: #1d4ed8;
    color: white;
    border-color: #1d4ed8;
}

.btn-icon-delete {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fee2e2;
    width: 38px;
    height: 38px;
}
.btn-icon-delete:hover {
    background-color: #b91c1c;
    color: white;
    border-color: #b91c1c;
}

.btn-review {
    background-color: var(--color-success-bg);
    color: var(--color-primary);
    border-color: var(--color-success-border);
    padding: 6px 16px;
    font-size: 13px;
    height: 38px;
    gap: 6px;
}
.btn-review:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* User profile cell layout inside table */
.user-profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.thumbnail-frame {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background-color: var(--bg-base);
    flex-shrink: 0;
}

.thumbnail-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    display: block;
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 15px;
}

.user-email {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Table Footer & Pagination */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: #f7fbf9;
    border-top: 2px solid var(--border-color);
}

.table-footer span {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

/* Table Loader, Empty and Error states */
.table-loader, .table-empty {
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.table-empty i {
    width: 48px;
    height: 48px;
    color: var(--color-text-dark);
}

.table-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-main);
}

.table-empty p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 4px solid var(--border-color);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------
   5. MODALS & FORMS (Extra Clear & High Readability)
   ------------------------------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(1, 35, 20, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content-wrapper {
    position: relative;
    z-index: 1001;
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-lg {
    max-width: 900px; /* larger modal for applications check */
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px) scale(0.98);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7fbf9;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary-hover);
}

.btn-close {
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
}
.btn-close:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f7fbf9;
}

/* Grid layout elements for forms */
.form-row-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

/* Custom checkbox sliders */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #f7fbf9;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.checkbox-label-block {
    display: flex;
    flex-direction: column;
}

.checkbox-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-main);
}

.checkbox-help {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------
   6. FILE UPLOAD BLOCK / DRAG & DROP
   ------------------------------------------------------------- */
.drop-zone {
    border: 3px dashed var(--border-color);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background-color: #f7fbf9;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--color-primary);
    background-color: var(--color-success-bg);
}

.upload-icon {
    width: 44px;
    height: 44px;
    color: var(--color-primary);
}

.drop-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-main);
}

.browse-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 700;
}

.file-rules {
    font-size: 12px;
    color: var(--color-text-muted);
}

.selected-file-card, .current-attachment-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background-color: var(--color-success-bg);
    border: 2px solid var(--color-success-border);
    border-radius: 12px;
    margin-bottom: 12px;
}

.selected-file-card .file-icon, .current-attachment-card .file-icon {
    color: var(--color-primary);
    width: 32px;
    height: 32px;
}

.selected-file-card .file-details, .current-attachment-card .attachment-left {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.file-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.file-name:hover {
    text-decoration: underline;
}

.file-size, .sub-text {
    font-size: 13px;
    color: var(--color-text-muted);
}

.btn-close-small, .btn-icon-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Upload progress indicators */
.progress-container {
    margin-top: 10px;
}

.progress-bar-wrapper {
    background-color: #cbd5e1;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.1s ease;
}

.progress-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: block;
}

/* -------------------------------------------------------------
   7. STUDENT ADMISSION DETAIL SCREEN (High Readability Grid)
   ------------------------------------------------------------- */
.application-detail-body {
    padding: 0; /* content padding managed internally */
}

.app-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .app-detail-grid {
        grid-template-columns: 1fr;
    }
    .border-right {
        border-right: none !important;
        border-bottom: 2px solid var(--border-color);
    }
}

.app-column {
    padding: 30px;
}

.border-right {
    border-right: 2px solid var(--border-color);
}

.student-profile-badge {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-frame {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-profile-badge h4 {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.tag-program {
    display: inline-block;
    padding: 4px 14px;
    background-color: var(--color-success-bg);
    border: 2px solid var(--color-success-border);
    color: var(--color-primary);
    font-weight: 800;
    border-radius: 9999px;
    font-size: 13px;
    text-transform: uppercase;
}

.details-section .section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-primary-hover);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--bg-base);
    padding-bottom: 8px;
}

.details-section .section-title i {
    width: 18px;
    height: 18px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 15px; /* Large highly readable details */
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 700;
    color: var(--color-text-muted);
}

.detail-row .value {
    font-weight: 700;
    color: var(--color-text-main);
    text-align: right;
}

/* Admission Action Form Decision Buttons */
.review-widget {
    background-color: #f7fbf9;
    border: 2px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
}

.decision-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.btn-decision {
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-decision.active.btn-dec-pending {
    background-color: #fef3c7;
    color: #d97706;
    border-color: #f59e0b;
}

.btn-decision.active.btn-dec-approve {
    background-color: var(--color-success-bg);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-decision.active.btn-dec-reject {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #ef4444;
}

/* -------------------------------------------------------------
   8. APPLICATION STATUS LABELS FOR LISTS
   ------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-pending {
    background-color: var(--color-pending-bg);
    color: #92400e;
    border: 2px solid var(--color-pending-border);
}

.badge-active {
    background-color: var(--color-success-bg);
    color: var(--color-primary);
    border: 2px solid var(--color-success-border);
}

.badge-inactive {
    background-color: #fef2f2;
    color: #991b1b;
    border: 2px solid #fee2e2;
}

/* Toast message configurations */
.alert-banner {
    box-shadow: var(--shadow-md);
    position: relative;
}

.btn-close-alert {
    background: none;
    border: none;
    margin-left: auto;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

/* Hide native file selector button inside drag & drop zone */
.hidden-file-input {
    display: none !important;
}
