/* ==============================================================
   STYLESHEET: Student & Staff Management Dashboard
   ============================================================== */

/* --------------------------------------------------------------
   1. CSS VARIABLES & SYSTEM PALETTE
   -------------------------------------------------------------- */
:root {
    --primary-color: #2563eb;
    /* Royal Blue */
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary-color: #64748b;
    /* Slate Neutral */
    --secondary-hover: #475569;
    --success-color: #10b981;
    /* Emerald Green */
    --danger-color: #ef4444;
    /* Crimson Red */
    --danger-hover: #dc2626;
    --warning-color: #f59e0b;
    /* Amber */

    --body-bg: #f8fafc;
    /* Light gray background */
    --card-bg: #ffffff;
    /* Crisp white card surface */
    --sidebar-bg: #0f172a;
    /* Deep midnight slate */
    --sidebar-text: #94a3b8;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px 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.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------------------------
   2. GLOBAL BASE RESETS
   -------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.5;
}

/* --------------------------------------------------------------
   3. DASHBOARD MAIN LAYOUT (Sidebar + Main Area)
   -------------------------------------------------------------- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--body-bg);
    position: relative;
    align-items: stretch;
}

/* --- SIDEBAR STYLING (Pinned & stretches to end of scroll) --- */
.sidebar {
    width: 285px;
    background-color: var(--sidebar-bg);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
    gap: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.18);
    transition: width 0.05s ease;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Draggable Resize Handle on right edge of sidebar */
.sidebar-resizer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    user-select: none;
    z-index: 101;
    transition: background 0.2s ease;
}

.sidebar-resizer:hover,
.sidebar-resizer.resizing {
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
    padding: 0 4px;
}

.brand-logo-wrapper {
    background: #ffffff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    width: 100%;
}

.brand-img-logo {
    max-width: 100%;
    height: auto;
    max-height: 44px;
    display: block;
    object-fit: contain;
}

.brand-icon {
    font-size: 28px;
}

.brand-text h2 {
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #ffffff;
}

.brand-sub {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-top: 3px;
}

/* Sidebar Section Headers */
.sidebar-section {
    display: flex;
    flex-direction: column;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 8px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Sidebar navigation buttons (Students & Staffs) */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}

.nav-item .nav-icon {
    font-size: 17px;
    margin-right: 8px;
}

.nav-item .nav-label {
    flex: 1;
    text-align: left;
}

.nav-item .nav-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

.nav-item.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* Sidebar Filter Card Sections */
.sidebar-filter-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 12px 10px;
}

.sidebar-label {
    display: block;
    font-size: 11px;
    color: #cbd5e1;
    margin-bottom: 6px;
    font-weight: 500;
}

.sidebar-select {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 8px 9px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.sidebar-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.sidebar-select option {
    background: #1e293b;
    color: #f8fafc;
}

.custom-timeline-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

.sidebar-input-number {
    width: 58px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    outline: none;
    font-family: inherit;
}

.sidebar-select-unit {
    flex: 1;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 6px 7px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    outline: none;
    font-family: inherit;
}

.sidebar-btn-apply {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.sidebar-btn-apply:hover {
    background: #1d4ed8;
}

.sidebar-filter-hint {
    font-size: 11px;
    color: #38bdf8;
    margin-top: 8px;
    padding: 4px 7px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.sidebar-search-box {
    position: relative;
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.sidebar-input {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 7px 26px 7px 9px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.sidebar-input:focus {
    border-color: #38bdf8;
}

.sidebar-clear-btn {
    position: absolute;
    right: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
}

.sidebar-clear-btn:hover {
    color: #fff;
}

.sidebar-reset-all-btn {
    width: 100%;
    margin-bottom: 12px;
    padding: 7px 10px;
    font-size: 12px;
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.sidebar-reset-all-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

.sidebar-footer {
    font-size: 12px;
    color: #64748b;
    padding: 14px 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.sidebar-footer-text {
    text-align: center;
}

.sidebar-footer small {
    display: block;
    color: #475569;
    margin-top: 2px;
}

/* --- MAIN CONTENT WRAPPER --- */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 32px 36px;
    min-height: 100vh;
    background-color: var(--body-bg);
}

/* --------------------------------------------------------------
   4. TOP HEADER & TITLES
   -------------------------------------------------------------- */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.top-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Database Connection Status Badge */
.db-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.status-indicator-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.status-indicator-dot.mock {
    background-color: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.status-indicator-dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

/* --------------------------------------------------------------
   5. FORM CARD & MULTI-FIELD GRID (All 16 Student Fields)
   -------------------------------------------------------------- */
.form-container-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.card-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

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

.card-header-icon {
    font-size: 26px;
}

.card-title-group h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.card-title-group p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Student 16-field form grid */
.student-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 20px;
}

/* Staff form grid */
.staff-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

/* Edit Mode Banner */
.edit-mode-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.edit-banner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.edit-banner-info small {
    display: block;
    color: #3b82f6;
    font-size: 12px;
}

.form-section-title {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 12px 0 4px 0;
    border-top: 1px dashed var(--border-color);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-section-title:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* Cyber Course Dropdown Button */
.course-dropdown-btn {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background-color: #ffffff !important;
    color: var(--text-main) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.course-dropdown-btn:hover {
    border-color: var(--primary-color) !important;
    background-color: #f8fafc !important;
}

.course-dropdown-btn:focus {
    border-color: var(--primary-color) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Quick College Search Box */
.college-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.college-search-box:focus-within {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.college-search-box .search-icon {
    font-size: 14px;
    color: var(--text-muted);
}

.college-search-box input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    width: 100% !important;
    font-size: 13px !important;
    color: var(--text-main) !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Cyber Course Quick Selector Buttons (Point 4) */
.course-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.course-choice-btn {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.course-choice-btn:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

.course-choice-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    font-weight: 600;
}

.form-instruction {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
    margin-bottom: 2px;
}

.field-help-text,
.field-helper-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    display: block;
}

/* Cyber Course Dropdown Button */
.course-dropdown-btn {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background-color: #ffffff !important;
    color: var(--text-main) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.course-dropdown-btn:hover {
    border-color: var(--primary-color) !important;
    background-color: #f8fafc !important;
}

.course-dropdown-btn:focus {
    border-color: var(--primary-color) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Quick College Search Box */
.college-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.college-search-box:focus-within {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.college-search-box .search-icon {
    font-size: 14px;
    color: var(--text-muted);
}

.college-search-box input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    width: 100% !important;
    font-size: 13px !important;
    color: var(--text-main) !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Cyber Course Quick Selector Buttons (Point 4) */
.course-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.course-choice-btn {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.course-choice-btn:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

.course-choice-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    font-weight: 600;
}

.form-instruction {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
    margin-bottom: 2px;
}

.field-help-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    display: block;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.full-width,
.form-group.full-width {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.required {
    color: #ef4444;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-actions-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------
   6. METRIC STATS CARDS
   -------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.bg-blue {
    background-color: #eff6ff;
    color: #2563eb;
}

.bg-green {
    background-color: #ecfdf5;
    color: #059669;
}

.bg-purple {
    background-color: #faf5ff;
    color: #7c3aed;
}

.bg-orange {
    background-color: #fff7ed;
    color: #ea580c;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-top: 2px;
}

/* --------------------------------------------------------------
   7. TOOLBAR (Search & Filters)
   -------------------------------------------------------------- */
.toolbar-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    flex: 1;
    min-width: 260px;
}

.search-icon {
    font-size: 15px;
    color: var(--text-muted);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 100%;
    color: var(--text-main);
}

.filters-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filters-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background-color: var(--card-bg);
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

/* --------------------------------------------------------------
   8. TABLE STYLING
   -------------------------------------------------------------- */
.table-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    position: relative;
    margin-bottom: 30px;
}

.table-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.table-header-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.records-badge {
    background-color: #e0e7ff;
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.students-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.students-table th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.students-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.students-table tr:hover td {
    background-color: #f8fafc;
}

.student-avatar-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e7ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.cell-subtext {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
    margin-top: 2px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

.badge-inactive {
    background-color: #fff7ed;
    color: #c2410c;
}

.badge-course {
    background-color: #f3e8ff;
    color: #7e22ce;
}

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

.no-records {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Table Loading Overlay */
.table-loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.db-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* --------------------------------------------------------------
   9. BUTTONS
   -------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-danger {
    background-color: #fee2e2;
    color: var(--danger-color);
}

.btn-danger:hover {
    background-color: var(--danger-color);
    color: #ffffff;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

/* --------------------------------------------------------------
   10. MODAL DIALOGUES (Profile Detail View)
   -------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-box {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease-out;
}

.modal-lg {
    max-width: 780px !important;
}

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

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.close-modal-btn:hover {
    color: var(--text-main);
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-header-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.profile-large-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.detail-item {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.full-width-detail {
    grid-column: 1 / -1 !important;
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 4px;
    word-break: break-word;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.hidden {
    display: none !important;
}

/* --------------------------------------------------------------
   5.1 CYBER COURSE SELECTOR & DYNAMIC CASCADING STYLES
   -------------------------------------------------------------- */
.course-selector-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 6px;
}

.course-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.course-choice-btn {
    background: #ffffff;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.course-choice-btn:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.course-choice-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-hover);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.cascade-subnote {
    background-color: #f1f5f9;
    border-left: 3px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* --------------------------------------------------------------
   11. TOAST NOTIFICATIONS
   -------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
}

.toast {
    background-color: #1e293b;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.toast-success {
    border-left: 4px solid #10b981;
}

.toast.toast-error {
    border-left: 4px solid #ef4444;
}

.toast.toast-info {
    border-left: 4px solid #3b82f6;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================================
   PROFILE BACKGROUND & EMPLOYMENT SECTION STYLING
   ============================================================== */
.profile-choice-container,
.college-details-wrapper,
.working-toggle-banner,
.employment-details-wrapper {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.profile-choice-container {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.profile-choice-header {
    margin-bottom: 14px;
}

.profile-choice-main-label {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

.choice-hint {
    font-size: 12.5px;
    color: var(--text-muted);
}

.profile-choice-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.profile-pill-label {
    cursor: pointer;
    display: block;
    position: relative;
    width: 100%;
}

.profile-pill-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-pill-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 100%;
    box-sizing: border-box;
}

.profile-pill-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.08);
}

.profile-pill-label input[type="radio"]:checked+.profile-pill-card,
.profile-pill-card.active {
    border-color: var(--primary-color);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.pill-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.pill-text strong {
    display: block;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 700;
}

.pill-text small {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.profile-pill-label input[type="radio"]:checked+.profile-pill-card .pill-text strong {
    color: var(--primary-color);
}

/* College & Academic Details Container */
.college-details-wrapper {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 12px;
    animation: fadeInSection 0.3s ease;
    box-sizing: border-box;
}

.section-sub-heading {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #e2e8f0;
}

.academic-fields-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 20px;
    width: 100%;
}

.academic-fields-grid .span-2 {
    grid-column: span 2;
}

.academic-fields-grid .full-row {
    grid-column: 1 / -1;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Working Status Toggle Banner */
.working-toggle-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.working-toggle-banner:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.working-toggle-banner.active {
    background: #eff6ff;
    border-color: #3b82f6;
    border-style: solid;
}

.working-toggle-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.work-badge-icon {
    font-size: 26px;
    background: #e2e8f0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.working-toggle-banner.active .work-badge-icon {
    background: #dbeafe;
}

.working-toggle-left strong {
    font-size: 14.5px;
    color: var(--text-main);
    display: block;
}

.working-toggle-left p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Switch toggle button */
.switch-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.switch-toggle-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-slider {
    position: relative;
    width: 52px;
    height: 28px;
    background-color: #cbd5e1;
    border-radius: 28px;
    transition: all 0.3s ease;
    display: inline-block;
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-toggle-label input[type="checkbox"]:checked+.switch-slider {
    background-color: var(--primary-color);
}

.switch-toggle-label input[type="checkbox"]:checked+.switch-slider::before {
    transform: translateX(24px);
}

.switch-label-text {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    min-width: 36px;
}

/* Employment Details Wrapper */
.employment-details-wrapper {
    background: #f0f9ff;
    border: 1.5px solid #7dd3fc;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 12px;
    animation: fadeInSection 0.3s ease;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
    box-sizing: border-box;
}

.employment-heading {
    color: #0369a1;
    border-bottom-color: #bae6fd;
}

.employment-fields-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 20px;
    width: 100%;
}

.employment-fields-grid .company-field {
    grid-column: span 2;
}

.employment-fields-grid .role-field {
    grid-column: span 1;
}

.employment-fields-grid .exp-field {
    grid-column: span 1;
}

/* Badge styles */
.badge-work {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-student {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-both {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.bg-cyan {
    background-color: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

/* --------------------------------------------------------------
   12. RESPONSIVE DESIGN (Tablets & Mobile)
   -------------------------------------------------------------- */
@media (max-width: 1100px) {
    .student-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .academic-fields-grid,
    .employment-fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .academic-fields-grid .span-2,
    .employment-fields-grid .company-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .profile-choice-pills {
        grid-template-columns: 1fr;
    }

    .academic-fields-grid,
    .employment-fields-grid {
        grid-template-columns: 1fr;
    }

    .academic-fields-grid .span-2,
    .academic-fields-grid .full-row,
    .employment-fields-grid .company-field,
    .employment-fields-grid .role-field,
    .employment-fields-grid .exp-field {
        grid-column: 1 / -1;
    }

    .working-toggle-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

/* --------------------------------------------------------------
   13. SMART DASHBOARD STYLES (IMAGE 2 REFERENCE)
   -------------------------------------------------------------- */
.smart-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #edf2f7;
    flex-wrap: wrap;
    gap: 16px;
}

.welcome-title-group h1 {
    font-size: 23px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.3px;
}

.welcome-title-group .subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}

.smart-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.session-badge {
    background: #eef2ff;
    color: #4338ca;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #c7d2fe;
}

/* Mode Switcher: 1. Student vs 2. Staff (Bigger & Prominent per request) */
.smart-mode-switcher {
    display: inline-flex;
    align-items: center;
    background: #eef2ff;
    padding: 6px;
    border-radius: 36px;
    border: 1.5px solid #dbeafe;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.08);
}

.mode-pill-btn {
    border: none;
    background: transparent;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 15.5px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    line-height: 1.2;
}

.mode-pill-btn span {
    font-size: 19px;
    line-height: 1;
}

.mode-pill-btn:hover {
    color: #1e1b4b;
    background: rgba(255, 255, 255, 0.75);
}

.mode-pill-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

/* Other Options Button (Replaces Add Student - Matching Bigger Size) */
.other-options-wrapper {
    position: relative;
    display: inline-block;
}

.btn-other-options {
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 11px 24px;
    border-radius: 30px;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    line-height: 1.2;
}

.btn-other-options:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.btn-other-options .btn-icon {
    font-size: 19px;
}

.btn-other-options .btn-caret {
    font-size: 12px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.other-options-wrapper.open .btn-caret {
    transform: rotate(180deg);
}

/* Future Enhancements Dropdown */
.other-options-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 390px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 2px 10px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    overflow: hidden;
    display: none;
    animation: optionsDropdownIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.other-options-wrapper.open .other-options-dropdown {
    display: block;
}

@keyframes optionsDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
    padding: 14px 18px;
}

.header-banner-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-banner-title .banner-icon {
    font-size: 22px;
}

.header-banner-title strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
}

.header-banner-title p {
    font-size: 11.5px;
    color: #c7d2fe;
    margin: 1px 0 0 0;
}

.badge-phase {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.options-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 380px;
    overflow-y: auto;
}

.option-item {
    border: none;
    background: transparent;
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.option-item:hover {
    background: #f8fafc;
    transform: translateX(3px);
}

.option-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.bg-purple-soft {
    background: #f3e8ff;
    color: #7e22ce;
}

.bg-blue-soft {
    background: #e0f2fe;
    color: #0284c7;
}

.bg-green-soft {
    background: #dcfce7;
    color: #15803d;
}

.bg-amber-soft {
    background: #fef3c7;
    color: #b45309;
}

.bg-indigo-soft {
    background: #e0e7ff;
    color: #4338ca;
}

.bg-rose-soft {
    background: #ffe4e6;
    color: #be123c;
}

.option-info {
    flex: 1;
    min-width: 0;
}

.option-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-info small {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-status {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.tag-planned {
    background: #e0e7ff;
    color: #4338ca;
}

.tag-design {
    background: #fef3c7;
    color: #b45309;
}

.tag-upcoming {
    background: #dcfce7;
    color: #15803d;
}

.dropdown-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.footer-note {
    font-size: 11.5px;
    color: #64748b;
}

.btn-suggest-feature {
    border: none;
    background: #4f46e5;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
}

.btn-suggest-feature:hover {
    background: #4338ca;
}

/* Enhancement Modal Styling */
.enhancement-modal-content {
    padding: 8px 0;
}

.enhancement-badge-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.enhancement-icon-large {
    font-size: 32px;
}

.enhancement-badge-banner h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #166534;
}

.badge-roadmap-status {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 4px;
}

.enhancement-desc-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 16px;
}

.enhancement-scope-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.scope-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.scope-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #475569;
}

.scope-list li {
    margin-bottom: 5px;
}

.enhancement-feedback-box label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.enhancement-feedback-box input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    box-sizing: border-box;
}

.enhancement-feedback-box input:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* 1. TOP METRIC SUMMARY CARDS (4 in a row) */
.smart-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.smart-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    border-left: 5px solid #cbd5e1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.smart-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.smart-stat-card.border-pink {
    border-left-color: #f43f5e;
}

.smart-stat-card.border-purple {
    border-left-color: #6366f1;
}

.smart-stat-card.border-yellow {
    border-left-color: #f59e0b;
}

.smart-stat-card.border-green {
    border-left-color: #10b981;
}

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

.bg-pink-tint {
    background: #ffe4e6;
}

.bg-purple-tint {
    background: #e0e7ff;
}

.bg-yellow-tint {
    background: #fef3c7;
}

.bg-green-tint {
    background: #d1fae5;
}

.stat-card-right {
    display: flex;
    flex-direction: column;
}

.stat-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.stat-card-number {
    font-size: 28px;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.1;
    margin-top: 2px;
}

/* 2. MIDDLE ROW (Calendar Attendance & College Retrieval) */
.smart-middle-row {
    display: block;
    margin-bottom: 22px;
}

.smart-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.smart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.smart-card-header h3 {
    font-size: 16px;
    font-weight: 750;
    color: #1e1b4b;
}

.card-sub-hint {
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

/* Calendar Timeline Bar */
.timeline-unit-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 18px;
}

.timeline-tab {
    background: transparent;
    border: none;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.timeline-tab.active {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.years-timeline-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f8fafc;
    margin-bottom: 14px;
    overflow-x: auto;
}

.year-btn {
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.year-btn:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.year-btn.active {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.35);
}

.months-grid-matrix {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px 14px;
}

.month-pill {
    background: #fdfaf3;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #d97706;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.month-pill:hover {
    background: #fef3c7;
}

.month-pill.active {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
    font-weight: 750;
}

.calendar-footer-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #64748b;
}

/* Educational Stage & 3D Column Chart */
.stage-sub-right {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.college-search-compact {
    margin-bottom: 14px;
}

.compact-select {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12.5px;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

/* 3. BOTTOM ROW: Activities & Retrieved Admissions */
.smart-bottom-row {
    display: block;
}

.activities-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pill-outline {
    border: 1.5px solid #10b981;
    color: #10b981;
    background: transparent;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-pill-outline:hover {
    background: #10b981;
    color: #ffffff;
}

.btn-pill-green {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.btn-pill-green:hover {
    background: #059669;
}

.activities-list-container {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 380px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.activity-item:hover {
    background: #f1f5f9;
}

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

.activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 750;
    flex-shrink: 0;
}

.activity-name-row strong {
    font-size: 13.5px;
    color: #1e293b;
    display: block;
}

.activity-name-row small {
    font-size: 11.5px;
    color: #64748b;
}

.activity-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Timeline College Retrieval Bar */
.timeline-college-retrieval-bar {
    margin-top: 18px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.college-retrieval-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.college-retrieval-info .college-icon {
    font-size: 24px;
}

.college-retrieval-info strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    font-weight: 700;
}

.college-retrieval-info small {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.college-retrieval-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 650px;
}

.college-search-input-box {
    position: relative;
    flex: 1.2;
}

.college-search-input-box .search-lens {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #94a3b8;
}

.college-search-input-box input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    transition: all 0.15s ease;
    font-family: inherit;
}

.college-search-input-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.college-select-box {
    flex: 1.1;
    padding: 8px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #1e293b;
    background: #ffffff;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    transition: all 0.15s ease;
}

.college-select-box:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

@media (max-width: 1200px) {
    .smart-metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .months-grid-matrix {
        grid-template-columns: repeat(3, 1fr);
    }

    .college-retrieval-inputs {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }
}

/* ==============================================================
   MODERN SAAS DASHBOARD & TABLE (Reference Layout)
   ============================================================== */
.saas-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 16px;
}

.saas-header-left h1 {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.saas-header-left .subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.saas-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Big Stat Boxes Grid */
.saas-big-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.saas-stat-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.saas-stat-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stat-box-content {
    flex: 1;
}

.stat-box-label {
    font-size: 13px;
    font-weight: 550;
    color: #6b7280;
    display: block;
    margin-bottom: 5px;
}

.stat-box-number {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-box-sub {
    font-size: 11.5px;
    color: #9ca3af;
    display: block;
}

.stat-box-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.purple-circle {
    background: #f3e8ff;
    color: #7e22ce;
}

.peach-circle {
    background: #ffedd5;
    color: #c2410c;
}

.green-circle {
    background: #dcfce7;
    color: #15803d;
}

.blue-circle {
    background: #e0f2fe;
    color: #0369a1;
}

/* Toolbar & Filters Card */
.saas-toolbar-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 22px;
}

.saas-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.saas-search-wrapper {
    position: relative;
    flex: 1.5;
    min-width: 250px;
}

.search-icon-lens {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #9ca3af;
}

.saas-search-input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13.5px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: all 0.15s ease;
    font-family: inherit;
}

.saas-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.saas-select-wrapper {
    flex: 1;
    min-width: 150px;
}

.saas-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13.5px;
    color: #111827;
    background: #ffffff;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.saas-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.saas-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.btn-action-tool {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-action-tool:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #cbd5e1;
    color: #111827;
}

.btn-action-tool:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger-soft {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
}

.btn-danger-soft:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.toolbar-counter-tag {
    margin-left: auto;
    font-size: 13px;
    color: #6b7280;
}

/* Modern SaaS Table */
.saas-table-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: visible;
    margin-bottom: 30px;
}

.table-responsive-wrapper {
    overflow-x: auto;
    overflow-y: visible;
}

.saas-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.saas-data-table th {
    background: #fafafa;
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 650;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.saas-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151;
}

.saas-data-table tr:hover td {
    background: #f8fafc;
}

.saas-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.saas-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.saas-user-meta strong {
    font-size: 13.5px;
    font-weight: 650;
    color: #111827;
    display: block;
}

.saas-user-meta .email {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-top: 1px;
}

/* Soft Badges */
.badge-verified {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-course-pill {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-profile-pill {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-work-pill {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

/* Action Dots Menu */
.dots-action-container {
    position: relative;
    display: inline-block;
}

.dots-action-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s ease;
}

.dots-action-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.saas-action-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 100;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 190px;
    padding: 6px 0;
    display: none;
}

.saas-action-menu.active {
    display: block;
    animation: menuFade 0.15s ease;
}

@keyframes menuFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    transition: background 0.15s;
    font-family: inherit;
}

.action-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.action-menu-item.danger-item {
    color: #dc2626;
}

.action-menu-item.danger-item:hover {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 1100px) {
    .saas-big-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .saas-big-stat-grid {
        grid-template-columns: 1fr;
    }

    .saas-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==============================================================
   TIMELINE DATA RETRIEVAL HUB STYLING
   ============================================================== */
.timeline-retrieval-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-retrieval-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-card-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #eff6ff;
    border-radius: 8px;
    flex-shrink: 0;
}

.timeline-card-title-group h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.timeline-card-title-group p {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.timeline-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
}

.status-live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}

.timeline-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.timeline-pill-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.timeline-pill-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.timeline-pill-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    font-weight: 600;
}

.timeline-drawer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
    animation: fadeInContent 0.2s ease;
}

.timeline-drawer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
}

.timeline-drawer-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-drawer-item label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.timeline-input-composite,
.timeline-dates-composite,
.timeline-month-composite {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-number-input {
    width: 72px;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    font-family: inherit;
    transition: border 0.2s ease;
}

.timeline-number-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.timeline-unit-dropdown,
.timeline-date-picker {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    transition: border 0.2s ease;
}

.timeline-unit-dropdown:focus,
.timeline-date-picker:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.timeline-sep {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ==============================================================
   QUICK STAFF PILLS (Separate Trainer & Counselor Buttons)
   ============================================================== */
.quick-staff-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.staff-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.staff-pill-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.staff-pill-btn.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.staff-pill-btn.counselor-pill.active {
    background: #0d9488;
    color: #ffffff;
    border-color: #0f766e;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

/* ==============================================================
   COLLEGE SELECT WITH INLINE ADD BUTTON & DATABASE PANEL
   ============================================================== */
.college-select-add-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.college-select-add-wrapper select {
    flex: 1;
}

.custom-college-add-panel {
    background: #f8fafc;
    border: 1px dashed #6366f1;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
}

.input-with-action-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.input-with-action-row input {
    flex: 1;
}

/* ==============================================================
   STAFF LANDLINE & INSTITUTION MOU CONTROLS
   ============================================================== */
.badge-optional {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

.full-width-btn {
    width: 100%;
    justify-content: center;
    border-style: dashed;
    padding: 8px 12px;
}

.landline-input-group {
    margin-top: 4px;
}

/* MOU Section Card in Staff Form */
.mou-section-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 8px;
    transition: all 0.25s ease;
}

.mou-section-card:hover {
    border-color: #cbd5e1;
}

.mou-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

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

.mou-badge-icon {
    font-size: 24px;
    width: 42px;
    height: 42px;
    background: #e0f2fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mou-title-group h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
}

.mou-subtext {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748b;
}

.mou-toggle-pills {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 24px;
    gap: 4px;
}

.mou-pill-btn {
    border: none;
    background: transparent;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mou-pill-btn:hover {
    color: #0f172a;
}

.mou-pill-btn.active[data-mou="No"] {
    background: #ffffff;
    color: #dc2626;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mou-pill-btn.active[data-mou="Yes"] {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.mou-details-collapsible {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    animation: fadeInMou 0.25s ease-out;
}

@keyframes fadeInMou {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 900px) {
    .mou-fields-row {
        grid-template-columns: 1fr;
    }
}

/* Badges for MOU in Table */
.badge-mou-signed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-mou-none {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 600;
}

/* --------------------------------------------------------------
   DASHBOARD SINGLE-LINE TABLE STYLES & S.NO FORMATTING
   -------------------------------------------------------------- */
#dashStudentsTable td {
    padding: 10px 14px;
    white-space: nowrap;
    vertical-align: middle;
}

#dashStudentsTable th {
    padding: 11px 14px;
    white-space: nowrap;
}

.serial-no-text {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.saas-user-single-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    max-width: 320px;
}

.saas-avatar-circle.sm {
    width: 26px;
    height: 26px;
    font-size: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-name-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.user-email-text {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.nowrap-badge {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: inline-block;
    vertical-align: middle;
}

.single-line-college-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

.single-line-college-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-line-dept-text {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------
   SESSIONS CONDUCTED OPTION & TABLE CELL STYLES
   -------------------------------------------------------------- */
.session-section-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.05);
}

.session-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.session-badge-icon {
    font-size: 26px;
    background: #dcfce7;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-title-group h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.session-subtext {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 3px;
    margin-bottom: 0;
}

.session-toggle-pills {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 24px;
    gap: 4px;
}

.session-pill-btn {
    border: none;
    background: transparent;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    font-family: inherit;
}

.session-pill-btn:hover {
    color: #0f172a;
}

.session-pill-btn.active[data-session="No"] {
    background: #ffffff;
    color: #64748b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.session-pill-btn.active[data-session="Yes"] {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.session-details-collapsible {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    animation: fadeInSession 0.25s ease-out;
}

@keyframes fadeInSession {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-fields-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .session-fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .session-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* Staff Table Sessions Conducted Cell */
.session-conducted-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 260px;
    max-width: 340px;
}

.session-topic-line {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
}

.session-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #475569;
}

.badge-students-count {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 11px;
}

.badge-session-none {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.btn-link-xs {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-align: left;
    text-decoration: underline;
    margin-top: 2px;
}

.btn-link-xs:hover {
    color: #1d4ed8;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
}

/* Session History in Modal */
.session-history-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.session-history-item:hover {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.session-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.session-history-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.session-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: #64748b;
}

/* Advanced Retrieval Toolbar Button */
.btn-action-tool.btn-advanced-retrieval {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
    font-weight: 650;
    transition: all 0.2s ease;
}

.btn-action-tool.btn-advanced-retrieval:hover:not(:disabled) {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.12);
}

/* ==============================================================
   AUTHENTICATION SCREEN & MODAL OVERLAY STYLES
   ============================================================== */
.auth-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.auth-screen-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 440px;
    padding: 38px 36px 32px 36px;
    box-sizing: border-box;
    animation: authCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes authCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo-box {
    margin-bottom: 12px;
}

.auth-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}



.auth-logo-fallback {
    font-size: 42px;
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.auth-brand-tagline {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px 0;
}

.auth-security-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

.auth-chip-dot {
    width: 7px;
    height: 7px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 550;
    animation: shakeError 0.3s ease;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.auth-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field-group label {
    font-size: 13px;
    font-weight: 650;
    color: #334155;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    pointer-events: none;
    opacity: 0.8;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 12px 42px 12px 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14.5px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-input-wrapper input:focus {
    outline: none;
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-pwd-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.auth-pwd-toggle:hover {
    background: #e2e8f0;
}

.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

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

.auth-footer-note {
    text-align: center;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 12px;
}

/* User Auth Pill in Dashboard Header */
.user-auth-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 8px 4px 10px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.user-auth-avatar {
    font-size: 18px;
}

.user-auth-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-auth-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.user-auth-role {
    font-size: 11px;
    color: #4f46e5;
    font-weight: 600;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #fecaca;
    color: #7f1d1d;
    transform: translateY(-1px);
}

/* Sidebar User Block */
.sidebar-user-block {
    margin: 14px 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-live-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.sidebar-username {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout-btn {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.sidebar-logout-btn:hover {
    background: #fecaca;
    color: #7f1d1d;
}








.view-section-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #edf2f7;
}

.view-section-header h2 {
    font-size: 21px;
    font-weight: 800;
    color: #1e1b4b;
}

.view-section-header .subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}

/* Smooth Tab Transitions */
.tab-content {
    animation: fadeInContent 0.22s ease-in-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================================
   MODERN SAAS DASHBOARD & TABLE (Reference Layout)
   ============================================================== */
.saas-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 16px;
}

.saas-header-left h1 {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.saas-header-left .subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.saas-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Big Stat Boxes Grid */
.saas-big-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.saas-stat-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.saas-stat-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stat-box-content {
    flex: 1;
}

.stat-box-label {
    font-size: 13px;
    font-weight: 550;
    color: #6b7280;
    display: block;
    margin-bottom: 5px;
}

.stat-box-number {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-box-sub {
    font-size: 11.5px;
    color: #9ca3af;
    display: block;
}

.stat-box-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.purple-circle {
    background: #f3e8ff;
    color: #7e22ce;
}

.peach-circle {
    background: #ffedd5;
    color: #c2410c;
}

.green-circle {
    background: #dcfce7;
    color: #15803d;
}

.blue-circle {
    background: #e0f2fe;
    color: #0369a1;
}

/* Toolbar & Filters Card */
.saas-toolbar-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 22px;
}

.saas-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.saas-search-wrapper {
    position: relative;
    flex: 1.5;
    min-width: 250px;
}

.search-icon-lens {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #9ca3af;
}

.saas-search-input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13.5px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: all 0.15s ease;
    font-family: inherit;
}

.saas-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.saas-select-wrapper {
    flex: 1;
    min-width: 150px;
}

.saas-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13.5px;
    color: #111827;
    background: #ffffff;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.saas-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.saas-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.btn-action-tool {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-action-tool:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #cbd5e1;
    color: #111827;
}

.btn-action-tool:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger-soft {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
}

.btn-danger-soft:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.toolbar-counter-tag {
    margin-left: auto;
    font-size: 13px;
    color: #6b7280;
}

/* Modern SaaS Table */
.saas-table-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: visible;
    margin-bottom: 30px;
}

.table-responsive-wrapper {
    overflow-x: auto;
    overflow-y: visible;
}

.saas-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.saas-data-table th {
    background: #fafafa;
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 650;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.saas-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151;
}

.saas-data-table tr:hover td {
    background: #f8fafc;
}

.saas-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.saas-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.saas-user-meta strong {
    font-size: 13.5px;
    font-weight: 650;
    color: #111827;
    display: block;
}

.saas-user-meta .email {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-top: 1px;
}

/* Soft Badges */
.badge-verified {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-course-pill {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-profile-pill {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-work-pill {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

/* Action Dots Menu */
.dots-action-container {
    position: relative;
    display: inline-block;
}

.dots-action-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s ease;
}

.dots-action-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.saas-action-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 100;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 190px;
    padding: 6px 0;
    display: none;
}

.saas-action-menu.active {
    display: block;
    animation: menuFade 0.15s ease;
}

@keyframes menuFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    transition: background 0.15s;
    font-family: inherit;
}

.action-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.action-menu-item.danger-item {
    color: #dc2626;
}

.action-menu-item.danger-item:hover {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 1100px) {
    .saas-big-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .saas-big-stat-grid {
        grid-template-columns: 1fr;
    }

    .saas-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==============================================================
   TIMELINE DATA RETRIEVAL HUB STYLING
   ============================================================== */
.timeline-retrieval-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-retrieval-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-card-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #eff6ff;
    border-radius: 8px;
    flex-shrink: 0;
}

.timeline-card-title-group h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.timeline-card-title-group p {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.timeline-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
}

.status-live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}

.timeline-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.timeline-pill-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.timeline-pill-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.timeline-pill-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    font-weight: 600;
}

.timeline-drawer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
    animation: fadeInContent 0.2s ease;
}

.timeline-drawer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
}

.timeline-drawer-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-drawer-item label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.timeline-input-composite,
.timeline-dates-composite,
.timeline-month-composite {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-number-input {
    width: 72px;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    font-family: inherit;
    transition: border 0.2s ease;
}

.timeline-number-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.timeline-unit-dropdown,
.timeline-date-picker {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    transition: border 0.2s ease;
}

.timeline-unit-dropdown:focus,
.timeline-date-picker:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.timeline-sep {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ==============================================================
   QUICK STAFF PILLS (Separate Trainer & Counselor Buttons)
   ============================================================== */
.quick-staff-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.staff-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.staff-pill-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.staff-pill-btn.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.staff-pill-btn.counselor-pill.active {
    background: #0d9488;
    color: #ffffff;
    border-color: #0f766e;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

/* ==============================================================
   COLLEGE SELECT WITH INLINE ADD BUTTON & DATABASE PANEL
   ============================================================== */
.college-select-add-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.college-select-add-wrapper select {
    flex: 1;
}

.custom-college-add-panel {
    background: #f8fafc;
    border: 1px dashed #6366f1;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
}

.input-with-action-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.input-with-action-row input {
    flex: 1;
}

/* ==============================================================
   STAFF LANDLINE & INSTITUTION MOU CONTROLS
   ============================================================== */
.badge-optional {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

.full-width-btn {
    width: 100%;
    justify-content: center;
    border-style: dashed;
    padding: 8px 12px;
}

.landline-input-group {
    margin-top: 4px;
}

/* MOU Section Card in Staff Form */
.mou-section-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 8px;
    transition: all 0.25s ease;
}

.mou-section-card:hover {
    border-color: #cbd5e1;
}

.mou-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

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

.mou-badge-icon {
    font-size: 24px;
    width: 42px;
    height: 42px;
    background: #e0f2fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mou-title-group h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
}

.mou-subtext {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748b;
}

.mou-toggle-pills {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 24px;
    gap: 4px;
}

.mou-pill-btn {
    border: none;
    background: transparent;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mou-pill-btn:hover {
    color: #0f172a;
}

.mou-pill-btn.active[data-mou="No"] {
    background: #ffffff;
    color: #dc2626;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mou-pill-btn.active[data-mou="Yes"] {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.mou-details-collapsible {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    animation: fadeInMou 0.25s ease-out;
}

@keyframes fadeInMou {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 900px) {
    .mou-fields-row {
        grid-template-columns: 1fr;
    }
}

/* Badges for MOU in Table */
.badge-mou-signed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-mou-none {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 600;
}

/* --------------------------------------------------------------
   DASHBOARD SINGLE-LINE TABLE STYLES & S.NO FORMATTING
   -------------------------------------------------------------- */
#dashStudentsTable td {
    padding: 10px 14px;
    white-space: nowrap;
    vertical-align: middle;
}

#dashStudentsTable th {
    padding: 11px 14px;
    white-space: nowrap;
}

.serial-no-text {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.saas-user-single-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    max-width: 320px;
}

.saas-avatar-circle.sm {
    width: 26px;
    height: 26px;
    font-size: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-name-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.user-email-text {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.nowrap-badge {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: inline-block;
    vertical-align: middle;
}

.single-line-college-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

.single-line-college-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-line-dept-text {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------
   SESSIONS CONDUCTED OPTION & TABLE CELL STYLES
   -------------------------------------------------------------- */
.session-section-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.05);
}

.session-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.session-badge-icon {
    font-size: 26px;
    background: #dcfce7;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-title-group h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.session-subtext {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 3px;
    margin-bottom: 0;
}

.session-toggle-pills {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 24px;
    gap: 4px;
}

.session-pill-btn {
    border: none;
    background: transparent;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    font-family: inherit;
}

.session-pill-btn:hover {
    color: #0f172a;
}

.session-pill-btn.active[data-session="No"] {
    background: #ffffff;
    color: #64748b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.session-pill-btn.active[data-session="Yes"] {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.session-details-collapsible {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    animation: fadeInSession 0.25s ease-out;
}

@keyframes fadeInSession {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-fields-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .session-fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .session-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* Staff Table Sessions Conducted Cell */
.session-conducted-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 260px;
    max-width: 340px;
}

.session-topic-line {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
}

.session-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #475569;
}

.badge-students-count {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 11px;
}

.badge-session-none {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.btn-link-xs {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-align: left;
    text-decoration: underline;
    margin-top: 2px;
}

.btn-link-xs:hover {
    color: #1d4ed8;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
}

/* Session History in Modal */
.session-history-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.session-history-item:hover {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.session-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.session-history-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.session-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: #64748b;
}

/* Advanced Retrieval Toolbar Button */
.btn-action-tool.btn-advanced-retrieval {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
    font-weight: 650;
    transition: all 0.2s ease;
}

.btn-action-tool.btn-advanced-retrieval:hover:not(:disabled) {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.12);
}

/* ==============================================================
   AUTHENTICATION SCREEN & MODAL OVERLAY STYLES
   ============================================================== */
.auth-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.auth-screen-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 440px;
    padding: 38px 36px 32px 36px;
    box-sizing: border-box;
    animation: authCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes authCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}



.auth-logo-box {
    margin-bottom: 12px;
}

.auth-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.auth-logo-fallback {
    font-size: 42px;
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.auth-brand-tagline {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px 0;
}

.auth-security-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

.auth-chip-dot {
    width: 7px;
    height: 7px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 550;
    animation: shakeError 0.3s ease;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.auth-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field-group label {
    font-size: 13px;
    font-weight: 650;
    color: #334155;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    pointer-events: none;
    opacity: 0.8;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 12px 42px 12px 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14.5px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-input-wrapper input:focus {
    outline: none;
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-pwd-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.auth-pwd-toggle:hover {
    background: #e2e8f0;
}

.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

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

.auth-footer-note {
    text-align: center;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 12px;
}

/* User Auth Pill in Dashboard Header */
.user-auth-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 8px 4px 10px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.user-auth-avatar {
    font-size: 18px;
}

.user-auth-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-auth-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.user-auth-role {
    font-size: 11px;
    color: #4f46e5;
    font-weight: 600;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #fecaca;
    color: #7f1d1d;
    transform: translateY(-1px);
}

/* Sidebar User Block */
.sidebar-user-block {
    margin: 14px 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-live-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.sidebar-username {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout-btn {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.sidebar-logout-btn:hover {
    background: #fecaca;
    color: #7f1d1d;
}






/* ==============================================================
   MODERN SAAS DASHBOARD & TABLE (Reference Layout)
   ============================================================== */
.saas-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 16px;
}

.saas-header-left h1 {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.saas-header-left .subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.saas-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Big Stat Boxes Grid */
.saas-big-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.saas-stat-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.saas-stat-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stat-box-content {
    flex: 1;
}

.stat-box-label {
    font-size: 13px;
    font-weight: 550;
    color: #6b7280;
    display: block;
    margin-bottom: 5px;
}

.stat-box-number {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-box-sub {
    font-size: 11.5px;
    color: #9ca3af;
    display: block;
}

.stat-box-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.purple-circle {
    background: #f3e8ff;
    color: #7e22ce;
}

.peach-circle {
    background: #ffedd5;
    color: #c2410c;
}

.green-circle {
    background: #dcfce7;
    color: #15803d;
}

.blue-circle {
    background: #e0f2fe;
    color: #0369a1;
}

/* Toolbar & Filters Card */
.saas-toolbar-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 22px;
}

.saas-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.saas-search-wrapper {
    position: relative;
    flex: 1.5;
    min-width: 250px;
}

.search-icon-lens {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #9ca3af;
}

.saas-search-input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13.5px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: all 0.15s ease;
    font-family: inherit;
}

.saas-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.saas-select-wrapper {
    flex: 1;
    min-width: 150px;
}

.saas-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13.5px;
    color: #111827;
    background: #ffffff;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.saas-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.saas-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.btn-action-tool {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-action-tool:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #cbd5e1;
    color: #111827;
}

.btn-action-tool:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger-soft {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
}

.btn-danger-soft:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.toolbar-counter-tag {
    margin-left: auto;
    font-size: 13px;
    color: #6b7280;
}

/* Modern SaaS Table */
.saas-table-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: visible;
    margin-bottom: 30px;
}

.table-responsive-wrapper {
    overflow-x: auto;
    overflow-y: visible;
}

.saas-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.saas-data-table th {
    background: #fafafa;
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 650;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.saas-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151;
}

.saas-data-table tr:hover td {
    background: #f8fafc;
}

.saas-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.saas-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.saas-user-meta strong {
    font-size: 13.5px;
    font-weight: 650;
    color: #111827;
    display: block;
}

.saas-user-meta .email {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-top: 1px;
}

/* Soft Badges */
.badge-verified {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-course-pill {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-profile-pill {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-work-pill {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

/* Action Dots Menu */
.dots-action-container {
    position: relative;
    display: inline-block;
}

.dots-action-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s ease;
}

.dots-action-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.saas-action-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 100;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 190px;
    padding: 6px 0;
    display: none;
}

.saas-action-menu.active {
    display: block;
    animation: menuFade 0.15s ease;
}

@keyframes menuFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    transition: background 0.15s;
    font-family: inherit;
}

.action-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.action-menu-item.danger-item {
    color: #dc2626;
}

.action-menu-item.danger-item:hover {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 1100px) {
    .saas-big-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .saas-big-stat-grid {
        grid-template-columns: 1fr;
    }

    .saas-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==============================================================
   TIMELINE DATA RETRIEVAL HUB STYLING
   ============================================================== */
.timeline-retrieval-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-retrieval-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-card-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #eff6ff;
    border-radius: 8px;
    flex-shrink: 0;
}

.timeline-card-title-group h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.timeline-card-title-group p {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.timeline-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
}

.status-live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}

.timeline-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.timeline-pill-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.timeline-pill-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.timeline-pill-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    font-weight: 600;
}

.timeline-drawer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
    animation: fadeInContent 0.2s ease;
}

.timeline-drawer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
}

.timeline-drawer-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-drawer-item label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.timeline-input-composite,
.timeline-dates-composite,
.timeline-month-composite {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-number-input {
    width: 72px;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    font-family: inherit;
    transition: border 0.2s ease;
}

.timeline-number-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.timeline-unit-dropdown,
.timeline-date-picker {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    transition: border 0.2s ease;
}

.timeline-unit-dropdown:focus,
.timeline-date-picker:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.timeline-sep {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ==============================================================
   QUICK STAFF PILLS (Separate Trainer & Counselor Buttons)
   ============================================================== */
.quick-staff-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.staff-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.staff-pill-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.staff-pill-btn.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.staff-pill-btn.counselor-pill.active {
    background: #0d9488;
    color: #ffffff;
    border-color: #0f766e;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

/* ==============================================================
   COLLEGE SELECT WITH INLINE ADD BUTTON & DATABASE PANEL
   ============================================================== */
.college-select-add-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.college-select-add-wrapper select {
    flex: 1;
}

.custom-college-add-panel {
    background: #f8fafc;
    border: 1px dashed #6366f1;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
}

.input-with-action-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.input-with-action-row input {
    flex: 1;
}

/* ==============================================================
   STAFF LANDLINE & INSTITUTION MOU CONTROLS
   ============================================================== */
.badge-optional {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

.full-width-btn {
    width: 100%;
    justify-content: center;
    border-style: dashed;
    padding: 8px 12px;
}

.landline-input-group {
    margin-top: 4px;
}

/* MOU Section Card in Staff Form */
.mou-section-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 8px;
    transition: all 0.25s ease;
}

.mou-section-card:hover {
    border-color: #cbd5e1;
}

.mou-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

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

.mou-badge-icon {
    font-size: 24px;
    width: 42px;
    height: 42px;
    background: #e0f2fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mou-title-group h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
}

.mou-subtext {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748b;
}

.mou-toggle-pills {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 24px;
    gap: 4px;
}

.mou-pill-btn {
    border: none;
    background: transparent;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mou-pill-btn:hover {
    color: #0f172a;
}

.mou-pill-btn.active[data-mou="No"] {
    background: #ffffff;
    color: #dc2626;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mou-pill-btn.active[data-mou="Yes"] {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.mou-details-collapsible {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    animation: fadeInMou 0.25s ease-out;
}

@keyframes fadeInMou {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 900px) {
    .mou-fields-row {
        grid-template-columns: 1fr;
    }
}

/* Badges for MOU in Table */
.badge-mou-signed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-mou-none {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 600;
}

/* --------------------------------------------------------------
   DASHBOARD SINGLE-LINE TABLE STYLES & S.NO FORMATTING
   -------------------------------------------------------------- */
#dashStudentsTable td {
    padding: 10px 14px;
    white-space: nowrap;
    vertical-align: middle;
}

#dashStudentsTable th {
    padding: 11px 14px;
    white-space: nowrap;
}

.serial-no-text {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.saas-user-single-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    max-width: 320px;
}

.saas-avatar-circle.sm {
    width: 26px;
    height: 26px;
    font-size: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-name-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.user-email-text {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.nowrap-badge {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: inline-block;
    vertical-align: middle;
}

.single-line-college-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

.single-line-college-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-line-dept-text {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------
   SESSIONS CONDUCTED OPTION & TABLE CELL STYLES
   -------------------------------------------------------------- */
.session-section-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.05);
}

.session-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.session-badge-icon {
    font-size: 26px;
    background: #dcfce7;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-title-group h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.session-subtext {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 3px;
    margin-bottom: 0;
}

.session-toggle-pills {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 24px;
    gap: 4px;
}

.session-pill-btn {
    border: none;
    background: transparent;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    font-family: inherit;
}

.session-pill-btn:hover {
    color: #0f172a;
}

.session-pill-btn.active[data-session="No"] {
    background: #ffffff;
    color: #64748b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.session-pill-btn.active[data-session="Yes"] {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.session-details-collapsible {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    animation: fadeInSession 0.25s ease-out;
}

@keyframes fadeInSession {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-fields-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .session-fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .session-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* Staff Table Sessions Conducted Cell */
.session-conducted-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 260px;
    max-width: 340px;
}

.session-topic-line {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
}

.session-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #475569;
}

.badge-students-count {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 11px;
}

.badge-session-none {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.btn-link-xs {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-align: left;
    text-decoration: underline;
    margin-top: 2px;
}

.btn-link-xs:hover {
    color: #1d4ed8;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
}

/* Session History in Modal */
.session-history-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.session-history-item:hover {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.session-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.session-history-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.session-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: #64748b;
}

/* Advanced Retrieval Toolbar Button */
.btn-action-tool.btn-advanced-retrieval {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
    font-weight: 650;
    transition: all 0.2s ease;
}

.btn-action-tool.btn-advanced-retrieval:hover:not(:disabled) {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.12);
}

/* ==============================================================
   AUTHENTICATION SCREEN & MODAL OVERLAY STYLES
   ============================================================== */
.auth-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.auth-screen-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 440px;
    padding: 38px 36px 32px 36px;
    box-sizing: border-box;
    animation: authCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes authCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo-box {
    margin-bottom: 12px;
}

.auth-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}



.auth-logo-fallback {
    font-size: 42px;
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.auth-brand-tagline {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px 0;
}

.auth-security-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

.auth-chip-dot {
    width: 7px;
    height: 7px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 550;
    animation: shakeError 0.3s ease;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.auth-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field-group label {
    font-size: 13px;
    font-weight: 650;
    color: #334155;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    pointer-events: none;
    opacity: 0.8;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 12px 42px 12px 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14.5px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-input-wrapper input:focus {
    outline: none;
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-pwd-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.auth-pwd-toggle:hover {
    background: #e2e8f0;
}

.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

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

.auth-footer-note {
    text-align: center;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 12px;
}

/* User Auth Pill in Dashboard Header */
.user-auth-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 8px 4px 10px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.user-auth-avatar {
    font-size: 18px;
}

.user-auth-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-auth-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.user-auth-role {
    font-size: 11px;
    color: #4f46e5;
    font-weight: 600;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #fecaca;
    color: #7f1d1d;
    transform: translateY(-1px);
}

/* Sidebar User Block */
.sidebar-user-block {
    margin: 14px 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-live-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.sidebar-username {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout-btn {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.sidebar-logout-btn:hover {
    background: #fecaca;
    color: #7f1d1d;
}








.view-section-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #edf2f7;
}

.view-section-header h2 {
    font-size: 21px;
    font-weight: 800;
    color: #1e1b4b;
}

.view-section-header .subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}

/* Smooth Tab Transitions */
.tab-content {
    animation: fadeInContent 0.22s ease-in-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================================
   MODERN SAAS DASHBOARD & TABLE (Reference Layout)
   ============================================================== */
.saas-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 16px;
}

.saas-header-left h1 {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.saas-header-left .subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.saas-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Big Stat Boxes Grid */
.saas-big-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.saas-stat-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.saas-stat-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stat-box-content {
    flex: 1;
}

.stat-box-label {
    font-size: 13px;
    font-weight: 550;
    color: #6b7280;
    display: block;
    margin-bottom: 5px;
}

.stat-box-number {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-box-sub {
    font-size: 11.5px;
    color: #9ca3af;
    display: block;
}

.stat-box-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.purple-circle {
    background: #f3e8ff;
    color: #7e22ce;
}

.peach-circle {
    background: #ffedd5;
    color: #c2410c;
}

.green-circle {
    background: #dcfce7;
    color: #15803d;
}

.blue-circle {
    background: #e0f2fe;
    color: #0369a1;
}

/* Toolbar & Filters Card */
.saas-toolbar-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 22px;
}

.saas-filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.saas-search-wrapper {
    position: relative;
    flex: 1.5;
    min-width: 250px;
}

.search-icon-lens {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #9ca3af;
}

.saas-search-input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13.5px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: all 0.15s ease;
    font-family: inherit;
}

.saas-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.saas-select-wrapper {
    flex: 1;
    min-width: 150px;
}

.saas-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13.5px;
    color: #111827;
    background: #ffffff;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.saas-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.saas-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.btn-action-tool {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-action-tool:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #cbd5e1;
    color: #111827;
}

.btn-action-tool:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger-soft {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
}

.btn-danger-soft:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.toolbar-counter-tag {
    margin-left: auto;
    font-size: 13px;
    color: #6b7280;
}

/* Modern SaaS Table */
.saas-table-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: visible;
    margin-bottom: 30px;
}

.table-responsive-wrapper {
    overflow-x: auto;
    overflow-y: visible;
}

.saas-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.saas-data-table th {
    background: #fafafa;
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 650;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.saas-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151;
}

.saas-data-table tr:hover td {
    background: #f8fafc;
}

.saas-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.saas-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.saas-user-meta strong {
    font-size: 13.5px;
    font-weight: 650;
    color: #111827;
    display: block;
}

.saas-user-meta .email {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-top: 1px;
}

/* Soft Badges */
.badge-verified {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-course-pill {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-profile-pill {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

.badge-work-pill {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-block;
}

/* Action Dots Menu */
.dots-action-container {
    position: relative;
    display: inline-block;
}

.dots-action-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s ease;
}

.dots-action-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.saas-action-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 100;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 190px;
    padding: 6px 0;
    display: none;
}

.saas-action-menu.active {
    display: block;
    animation: menuFade 0.15s ease;
}

@keyframes menuFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    transition: background 0.15s;
    font-family: inherit;
}

.action-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.action-menu-item.danger-item {
    color: #dc2626;
}

.action-menu-item.danger-item:hover {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 1100px) {
    .saas-big-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .saas-big-stat-grid {
        grid-template-columns: 1fr;
    }

    .saas-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==============================================================
   TIMELINE DATA RETRIEVAL HUB STYLING
   ============================================================== */
.timeline-retrieval-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-retrieval-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-card-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #eff6ff;
    border-radius: 8px;
    flex-shrink: 0;
}

.timeline-card-title-group h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.timeline-card-title-group p {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.timeline-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
}

.status-live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}

.timeline-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.timeline-pill-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.timeline-pill-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.timeline-pill-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    font-weight: 600;
}

.timeline-drawer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
    animation: fadeInContent 0.2s ease;
}

.timeline-drawer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
}

.timeline-drawer-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-drawer-item label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.timeline-input-composite,
.timeline-dates-composite,
.timeline-month-composite {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-number-input {
    width: 72px;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    font-family: inherit;
    transition: border 0.2s ease;
}

.timeline-number-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.timeline-unit-dropdown,
.timeline-date-picker {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    transition: border 0.2s ease;
}

.timeline-unit-dropdown:focus,
.timeline-date-picker:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.timeline-sep {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ==============================================================
   QUICK STAFF PILLS (Separate Trainer & Counselor Buttons)
   ============================================================== */
.quick-staff-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.staff-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.staff-pill-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.staff-pill-btn.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4338ca;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.staff-pill-btn.counselor-pill.active {
    background: #0d9488;
    color: #ffffff;
    border-color: #0f766e;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

/* ==============================================================
   COLLEGE SELECT WITH INLINE ADD BUTTON & DATABASE PANEL
   ============================================================== */
.college-select-add-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.college-select-add-wrapper select {
    flex: 1;
}

.custom-college-add-panel {
    background: #f8fafc;
    border: 1px dashed #6366f1;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
}

.input-with-action-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.input-with-action-row input {
    flex: 1;
}

/* ==============================================================
   STAFF LANDLINE & INSTITUTION MOU CONTROLS
   ============================================================== */
.badge-optional {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

.full-width-btn {
    width: 100%;
    justify-content: center;
    border-style: dashed;
    padding: 8px 12px;
}

.landline-input-group {
    margin-top: 4px;
}

/* MOU Section Card in Staff Form */
.mou-section-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 8px;
    transition: all 0.25s ease;
}

.mou-section-card:hover {
    border-color: #cbd5e1;
}

.mou-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

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

.mou-badge-icon {
    font-size: 24px;
    width: 42px;
    height: 42px;
    background: #e0f2fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mou-title-group h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
}

.mou-subtext {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748b;
}

.mou-toggle-pills {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 24px;
    gap: 4px;
}

.mou-pill-btn {
    border: none;
    background: transparent;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mou-pill-btn:hover {
    color: #0f172a;
}

.mou-pill-btn.active[data-mou="No"] {
    background: #ffffff;
    color: #dc2626;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mou-pill-btn.active[data-mou="Yes"] {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.mou-details-collapsible {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    animation: fadeInMou 0.25s ease-out;
}

@keyframes fadeInMou {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 900px) {
    .mou-fields-row {
        grid-template-columns: 1fr;
    }
}

/* Badges for MOU in Table */
.badge-mou-signed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-mou-none {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 600;
}

/* --------------------------------------------------------------
   DASHBOARD SINGLE-LINE TABLE STYLES & S.NO FORMATTING
   -------------------------------------------------------------- */
#dashStudentsTable td {
    padding: 10px 14px;
    white-space: nowrap;
    vertical-align: middle;
}

#dashStudentsTable th {
    padding: 11px 14px;
    white-space: nowrap;
}

.serial-no-text {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.saas-user-single-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    max-width: 320px;
}

.saas-avatar-circle.sm {
    width: 26px;
    height: 26px;
    font-size: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-name-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.user-email-text {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.nowrap-badge {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: inline-block;
    vertical-align: middle;
}

.single-line-college-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

.single-line-college-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-line-dept-text {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------
   SESSIONS CONDUCTED OPTION & TABLE CELL STYLES
   -------------------------------------------------------------- */
.session-section-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.05);
}

.session-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.session-badge-icon {
    font-size: 26px;
    background: #dcfce7;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-title-group h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.session-subtext {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 3px;
    margin-bottom: 0;
}

.session-toggle-pills {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 24px;
    gap: 4px;
}

.session-pill-btn {
    border: none;
    background: transparent;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    font-family: inherit;
}

.session-pill-btn:hover {
    color: #0f172a;
}

.session-pill-btn.active[data-session="No"] {
    background: #ffffff;
    color: #64748b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.session-pill-btn.active[data-session="Yes"] {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.session-details-collapsible {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    animation: fadeInSession 0.25s ease-out;
}

@keyframes fadeInSession {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-fields-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .session-fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .session-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* Staff Table Sessions Conducted Cell */
.session-conducted-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 260px;
    max-width: 340px;
}

.session-topic-line {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
}

.session-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #475569;
}

.badge-students-count {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 11px;
}

.badge-session-none {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.btn-link-xs {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-align: left;
    text-decoration: underline;
    margin-top: 2px;
}

.btn-link-xs:hover {
    color: #1d4ed8;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
}

/* Session History in Modal */
.session-history-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.session-history-item:hover {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.session-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.session-history-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.session-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: #64748b;
}

/* Advanced Retrieval Toolbar Button */
.btn-action-tool.btn-advanced-retrieval {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
    font-weight: 650;
    transition: all 0.2s ease;
}

.btn-action-tool.btn-advanced-retrieval:hover:not(:disabled) {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.12);
}

/* ==============================================================
   AUTHENTICATION SCREEN & MODAL OVERLAY STYLES
   ============================================================== */
.auth-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.auth-screen-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 440px;
    padding: 38px 36px 32px 36px;
    box-sizing: border-box;
    animation: authCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes authCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo-box {
    margin-bottom: 12px;
}

.auth-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.auth-logo-fallback {
    font-size: 42px;
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.auth-brand-tagline {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px 0;
}

.auth-security-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

.auth-chip-dot {
    width: 7px;
    height: 7px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 550;
    animation: shakeError 0.3s ease;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.auth-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field-group label {
    font-size: 13px;
    font-weight: 650;
    color: #334155;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    pointer-events: none;
    opacity: 0.8;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 12px 42px 12px 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14.5px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-input-wrapper input:focus {
    outline: none;
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-pwd-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.auth-pwd-toggle:hover {
    background: #e2e8f0;
}

.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

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

.auth-footer-note {
    text-align: center;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 12px;
}

/* User Auth Pill in Dashboard Header */
.user-auth-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 8px 4px 10px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.user-auth-avatar {
    font-size: 18px;
}

.user-auth-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-auth-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.user-auth-role {
    font-size: 11px;
    color: #4f46e5;
    font-weight: 600;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #fecaca;
    color: #7f1d1d;
    transform: translateY(-1px);
}

/* Sidebar User Block */
.sidebar-user-block {
    margin: 14px 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-live-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.sidebar-username {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout-btn {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.sidebar-logout-btn:hover {
    background: #fecaca;
    color: #7f1d1d;
}

.auth-logo-box {
    margin-bottom: 12px;
}

.auth-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.auth-logo-fallback {
    font-size: 42px;
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.auth-brand-tagline {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px 0;
}

.auth-security-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

.auth-chip-dot {
    width: 7px;
    height: 7px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 550;
    animation: shakeError 0.3s ease;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.auth-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field-group label {
    font-size: 13px;
    font-weight: 650;
    color: #334155;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    pointer-events: none;
    opacity: 0.8;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 12px 42px 12px 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14.5px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-input-wrapper input:focus {
    outline: none;
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-pwd-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.auth-pwd-toggle:hover {
    background: #e2e8f0;
}

.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

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

.auth-footer-note {
    text-align: center;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 12px;
}

/* User Auth Pill in Dashboard Header */
.user-auth-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 8px 4px 10px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.user-auth-avatar {
    font-size: 18px;
}

.user-auth-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-auth-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.user-auth-role {
    font-size: 11px;
    color: #4f46e5;
    font-weight: 600;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #fecaca;
    color: #7f1d1d;
    transform: translateY(-1px);
}

/* Sidebar User Block */
.sidebar-user-block {
    margin: 14px 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-live-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.sidebar-username {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout-btn {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.sidebar-logout-btn:hover {
    background: #fecaca;
    color: #7f1d1d;
}