/* ==============================================================================
   NEXORA INTERNATIONAL SCHOOL - ADMIN PORTAL (PREMIUM LIGHT MODE)
   ============================================================================== */

:root {
    /* Base Canvas & Card System */
    --admin-bg: #F8FAFC;              /* Clean slate-white canvas */
    --admin-card: #FFFFFF;            /* Pure white surfaces */
    --admin-card-hover: #F1F5F9;      /* Subtle slate tint on hover */
    --admin-border: #E2E8F0;          /* Crisp slate-200 border */
    --admin-border-light: #F1F5F9;
    --admin-border-focus: #D97706;
    
    /* Typography Colors */
    --admin-text-primary: #0F172A;    /* Slate-900 high contrast */
    --admin-text-secondary: #475569;  /* Slate-600 */
    --admin-text-muted: #64748B;      /* Slate-500 */
    --admin-text-light: #94A3B8;      /* Slate-400 */
    
    /* Brand Gold / Warm Amber */
    --gold: #D97706;                  /* Rich warm gold (high readability) */
    --gold-dark: #B45309;
    --gold-glow: rgba(217, 119, 6, 0.16);
    --gold-hover: #C56804;
    --gold-light: #FEF3C7;
    --gold-border: #FDE68A;
    
    /* Semantic Colors */
    --blue: #2563EB;
    --blue-light: #EFF6FF;
    --blue-border: #BFDBFE;
    
    --green: #059669;
    --green-light: #ECFDF5;
    --green-border: #A7F3D0;
    
    --purple: #7C3AED;
    --purple-light: #F5F3FF;
    --purple-border: #DDD6FE;
    
    --red: #DC2626;
    --red-light: #FEF2F2;
    --red-border: #FECACA;

    /* Radii & Shadows */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.admin-body {
    background-color: var(--admin-bg);
    color: var(--admin-text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color-scheme: light;
}

/* --------------------------------------------------------------------------
   Top Navigation Bar
   -------------------------------------------------------------------------- */
.admin-topbar {
    height: 70px;
    background-color: var(--admin-card);
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-xs);
}

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

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.25rem;
    box-shadow: 0 3px 10px var(--gold-glow);
}

.brand-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--admin-text-primary);
}

.brand-info h1 span {
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.brand-info p {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
}

.admin-status-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-pill.connected {
    background-color: var(--green-light);
    color: #047857;
    border-color: var(--green-border);
}

.status-pill.fallback {
    background-color: #FEF3C7;
    color: #B45309;
    border-color: #FDE68A;
}

.status-pill.checking {
    background-color: #F1F5F9;
    color: var(--admin-text-muted);
    border-color: #E2E8F0;
}

.server-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: var(--admin-text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

.preview-site-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background-color: #FFFFFF;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: var(--shadow-xs);
}

.preview-site-btn:hover {
    background-color: var(--gold);
    color: #FFFFFF;
    border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   Container & Sidebar Layout
   -------------------------------------------------------------------------- */
.admin-container {
    display: flex;
    flex: 1;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--admin-card);
    border-right: 1px solid var(--admin-border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--admin-text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.nav-item i {
    font-size: 1.1rem;
    width: 22px;
    color: var(--admin-text-muted);
    transition: color 0.2s;
}

.nav-item:hover {
    background-color: #F8FAFC;
    color: var(--admin-text-primary);
}

.nav-item:hover i {
    color: var(--gold);
}

.nav-item.active {
    background-color: #FEF3C7;
    color: #92400E;
    border-color: #FDE68A;
}

.nav-item.active i {
    color: var(--gold-dark);
}

.counter-badge {
    margin-left: auto;
    background-color: #F1F5F9;
    color: var(--admin-text-secondary);
    border: 1px solid #E2E8F0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.nav-item.active .counter-badge {
    background-color: var(--gold);
    color: #FFFFFF;
    border-color: var(--gold);
}

.sidebar-storage-info {
    background-color: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: var(--radius-md);
    padding: 14px;
}

.sidebar-storage-info .info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 6px;
}

.sidebar-storage-info .storage-desc {
    font-size: 0.72rem;
    color: var(--admin-text-muted);
    line-height: 1.4;
}

.sidebar-storage-info code {
    background-color: #E2E8F0;
    color: #0284C7;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Main Content & Tabs
   -------------------------------------------------------------------------- */
.admin-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background-color: var(--admin-bg);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

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

.tab-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tab-heading-row h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-text-primary);
    margin-bottom: 4px;
}

.tab-heading-row p {
    color: var(--admin-text-muted);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Metric Cards
   -------------------------------------------------------------------------- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    border-color: #CBD5E1;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.2s;
}

.metric-card:hover::after {
    background: linear-gradient(90deg, #1E3A8A, #2563EB);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.metric-icon.gold { background: rgba(217, 119, 6, 0.12); color: #D97706; }
.metric-icon.blue { background: rgba(37, 99, 235, 0.12); color: #2563EB; }
.metric-icon.green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.metric-icon.purple { background: rgba(139, 92, 246, 0.12); color: #7C3AED; }

.metric-info,
.metric-data {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.metric-label {
    font-size: 0.76rem;
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.metric-value,
.metric-data h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}

.metric-subtext {
    font-size: 0.74rem;
    color: #94A3B8;
    margin-top: 2px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Control Bar & Filters
   -------------------------------------------------------------------------- */
.table-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-input-wrap,
.search-box {
    flex: 1;
    min-width: 260px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap i,
.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.search-input-wrap input,
.search-box input {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    padding: 10px 14px 10px 38px;
    color: #0F172A;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-xs);
    font-family: inherit;
}

.search-input-wrap input:focus,
.search-box input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-select {
    background-color: var(--admin-card);
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    padding: 9px 14px;
    color: var(--admin-text-primary);
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    color-scheme: light;
}

.filter-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.filter-select option {
    background-color: var(--admin-card);
    color: var(--admin-text-primary);
}

.control-btn {
    background-color: var(--admin-card);
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    padding: 9px 14px;
    color: var(--admin-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: var(--shadow-xs);
}

.control-btn:hover {
    background-color: #F8FAFC;
    color: var(--admin-text-primary);
    border-color: #94A3B8;
}

.control-btn.export:hover {
    background-color: var(--green);
    color: #FFFFFF;
    border-color: var(--green);
}

/* --------------------------------------------------------------------------
   Tables (Inquiries, Pages, Students, Leaves, Assessments)
   -------------------------------------------------------------------------- */
.table-responsive {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.admin-table,
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 0.85rem;
}

.admin-table th,
.data-table th {
    background-color: #F8FAFC;
    border-bottom: 1.5px solid #E2E8F0;
    padding: 14px 18px;
    color: #475569;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.admin-table td,
.data-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    color: #1E293B;
    background-color: #FFFFFF;
    transition: background-color 0.15s ease;
}

.admin-table tr:hover td,
.data-table tr:hover td {
    background-color: #F8FAFC;
}

.admin-table tr:last-child td,
.data-table tr:last-child td {
    border-bottom: none;
}

.ticket-badge {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-dark);
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.ticket-badge:hover {
    text-decoration: underline;
}

.student-title {
    font-weight: 600;
    color: var(--admin-text-primary);
}

.parent-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-links {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
}

.contact-links a {
    color: var(--admin-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-links a:hover {
    color: var(--gold);
}

/* Status dropdowns inside table */
.status-select {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
    outline: none;
    cursor: pointer;
    color-scheme: light;
}

.status-select.Registered { background-color: var(--blue-light); color: #1D4ED8; border-color: var(--blue-border); }
.status-select.Contacted { background-color: #FEF3C7; color: #B45309; border-color: #FDE68A; }
.status-select.InterviewScheduled { background-color: var(--purple-light); color: #6D28D9; border-color: var(--purple-border); }
.status-select.Admitted { background-color: var(--green-light); color: #047857; border-color: var(--green-border); }
.status-select.Archived { background-color: #F1F5F9; color: #475569; border-color: #CBD5E1; }

.action-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn,
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    line-height: 1;
}

.icon-btn:hover,
.action-btn:hover {
    background-color: #F1F5F9;
    color: #1E293B;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.icon-btn.dossier:hover,
.action-btn.dossier:hover,
.action-btn.view:hover {
    background-color: #EFF6FF;
    color: #2563EB;
    border-color: #BFDBFE;
}

.icon-btn.pay:hover,
.action-btn.pay:hover {
    background-color: #ECFDF5;
    color: #059669;
    border-color: #A7F3D0;
}

.icon-btn.edit:hover,
.action-btn.edit:hover,
.action-btn.edit-btn:hover {
    background-color: #F5F3FF;
    color: #7C3AED;
    border-color: #DDD6FE;
}

.icon-btn.delete:hover,
.action-btn.delete:hover,
.action-btn.danger:hover,
.action-btn.delete-btn:hover {
    background-color: #FEF2F2;
    color: #DC2626;
    border-color: #FECACA;
}

.table-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 500;
}

.table-count-badge strong {
    color: #1E3A8A;
    font-weight: 700;
}

.admission-id-badge {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    color: #1E3A8A;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.2s;
}

.admission-id-badge:hover {
    background: #DBEAFE;
    border-color: #93C5FD;
}

/* --------------------------------------------------------------------------
   General Badges & Status Indicators
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.badge-success {
    background-color: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.badge-warning {
    background-color: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.badge-danger {
    background-color: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.badge-info {
    background-color: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

/* --------------------------------------------------------------------------
   Media & Image Manager Tab
   -------------------------------------------------------------------------- */
.upload-dropzone {
    border: 2px dashed rgba(217, 119, 6, 0.4);
    border-radius: var(--radius-lg);
    background-color: #FFFDF9;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    margin-bottom: 32px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--gold);
    background-color: #FEF8ED;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.drop-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.dropzone-inner h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--admin-text-primary);
    margin-bottom: 6px;
}

.dropzone-inner h3 span {
    color: var(--gold);
    text-decoration: underline;
}

.dropzone-hints {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
}

.upload-progress-card {
    background-color: var(--admin-card);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.image-card {
    background-color: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.image-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.image-preview-wrap {
    height: 140px;
    background-color: #F1F5F9;
    position: relative;
    overflow: hidden;
}

.image-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.8);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.image-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.image-filename {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--admin-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-meta {
    font-size: 0.72rem;
    color: var(--admin-text-muted);
}

.image-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.image-actions button {
    flex: 1;
    padding: 7px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--admin-border);
    background: #FFFFFF;
    color: var(--admin-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.image-actions button:hover {
    background-color: var(--gold);
    color: #FFFFFF;
    border-color: var(--gold);
}

.image-actions button.delete-img {
    flex: 0 0 34px;
    padding: 7px 0;
    color: #ef4444;
}

.image-actions button.delete-img:hover {
    background-color: var(--red);
    color: #FFFFFF;
    border-color: var(--red);
}

.image-actions button.protected-lock-btn {
    flex: 0 0 34px;
    padding: 7px 0;
    color: #64748b;
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.85;
}

.image-actions button.protected-lock-btn:hover {
    background-color: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

.system-protected-card {
    border: 1px solid #94a3b8;
    background-color: #f8fafc;
}

/* --------------------------------------------------------------------------
   Site Settings Tab
   -------------------------------------------------------------------------- */
.settings-card {
    background-color: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 960px;
    box-shadow: var(--shadow-sm);
}

.form-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.settings-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--admin-text-primary);
}

.settings-group input {
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--admin-text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-xs);
}

.settings-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.settings-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.settings-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
    cursor: pointer;
}

.settings-checkbox label {
    font-size: 0.85rem;
    color: var(--admin-text-secondary);
    cursor: pointer;
}

.settings-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--admin-border);
}

.primary-save-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 24px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 3px 12px var(--gold-glow);
}

.primary-save-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(217, 119, 6, 0.3);
}

.save-feedback {
    font-size: 0.82rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Inquiry Details & Admin System Modals
   -------------------------------------------------------------------------- */
.admin-detail-modal {
    margin: auto;
    border: none;
    background: transparent;
    padding: 0;
    outline: none;
    max-height: 92vh;
    max-width: 96vw;
    overflow: visible;
}

.admin-detail-modal::backdrop {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.detail-modal-card {
    width: 92vw;
    max-width: 600px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.97) translateY(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px 18px;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    position: relative;
    flex-shrink: 0;
    gap: 16px;
}

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

.ticket-tag {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1E3A8A;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin: 4px 0 2px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: #64748B;
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
}

.modal-close-btn,
.close-modal-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #64748B;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    outline: none;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.modal-close-btn:hover,
.close-modal-btn:hover {
    background: #FEE2E2;
    color: #DC2626;
    border-color: #FCA5A5;
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.modal-body,
.modal-body-scroll {
    padding: 24px;
    overflow-y: auto;
    flex: 1 1 auto;
    overscroll-behavior: contain;
}

.modal-body-scroll::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body-scroll::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: #F8FAFC;
}

.modal-body-scroll::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

.modal-body-scroll::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #E2E8F0;
}

.modal-section-title:first-child {
    margin-top: 0;
}

.modal-section-title i {
    color: #2563EB;
    font-size: 0.88rem;
}

.settings-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.settings-row-academic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
}

.required-star {
    color: #EF4444;
    font-weight: 700;
    margin-left: 2px;
}

.fee-computed-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.04) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.fee-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fee-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fee-banner-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #065F46;
}

.fee-banner-desc {
    font-size: 0.76rem;
    color: #047857;
    margin-top: 2px;
}

.fee-banner-right {
    text-align: right;
}

.fee-banner-amount {
    font-size: 1.45rem;
    font-weight: 800;
    color: #059669;
    font-family: inherit;
    letter-spacing: -0.02em;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.info-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 14px;
}

.info-item label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--admin-text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--admin-text-primary);
    font-weight: 600;
}

.notes-section label {
    font-size: 0.78rem;
    color: var(--admin-text-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.notes-section textarea {
    width: 100%;
    background-color: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 12px;
    color: var(--admin-text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
    transition: all 0.2s;
}

.notes-section textarea:focus {
    border-color: #2563EB;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.modal-footer .control-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-footer .control-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
    border-color: #94A3B8;
}

.modal-footer-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.primary-btn {
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #172554, #1D4ED8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.secondary-btn {
    background: #FFFFFF;
    color: #1E3A8A;
    border: 1.5px solid #BFDBFE;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.secondary-btn:hover {
    background: #EFF6FF;
    border-color: #3B82F6;
    color: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.secondary-btn i {
    color: #2563EB;
}

.danger-btn {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.danger-btn:hover {
    background: #FCA5A5;
    color: #991B1B;
}

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

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

.admin-toast i {
    color: #FBBF24;
}

/* --------------------------------------------------------------------------
   Authentication Login Screen & Protected Header Additions
   -------------------------------------------------------------------------- */
.admin-login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at 50% 20%, rgba(217, 119, 6, 0.05), transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.04), transparent 50%),
                var(--admin-bg);
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    animation: loginFadeIn 0.4s ease-out;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.login-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px auto;
    font-size: 1.6rem;
    border-radius: var(--radius-lg);
}

.login-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--admin-text-primary);
}

.login-header h2 span {
    color: var(--gold-dark);
    font-size: 0.85rem;
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    padding: 3px 9px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--admin-text-muted);
    margin-top: 8px;
}

.login-alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--red-light);
    border: 1px solid var(--red-border);
    color: var(--red);
}

.login-alert.success {
    background: var(--green-light);
    border-color: var(--green-border);
    color: var(--green);
}

.login-form .login-group {
    margin-bottom: 20px;
}

.login-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--admin-text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon > i {
    position: absolute;
    left: 14px;
    color: var(--admin-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    padding: 12px 42px 12px 42px;
    color: var(--admin-text-primary);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
}

.input-with-icon input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.toggle-pass-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--admin-text-muted);
    cursor: pointer;
    padding: 6px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.toggle-pass-btn:hover {
    color: var(--gold);
}

.login-submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 13px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px var(--gold-glow);
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3);
    filter: brightness(1.05);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    border-top: 1px solid var(--admin-border);
    padding-top: 20px;
}

.login-footer a {
    color: var(--admin-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: var(--gold);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #F1F5F9;
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--admin-text-primary);
    font-weight: 600;
}

.user-pill i {
    color: var(--gold);
    font-size: 0.95rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--red-light);
    border: 1px solid var(--red-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--red);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #991B1B;
}

/* --------------------------------------------------------------------------
   Dynamic Homepage Image Controls & Set-As Menu
   -------------------------------------------------------------------------- */
.image-input-preview-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.image-input-preview-box input {
    flex: 1;
}

.setting-img-thumbnail {
    width: 64px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--admin-border);
    background: #F1F5F9;
    flex-shrink: 0;
}

.dropdown-set-as {
    position: relative;
    display: inline-block;
}

.set-as-btn {
    background: var(--gold-light) !important;
    color: var(--gold-dark) !important;
    border: 1px solid var(--gold-border) !important;
}

.set-as-btn:hover {
    background: #FEF3C7 !important;
    color: var(--gold-dark) !important;
}

.set-as-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 6px;
    background: #FFFFFF;
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.set-as-menu button {
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--admin-border-light);
    color: var(--admin-text-primary);
    text-align: left;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.set-as-menu button:last-child {
    border-bottom: none;
}

.set-as-menu button:hover {
    background: var(--gold-light);
    color: var(--gold-dark);
}

/* --------------------------------------------------------------------------
   Image Slots Grid & Rich Selector Cards (Settings Tab)
   -------------------------------------------------------------------------- */
.image-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.image-slot-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.image-slot-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.slot-preview-box {
    position: relative;
    width: 100%;
    height: 170px;
    background: #F1F5F9;
    overflow: hidden;
}

.slot-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-slot-card:hover .slot-preview-box img {
    transform: scale(1.03);
}

.slot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.slot-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.slot-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slot-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-text-primary);
    margin: 0;
}

.slot-desc {
    font-size: 0.78rem;
    color: var(--admin-text-muted);
    margin: 0;
}

.slot-select-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slot-select-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slot-dropdown {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    color: var(--admin-text-primary);
    padding: 9px 12px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.slot-dropdown:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.slot-dropdown option {
    background-color: #FFFFFF;
    color: var(--admin-text-primary);
    padding: 8px;
}

.slot-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.slot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.slot-btn.primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #FFFFFF;
    flex: 1;
    box-shadow: 0 2px 6px var(--gold-glow);
}

.slot-btn.primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.slot-btn.secondary {
    background: #F8FAFC;
    color: var(--admin-text-secondary);
    border: 1px solid #CBD5E1;
}

.slot-btn.secondary:hover {
    background: #F1F5F9;
    color: var(--admin-text-primary);
    border-color: #94A3B8;
}

.slot-btn.text-link {
    background: transparent;
    color: var(--admin-text-muted);
    padding: 8px;
}

.slot-btn.text-link:hover {
    color: var(--gold-dark);
}

.manual-path-box {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed #E2E8F0;
}

.manual-path-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-family: monospace;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    color: #0284C7;
}

/* --------------------------------------------------------------------------
   Interactive Image Picker Modal Dialog
   -------------------------------------------------------------------------- */
.picker-modal-card {
    max-width: 860px !important;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: #FFFFFF !important;
}

.picker-subtitle {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
    margin-top: 2px;
}

.picker-subtitle strong {
    color: var(--gold-dark);
}

.picker-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--admin-border);
    flex-wrap: wrap;
}

.picker-search-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.picker-search-wrap i {
    position: absolute;
    left: 12px;
    color: var(--admin-text-muted);
    font-size: 0.85rem;
}

.picker-search-wrap input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    color: var(--admin-text-primary);
    font-size: 0.85rem;
    box-shadow: var(--shadow-xs);
}

.picker-search-wrap input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.picker-tabs {
    display: flex;
    gap: 6px;
}

.picker-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--admin-text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.picker-tab:hover {
    color: var(--admin-text-primary);
    background: #F1F5F9;
}

.picker-tab.active {
    background: var(--gold-light);
    border-color: var(--gold-border);
    color: var(--gold-dark);
}

.picker-quick-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--green-light);
    color: #047857;
    border: 1px solid var(--green-border);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.picker-quick-upload-btn:hover {
    background: #D1FAE5;
}

.picker-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 55vh;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    background: #FFFFFF;
}

.picker-img-card {
    position: relative;
    background: #FFFFFF;
    border: 2px solid var(--admin-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}

.picker-img-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.picker-img-card.active {
    border-color: #059669;
    background: #ECFDF5;
}

.picker-thumb-wrap {
    width: 100%;
    height: 110px;
    background: #F1F5F9;
    overflow: hidden;
    position: relative;
}

.picker-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picker-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.picker-badge.uploaded {
    background: #059669;
    color: #FFFFFF;
}

.picker-badge.campus {
    background: #0284C7;
    color: #FFFFFF;
}

.picker-selected-check {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #059669;
    color: #FFFFFF;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.picker-card-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.picker-card-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--admin-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-card-size {
    font-size: 0.7rem;
    color: var(--admin-text-muted);
}

.picker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--admin-border);
    background: #F8FAFC;
}

.picker-info-text {
    font-size: 0.78rem;
    color: var(--admin-text-muted);
}

/* ==========================================================================
   NAVIGATION MENU MANAGEMENT & TREE VIEW STYLES
   ========================================================================== */
.nav-safeguard-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-md);
    margin: 20px;
}

.nav-safeguard-banner.warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: #FCD34D;
}

.nav-safeguard-banner .banner-icon {
    font-size: 1.5rem;
    color: #1D4ED8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-safeguard-banner.warning .banner-icon {
    color: #B45309;
}

.nav-safeguard-banner .banner-text h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E3A8A;
}

.nav-safeguard-banner.warning .banner-text h4 {
    color: #78350F;
}

.nav-safeguard-banner .banner-text p {
    margin: 0;
    font-size: 0.82rem;
    color: #1E40AF;
    line-height: 1.4;
}

.nav-safeguard-banner.warning .banner-text p {
    color: #92400E;
}

.nav-tree-container {
    padding: 0 20px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-tree-card {
    background: #FFFFFF;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-tree-card:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-md);
}

.nav-tree-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--admin-border);
}

.nav-tree-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-order-badge {
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.nav-tier-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.nav-tier-tag.primary {
    background: #DBEAFE;
    color: #1E40AF;
}

.nav-tier-tag.top {
    background: #FCE7F3;
    color: #9D174D;
}

.nav-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-text-primary);
}

.nav-href-text {
    font-size: 0.78rem;
    font-family: monospace;
    color: var(--admin-text-muted);
    background: #E2E8F0;
    padding: 2px 6px;
    border-radius: 4px;
}

.nav-status-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

.nav-status-pill.active {
    background: #DCFCE7;
    color: #15803D;
}

.nav-status-pill.hidden {
    background: #F1F5F9;
    color: #64748B;
}

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

.sub-item-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    background: #E2E8F0;
    padding: 4px 10px;
    border-radius: 12px;
    margin-right: 8px;
}

.nav-sub-list {
    padding: 12px 18px 16px 40px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-sub-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
}

.nav-sub-item-row:hover {
    background: #F1F5F9;
}

.nav-sub-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-sub-left i {
    color: #94A3B8;
    font-size: 0.8rem;
}

.nav-sub-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--admin-text-primary);
}

.nav-sub-target-tag {
    font-size: 0.68rem;
    font-weight: 600;
    background: #FEF3C7;
    color: #92400E;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==============================================================================
   STUDENT PORTAL COMMAND CENTER & STANDARD-WISE FEE MATRIX STYLES
   ============================================================================== */
.admin-subnav-pills {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--admin-border);
    padding-bottom: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.subnav-pill {
    padding: 8px 16px;
    background: #F1F5F9;
    color: var(--admin-text-secondary);
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.subnav-pill:hover {
    background: #E2E8F0;
    color: var(--admin-text-primary);
}

.subnav-pill.active {
    background: var(--blue);
    color: #FFFFFF;
    border-color: var(--blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.fee-std-card {
    background: #FFFFFF;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.fee-std-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-border);
}

.fee-std-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--gold));
}

.fee-std-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.fee-std-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--admin-text-primary);
    margin: 0 0 4px 0;
}

.fee-std-category {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    background: #F1F5F9;
    color: #475569;
    display: inline-block;
}

.fee-total-badge {
    text-align: right;
}

.fee-total-badge .amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green);
}

.fee-total-badge .period {
    font-size: 0.72rem;
    color: var(--admin-text-muted);
}

.fee-heads-list {
    margin: 14px 0 18px 0;
    padding: 12px;
    background: #F8FAFC;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--admin-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
}

.fee-head-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--admin-text-secondary);
}

.fee-head-item strong {
    color: var(--admin-text-primary);
}

.student-avatar-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.house-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    display: inline-block;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.house-tag.garuda { background: #DBEAFE; color: #1E40AF; border-color: #BFDBFE; }
.house-tag.keshari { background: #FFEDD5; color: #C2410C; border-color: #FED7AA; }
.house-tag.agni { background: #FEE2E2; color: #B91C1C; border-color: #FECACA; }
.house-tag.trishul { background: #DCFCE7; color: #15803D; border-color: #BBF7D0; }

.attendance-mini-bar {
    width: 70px;
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.attendance-mini-bar-fill {
    height: 100%;
    border-radius: 3px;
}

.attendance-mini-bar-fill.good { background: var(--green); }
.attendance-mini-bar-fill.warn { background: var(--red); }

/* --------------------------------------------------------------------------
   Standard Fee Structure & History Audit Trail
   -------------------------------------------------------------------------- */
.fee-year-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    display: inline-block;
    letter-spacing: 0.02em;
}

.fee-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82rem;
    text-align: left;
}

.fee-history-table th {
    background: #F8FAFC;
    color: #475569;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    border-bottom: 1.5px solid #E2E8F0;
    white-space: nowrap;
}

.fee-history-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #F1F5F9;
    color: #1E293B;
    vertical-align: middle;
}

.fee-history-table tr:hover td {
    background: #F8FAFC;
}

.history-diff-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.history-diff-badge.increase {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.history-diff-badge.decrease {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.history-diff-badge.same {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

/* --------------------------------------------------------------------------
   Website Content Management System (CMS) Styling
   -------------------------------------------------------------------------- */
.cms-sec-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    border-bottom: 1.5px solid var(--admin-border);
    padding-bottom: 16px;
}

.cms-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--admin-border);
    background: #FFFFFF;
    color: var(--admin-text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xs);
}

.cms-pill-btn i {
    color: var(--admin-text-muted);
    font-size: 0.92rem;
    transition: color 0.22s ease;
}

.cms-pill-btn:hover {
    border-color: var(--gold);
    color: var(--admin-text-primary);
    background: var(--admin-card-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cms-pill-btn:hover i {
    color: var(--gold);
}

.cms-pill-btn.active {
    background: #0A1128;
    color: #FFFFFF;
    border-color: #0A1128;
    box-shadow: 0 4px 14px rgba(10, 17, 40, 0.22);
}

.cms-pill-btn.active i {
    color: #F59E0B;
}

.cms-section-panel {
    display: none;
    animation: cmsFadeIn 0.25s ease-out forwards;
}

.cms-section-panel.active {
    display: block;
}

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

/* ==============================================================================
   MODERN CMS CARDS & VISUAL FONTAWESOME ICON PICKER STYLES
   ============================================================================== */

/* Section Sub-headings & Banners */
.cms-subheading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0A1128;
    margin: 28px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F1F5F9;
}

.cms-subheading i {
    color: var(--gold);
    font-size: 1.15rem;
}

/* Modern Card Grid */
.cms-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

/* Modern CMS Editor Card */
.cms-editor-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -2px rgba(15, 23, 42, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.cms-editor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D97706, #F59E0B);
    opacity: 0.85;
    transition: opacity 0.2s;
}

.cms-editor-card:hover {
    border-color: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(217, 119, 6, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
}

/* Header inside Card */
.cms-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 2px;
}

.cms-card-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-num-badge {
    background: linear-gradient(135deg, #0A1128, #1E293B);
    color: #F59E0B;
    font-weight: 800;
    font-size: 0.74rem;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.card-type-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0F172A;
}

.cms-card-status {
    font-size: 0.72rem;
    font-weight: 600;
    color: #059669;
    background: #ECFDF5;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid #A7F3D0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Modern Form Fields */
.cms-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cms-field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.01em;
}

.cms-modern-input,
.cms-modern-textarea {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.88rem;
    color: #0F172A;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.cms-modern-textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.45;
}

.cms-modern-input:focus,
.cms-modern-textarea:focus {
    border-color: #D97706;
    outline: none;
    box-shadow: 0 0 0 3.5px rgba(217, 119, 6, 0.14);
}

/* Interactive FontAwesome Icon Picker Trigger */
.icon-picker-trigger-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-picker-trigger-card:hover {
    background: #FFFBEB;
    border-color: #D97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08);
}

.icon-preview-box {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0A1128, #1E293B);
    color: #F59E0B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 3px 8px rgba(10, 17, 40, 0.2);
    transition: transform 0.2s;
}

.icon-picker-trigger-card:hover .icon-preview-box {
    transform: scale(1.08) rotate(3deg);
    color: #FBBF24;
}

.icon-details {
    flex: 1;
    min-width: 0;
}

.icon-class-name {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-hint-text {
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-browse-icons {
    background: #0A1128;
    color: #FFFFFF;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-browse-icons:hover {
    background: #D97706;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.25);
}

/* ==============================================================================
   FONTAWESOME ICON PICKER MODAL DIALOG
   ============================================================================== */
.icon-picker-dialog {
    max-width: 860px;
    width: 94vw;
    border: none;
    border-radius: 20px;
    padding: 0;
    background: #FFFFFF;
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.icon-picker-dialog::backdrop {
    background: rgba(10, 17, 40, 0.65);
    backdrop-filter: blur(6px);
}

.icon-picker-card-modal {
    display: flex;
    flex-direction: column;
    max-height: 88vh;
}

.icon-picker-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.icon-picker-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0A1128;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.icon-picker-header p {
    font-size: 0.82rem;
    color: #64748B;
    margin: 4px 0 0;
}

.icon-picker-toolbar {
    padding: 14px 24px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.icon-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.icon-search-wrap i {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 0.95rem;
}

.icon-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #FFFFFF;
    outline: none;
    transition: all 0.2s;
}

.icon-search-input:focus {
    border-color: #D97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.icon-categories-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.icon-cat-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.icon-cat-btn:hover {
    border-color: #D97706;
    color: #D97706;
    background: #FFFBEB;
}

.icon-cat-btn.active {
    background: #0A1128;
    color: #FFFFFF;
    border-color: #0A1128;
    box-shadow: 0 2px 6px rgba(10, 17, 40, 0.25);
}

.icon-cat-btn.active i {
    color: #F59E0B;
}

/* Icon Grid */
.icon-picker-grid-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 440px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 12px;
    background: #FAFAFC;
}

.icon-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 8px;
    position: relative;
    user-select: none;
}

.icon-choice-card i {
    font-size: 1.6rem;
    color: #1E293B;
    transition: transform 0.2s, color 0.2s;
}

.icon-choice-card span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.icon-choice-card:hover {
    border-color: #D97706;
    background: #FFFBEB;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(217, 119, 6, 0.14);
}

.icon-choice-card:hover i {
    color: #D97706;
    transform: scale(1.18);
}

.icon-choice-card.selected {
    border-color: #D97706;
    background: #FEF3C7;
    box-shadow: 0 0 0 2px #D97706;
}

.icon-choice-card.selected i {
    color: #B45309;
}

.icon-picker-footer {
    padding: 14px 24px;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.custom-icon-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 480px;
}

.custom-icon-input-wrap input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.82rem;
}

/* Campus Blueprint & Dynamic Floor Tabs Editor */
.cms-floor-pills-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    margin-bottom: 22px;
}

.cms-floor-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cms-floor-pill-btn:hover {
    border-color: #D97706;
    color: #D97706;
    background: #FFFBEB;
    transform: translateY(-1px);
}

.cms-floor-pill-btn.active {
    background: #0A1128;
    color: #FFFFFF;
    border-color: #0A1128;
    box-shadow: 0 4px 12px rgba(10, 17, 40, 0.2);
}

.cms-floor-pill-btn.active i {
    color: #F59E0B;
}

.cms-floor-detail-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.cms-floor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
}

.cms-badge-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.cms-badge-item-row input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 0.82rem;
}

.cms-badge-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

.cms-badge-icon-btn:hover {
    border-color: #D97706;
    color: #D97706;
}

/* Danger Pill & Delete Buttons with Text */
.btn-danger-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #DC2626;
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
}

.btn-danger-pill:hover {
    background: #DC2626;
    color: #FFFFFF;
    border-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-danger-pill i {
    font-size: 0.85rem;
}

/* Facilities Admin Showcase Manager */
.fac-admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0 20px;
    padding: 16px 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}

.fac-admin-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.fac-admin-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fac-admin-filter-pill:hover {
    border-color: var(--accent-gold);
    color: var(--navy-dark);
}

.fac-admin-filter-pill.active {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #FFFFFF;
}

.fac-admin-filter-pill .badge-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.fac-admin-filter-pill.active .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.cms-facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.cms-facility-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cms-facility-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}

.cms-fac-img-wrap {
    position: relative;
    height: 170px;
    background: #0F172A;
    overflow: hidden;
}

.cms-fac-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cms-fac-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cms-fac-cat-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--navy-dark);
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(217, 119, 6, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cms-fac-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cms-fac-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cms-fac-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #FEF3C7;
    color: #D97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.cms-fac-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.3;
    margin: 0;
}

.cms-fac-desc {
    font-size: 0.84rem;
    color: #64748B;
    line-height: 1.5;
    margin: 0 0 14px 0;
    flex-grow: 1;
}

.cms-fac-features-preview {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: #475569;
}

.cms-fac-features-preview ul {
    margin: 0;
    padding-left: 18px;
}

.cms-fac-features-preview li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.cms-fac-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #F1F5F9;
    padding-top: 14px;
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #B45309;
    background: #FFFBEB;
    border: 1.5px solid #FDE68A;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-outline-gold:hover {
    background: #F59E0B;
    color: #FFFFFF;
    border-color: #F59E0B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.image-presets-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.image-preset-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 0.78rem;
    border-radius: 6px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.image-preset-chip:hover {
    background: #E2E8F0;
    border-color: #94A3B8;
}

.image-preset-chip.active {
    background: var(--navy-dark);
    color: #FFFFFF;
    border-color: var(--navy-dark);
}

/* ==========================================================================
   DYNAMIC HERO SLIDES CAROUSEL ADMIN MANAGER
   ========================================================================== */
.hero-slides-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #E2E8F0;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-slide-admin-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.hero-slide-admin-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.hero-slide-card-header {
    background: #F8FAFC;
    padding: 12px 20px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-slide-card-title {
    font-weight: 700;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.96rem;
}

.hero-slide-order-pill {
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    color: #FFFFFF;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hero-slide-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-ctrl-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.slide-ctrl-btn:hover:not(:disabled) {
    background: #F1F5F9;
    color: #1E293B;
    border-color: #94A3B8;
    transform: translateY(-1px);
}

.slide-ctrl-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slide-ctrl-btn.btn-delete {
    color: #DC2626;
    border-color: #FECACA;
    background: #FEF2F2;
}

.slide-ctrl-btn.btn-delete:hover:not(:disabled) {
    background: #FEE2E2;
    border-color: #F87171;
    color: #B91C1C;
}

.hero-slide-card-body {
    padding: 22px;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 24px;
}

@media (max-width: 960px) {
    .hero-slide-card-body {
        grid-template-columns: 1fr;
    }
}

.hero-slide-preview-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-slide-thumb-wrap {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #E2E8F0;
    background: #0B1727;
}

.hero-slide-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hero-slide-admin-card:hover .hero-slide-thumb-img {
    transform: scale(1.03);
}

.hero-slide-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 25, 47, 0.3), rgba(10, 25, 47, 0.75));
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    color: #FFFFFF;
}

.hero-slide-thumb-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.9);
    color: #0F172A;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    width: fit-content;
}

.hero-slide-thumb-headline {
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-slide-image-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-slide-content-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* --------------------------------------------------------------------------
   ADMISSION INQUIRY CRM & INTERACTION MANAGEMENT STYLES
   -------------------------------------------------------------------------- */
.inquiry-crm-card {
    max-width: 860px !important;
    width: 95vw !important;
    max-height: 90vh !important;
    display: flex;
    flex-direction: column;
}

.crm-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crm-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-date-badge {
    font-size: 0.75rem;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

.crm-top-selectors {
    display: flex;
    gap: 10px;
    align-items: center;
}

.crm-pill-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.crm-pill-group label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748B;
    letter-spacing: 0.04em;
}

.crm-priority-select,
.crm-status-select {
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.crm-priority-select:focus,
.crm-status-select:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Tabs Strip */
.crm-tabs-strip {
    display: flex;
    gap: 6px;
    padding: 8px 24px 0;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    overflow-x: auto;
    flex-shrink: 0;
}

.crm-tab-btn {
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
    white-space: nowrap;
    border-radius: 6px 6px 0 0;
}

.crm-tab-btn:hover {
    color: #1E293B;
    background: #F1F5F9;
}

.crm-tab-btn.active {
    color: #1E3A8A;
    background: #FFFFFF;
    border-bottom: 2px solid #2563EB;
    font-weight: 700;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.04);
}

.crm-subview {
    display: none;
}

.crm-subview.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* CRM Content Layout */
.crm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .crm-grid-2 {
        grid-template-columns: 1fr;
    }
}

.crm-field-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.crm-field-card.highlight-card {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.crm-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-card-title i {
    color: #2563EB;
}

.crm-card-desc {
    font-size: 0.78rem;
    color: #64748B;
    margin: 0 0 12px;
    line-height: 1.4;
}

.crm-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-row-compact {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.form-group-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    margin-bottom: 10px;
}

.form-group-compact label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
}

.admin-input-compact {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.84rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #FFFFFF;
    color: #0F172A;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
    font-family: inherit;
}

.admin-input-compact:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input-with-action {
    display: flex;
    align-items: center;
    gap: 6px;
}

.crm-mini-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
    text-decoration: none;
    font-size: 0.84rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.crm-mini-icon-btn:hover {
    background: #DBEAFE;
    transform: scale(1.05);
}

.crm-mini-icon-btn.whatsapp {
    background: #DCFCE7;
    color: #16A34A;
    border-color: #BBF7D0;
}

.crm-mini-icon-btn.whatsapp:hover {
    background: #BBF7D0;
}

.crm-initial-msg-box {
    margin: 8px 0 0;
    padding: 12px 14px;
    background: #F8FAFC;
    border-left: 3px solid #D97706;
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.5;
    font-style: italic;
}

/* Route recommendation box */
.crm-route-recommend-box {
    background: #FFFFFF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.04);
}

.crm-route-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #1E3A8A;
}

/* New Note Box */
.crm-new-note-card {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 18px;
}

/* Timeline */
.crm-timeline-container {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
}

.crm-timeline-header {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.crm-timeline-list::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 17px;
    width: 2px;
    background: #E2E8F0;
}

.crm-timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
}

.crm-timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EFF6FF;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 2px #BFDBFE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    font-size: 0.85rem;
    flex-shrink: 0;
    z-index: 1;
}

.crm-timeline-content {
    flex: 1;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 16px;
}

.crm-timeline-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.crm-timeline-author {
    font-weight: 700;
    font-size: 0.82rem;
    color: #0F172A;
}

.crm-timeline-type {
    font-size: 0.72rem;
    color: #2563EB;
    background: #EFF6FF;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    margin-left: 6px;
}

.crm-timeline-time {
    font-size: 0.72rem;
    color: #64748B;
}

.crm-timeline-text {
    font-size: 0.82rem;
    color: #334155;
    margin: 0 0 6px;
    line-height: 1.45;
}

.crm-timeline-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #92400E;
    background: #FEF3C7;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.crm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}

.crm-footer-right {
    display: flex;
    gap: 10px;
}

.crm-mt-2 { margin-top: 8px; }
.crm-mt-3 { margin-top: 14px; }

/* Table badges */
.inq-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
}

.inq-bus { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.inq-van { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.inq-self { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }
.inq-undecided { background: #F8FAFC; color: #94A3B8; border: 1px dashed #CBD5E1; }

.inq-visit { background: #EDE9FE; color: #6D28D9; border: 1px solid #DDD6FE; }
.inq-followup { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.inq-sub-text { font-size: 0.75rem; color: #94A3B8; }

.inq-priority-hot { color: #DC2626; background: #FEE2E2; border: 1px solid #FECACA; }
.inq-priority-warm { color: #D97706; background: #FEF3C7; border: 1px solid #FDE68A; }
.inq-priority-cold { color: #2563EB; background: #EFF6FF; border: 1px solid #BFDBFE; }

.inq-notes-count {
    font-size: 0.7rem;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
}

.icon-btn.highlight {
    background: #EFF6FF;
    color: #2563EB;
    border-color: #BFDBFE;
}
.icon-btn.highlight:hover {
    background: #2563EB;
    color: #FFFFFF;
}

.icon-btn.note-btn {
    background: #F0FDF4;
    color: #16A34A;
    border-color: #BBF7D0;
}
.icon-btn.note-btn:hover {
    background: #16A34A;
    color: #FFFFFF;
}

.status-select.VisitScheduled { background-color: #EDE9FE; color: #6D28D9; border-color: #DDD6FE; }
.status-select.VisitCompleted { background-color: #DCFCE7; color: #15803D; border-color: #BBF7D0; }
.status-select.Follow-upNeeded { background-color: #FEF3C7; color: #B45309; border-color: #FDE68A; }
.status-select.ApplicationSubmitted { background-color: #E0F2FE; color: #0369A1; border-color: #BAE6FD; }
.status-select.NotInterested { background-color: #FEE2E2; color: #DC2626; border-color: #FECACA; }

