/* =============================================================================
   SCCOE Credential System - Main Stylesheet
   ============================================================================= */

/* =============================================================================
   Base Styles
   ============================================================================= */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* =============================================================================
   Dashboard Card Color Palette
   ============================================================================= */

.dashboard-card-blue {
    background-color: #0069A7;
    color: white;
}

.dashboard-card-green {
    background-color: #85BAA1;
    color: white;
}

.dashboard-card-gold {
    background-color: #DDA448;
    color: white;
}

.dashboard-card-red {
    background-color: #DB5461;
    color: white;
}

.dashboard-card-purple {
    background-color: #7952B3;
    color: white;
}

.dashboard-card-blue a,
.dashboard-card-green a,
.dashboard-card-gold a,
.dashboard-card-red a,
.dashboard-card-purple a {
    color: white;
}

.dashboard-card-blue .text-white-50,
.dashboard-card-green .text-white-50,
.dashboard-card-gold .text-white-50,
.dashboard-card-red .text-white-50,
.dashboard-card-purple .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* TCC and Credential Header Colors for MatchTCC and SSN Management */
.card-header-tcc {
    background-color: #DDA448;
    color: white;
}

.card-header-tcc .badge {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: white;
}

.card-header-credential {
    background-color: #85BAA1;
    color: white;
}

.card-header-credential .badge {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #333;
}

/* SCCOE Card Header Colors */
.card-header-sccoe-blue {
    background-color: #0069A7;
    color: white;
}

.card-header-sccoe-gold {
    background-color: #DDA448;
    color: white;
}

.card-header-sccoe-red {
    background-color: #DB5461;
    color: white;
}

/* SCCOE Form Header Colors (for full-width headers) */
.form-header-sccoe-red {
    background: linear-gradient(135deg, #DB5461 0%, #c4424f 100%);
    color: white;
}

/* =============================================================================
   Common Form Styles
   ============================================================================= */

.form-header {
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.form-section.employee-section {
    overflow: visible;
}

.section-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #8b2942;
    font-size: 0.9rem;
    border-radius: 12px 12px 0 0;
}

.section-body {
    padding: 1.5rem;
}

.section-body.employee-body {
    overflow: visible;
    position: relative;
    z-index: 100;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.375rem;
}

.form-label.required::after {
    content: " *";
    color: #dc2626;
}

.form-label .required {
    color: #e53e3e;
}

.form-control,
.form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* =============================================================================
   Radio/Checkbox Groups
   ============================================================================= */

.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =============================================================================
   Button Styles
   ============================================================================= */

.btn-save {
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-save:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-action {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-actions {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

/* =============================================================================
   Document Number Display
   ============================================================================= */

.document-number-display {
    background: #f1f5f9;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-family: monospace;
    font-weight: 600;
    color: #1e40af;
}

/* =============================================================================
   Record Type Indicators
   ============================================================================= */

.record-type-indicator {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.record-type-application {
    background: #dbeafe;
    color: #1e40af;
}

.record-type-tcc {
    background: #fef3c7;
    color: #92400e;
}

/* =============================================================================
   Employee Search Styles
   ============================================================================= */

.employee-search-container {
    position: relative;
    z-index: 1000;
}

.employee-search-result {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    margin-top: 4px;
}

.employee-search-result.show {
    display: block;
}

.employee-search-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s;
    background: white;
}

.employee-search-item:hover {
    background-color: #f0f9ff;
}

.employee-search-item:last-child {
    border-bottom: none;
}

.employee-search-item .employee-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.employee-search-item .employee-ssn {
    font-size: 0.8rem;
    color: #64748b;
    font-family: 'Consolas', monospace;
}

.selected-employee-display {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-employee-display .emp-info {
    display: flex;
    flex-direction: column;
}

.selected-employee-display .emp-name {
    font-weight: 600;
    color: #0369a1;
}

.selected-employee-display .emp-ssn {
    font-size: 0.8rem;
    color: #64748b;
    font-family: 'Consolas', monospace;
}

.selected-employee-card .card {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
}

.selected-employee-card .card .fw-semibold {
    color: #1565c0;
}

/* =============================================================================
   Application/Details Header Styles
   ============================================================================= */

.app-header,
.details-header {
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.app-header h1 {
    font-weight: 600;
    margin: 0;
}

.app-header p {
    opacity: 0.9;
    margin: 0.25rem 0 0 0;
}

.details-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* =============================================================================
   Detail Row Styles
   ============================================================================= */

.detail-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    width: 180px;
    font-weight: 500;
    color: #64748b;
    font-size: 0.85rem;
}

.detail-value {
    flex: 1;
    color: #1e293b;
    font-size: 0.9rem;
}

/* =============================================================================
   Badge Styles
   ============================================================================= */

.badge-type {
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-tcc {
    background: #fef3c7;
    color: #d97706;
}

.badge-application {
    background: #dbeafe;
    color: #2563eb;
}

.badge-credential {
    background: #d1fae5;
    color: #059669;
}

.badge-teacher {
    background: #e0e7ff;
    color: #4338ca;
}

.badge-status {
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-issued {
    background: #d1fae5;
    color: #059669;
}

.badge-held {
    background: #fef3c7;
    color: #d97706;
}

.badge-online {
    background: #dbeafe;
    color: #2563eb;
}

.badge-completed {
    background: #d1fae5;
    color: #059669;
}

.badge-pay {
    background: #fee2e2;
    color: #dc2626;
}

/* =============================================================================
   Subject/Tag Styles
   ============================================================================= */

.subject-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subject-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* =============================================================================
   Notes Box
   ============================================================================= */

.notes-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: #475569;
    white-space: pre-wrap;
}

/* =============================================================================
   Audit Info
   ============================================================================= */

.audit-info {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* =============================================================================
   Search Card Styles (Applications Index)
   ============================================================================= */

.search-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.search-input {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.filter-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.85rem;
    background-color: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

/* =============================================================================
   Results Table Styles
   ============================================================================= */

.results-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    background: #f8fafc;
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.results-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.results-table tbody tr {
    transition: background-color 0.15s;
}

.results-table tbody tr:hover {
    background-color: #f8fafc;
}

.employee-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* =============================================================================
   Teacher Page Styles
   ============================================================================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h4 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.breadcrumb-nav {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.breadcrumb-nav a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.form-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.form-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.form-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e3c72;
}

.form-card-body {
    padding: 24px;
}

/* =============================================================================
   Teacher Card Styles (Mobile/Responsive)
   ============================================================================= */

.teacher-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    transition: box-shadow 0.2s;
}

.teacher-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.teacher-card .teacher-name {
    font-weight: 600;
    color: #1e3c72;
    font-size: 1rem;
}

.teacher-card .teacher-meta {
    font-size: 0.85rem;
    color: #666;
}

.teacher-card .badge {
    font-size: 0.75rem;
}

/* =============================================================================
   Teacher Details Styles
   ============================================================================= */

.employee-header {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 0;
}

.employee-avatar {
    width: 50px;
    height: 50px;
    background: #e8f4fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a9bd5;
}

.employee-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.employee-meta {
    color: #666;
    font-size: 0.9rem;
}

.employee-meta i {
    color: #999;
    margin-right: 4px;
}

.status-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.status-valid {
    background-color: #e6f7ed;
    color: #1a7f4b;
    border: 1px solid #1a7f4b;
}

.status-hold {
    background-color: #fff8e6;
    color: #b38600;
    border: 1px solid #b38600;
}

.status-suspended {
    background-color: #fdeaea;
    color: #c53030;
    border: 1px solid #c53030;
}

.status-revoked {
    background-color: #1a202c;
    color: #fff;
    border: 1px solid #1a202c;
}

/* =============================================================================
   Login Page Styles
   ============================================================================= */

.login-page-body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
}

.login-header {
    background: #1e3c72;
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.login-body {
    padding: 30px;
}

/* =============================================================================
   Print Styles
   ============================================================================= */

.print-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    color: #333;
    padding: 0.5in;
}

.print-header {
    text-align: center;
    border-bottom: 2px solid #1e3c72;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.print-header h1 {
    font-size: 18pt;
    color: #1e3c72;
    margin-bottom: 5px;
}

.print-header p {
    font-size: 10pt;
    color: #666;
}

.print-employee-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.print-employee-info h2 {
    font-size: 14pt;
    color: #1e3c72;
    margin-bottom: 10px;
}

.print-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.print-info-item {
    font-size: 10pt;
}

.print-info-item label {
    font-weight: 600;
    color: #666;
}

.print-section {
    margin-bottom: 20px;
}

.print-section-title {
    background: #1e3c72;
    color: white;
    padding: 8px 15px;
    font-size: 11pt;
    font-weight: 600;
    margin-bottom: 10px;
}

.print-section-content {
    padding: 0 15px;
}

.print-field-row {
    display: flex;
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
}

.print-field-row:last-child {
    border-bottom: none;
}

.print-field-label {
    width: 180px;
    font-weight: 500;
    color: #666;
}

.print-field-value {
    flex: 1;
}

.print-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.print-subject-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.print-subject-tag {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 9pt;
}

.print-notes-box {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 10pt;
    white-space: pre-wrap;
}

.print-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 9pt;
    color: #999;
}

.print-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 10pt;
    font-weight: 600;
}

.print-status-issued {
    background: #d4edda;
    color: #155724;
}

.print-status-held {
    background: #fff3cd;
    color: #856404;
}

.print-status-online {
    background: #cce5ff;
    color: #004085;
}

.print-status-completed {
    background: #d4edda;
    color: #155724;
}

.print-status-pay {
    background: #f8d7da;
    color: #721c24;
}

@media print {
    .print-body {
        padding: 0;
    }

    .no-print {
        display: none !important;
    }
}

/* =============================================================================
   Responsive Styles
   ============================================================================= */

.search-header {
    flex-wrap: wrap;
    gap: 1rem;
}

.mobile-cards {
    display: none;
}

@media (max-width: 991.98px) {
    .desktop-table {
        display: none !important;
    }

    .mobile-cards {
        display: block;
    }

    .search-header h1 {
        font-size: 1.25rem;
    }

    .search-header p {
        font-size: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .search-form .row {
        --bs-gutter-y: 0.75rem;
    }

    .btn-group.w-100 {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-group.w-100 .btn {
        border-radius: 0.375rem !important;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .pagination .page-link {
        padding: 0.375rem 0.625rem;
        font-size: 0.875rem;
    }
}

.results-count {
    white-space: nowrap;
}

/* =============================================================================
   Teacher Details Additional Styles
   ============================================================================= */

.tabs-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
}

/* Modern Tab Styles */
.nav-tabs-custom {
    background: transparent;
    border-bottom: 1px solid #dee2e6;
    padding: 0;
    margin: 0 0 1rem 0;
    gap: 0.25rem;
}

.nav-tabs-custom .nav-item {
    margin-bottom: -1px;
}

.nav-tabs-custom .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    color: #6c757d;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tabs-custom .nav-link:hover {
    color: #1e3c72;
    background: rgba(30, 60, 114, 0.05);
    border-color: #dee2e6 #dee2e6 transparent;
}

.nav-tabs-custom .nav-link.active {
    color: #1e3c72;
    background: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

.nav-tabs-custom .nav-link i {
    font-size: 1rem;
}

.nav-tabs-custom .nav-link .badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
    font-weight: 500;
}

.nav-tabs-custom .nav-link.active .badge {
    background-color: #1e3c72 !important;
}

/* Tab content styling */
.tab-content > .tab-pane {
    padding: 0;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2196F3;
}

.info-label {
    font-size: 0.8rem;
    color: #2196F3;
    margin-bottom: 2px;
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 16px;
}

.tab-content-area {
    padding: 24px;
    background: white;
}

.district-badge {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #333;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
}

.success-alert {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.employee-info-badge {
    background: #e8f4fc;
    color: #1e3c72;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =============================================================================
   District Multiselect Styles
   ============================================================================= */

.district-multiselect {
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    background: white;
}

.district-multiselect:focus-within {
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.district-tag {
    display: inline-flex;
    align-items: center;
    background: #e8f4fc;
    color: #1e3c72;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 2px;
}

.district-tag .remove {
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.7;
    font-weight: bold;
}

.district-tag .remove:hover {
    opacity: 1;
}

.dropdown-item.district-option {
    padding: 10px 16px;
    cursor: pointer;
}

.dropdown-item.district-option:hover {
    background: #f3f4f6;
}

.help-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.validation-message {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 4px;
}

/* Hide validation summary when there are no errors */
.validation-summary-valid {
    display: none !important;
}

/* Validation summary styling */
.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.validation-summary-errors li {
    font-size: 0.875rem;
}

/* =============================================================================
   Application Index Additional Styles
   ============================================================================= */

.employee-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.credential-info {
    max-width: 300px;
}

.credential-title {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.9rem;
}

.credential-code {
    font-size: 0.75rem;
    color: #94a3b8;
}

.action-btns {
    display: flex;
    gap: 0.25rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.action-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.action-btn.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-new-app {
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-new-app:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.date-cell {
    font-size: 0.85rem;
    color: #64748b;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* =============================================================================
   Unified List Page Styles
   ============================================================================= */

/* List Page Header */
.list-header {
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.list-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.list-header p {
    font-size: 0.875rem;
    opacity: 0.85;
    margin: 0.25rem 0 0 0;
}

.list-header .btn-add {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s;
    text-decoration: none;
}

.list-header .btn-add:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* List Filter Card */
.list-filter-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.list-filter-card .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.375rem;
}

.list-filter-card .form-control,
.list-filter-card .form-select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.list-filter-card .form-control:focus,
.list-filter-card .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.list-filter-card .input-group-text {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-right: none;
    color: #94a3b8;
    font-size: 0.875rem;
}

.list-filter-card .input-group .form-control {
    border-left: none;
}

/* List Results Card */
.list-results-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.list-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.list-results-header .results-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-results-header .results-count {
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Unified Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s;
}

.data-table th.sortable:hover {
    background: #f1f5f9;
}

.data-table th .sort-icon {
    margin-left: 0.375rem;
    font-size: 0.7rem;
    opacity: 0.5;
}

.data-table th.sorted .sort-icon {
    opacity: 1;
    color: #667eea;
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #1e293b;
}

.data-table tbody tr {
    transition: background-color 0.15s;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Employee/Person Cell */
.person-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.person-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 50%, #1e3c72 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.tcc-number-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a5276;
    background: #eaf2f8;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #aed6f1;
    letter-spacing: 0.5px;
}

.tcc-number-link:hover {
    background: #d4e6f1;
    color: #0e3a5c;
}

.person-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.person-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-name:hover {
    color: #667eea;
}

.person-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Status Badge Unified */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.status-active,
.status-badge.status-valid,
.status-badge.status-issued {
    background: #d1fae5;
    color: #059669;
}

.status-badge.status-pending,
.status-badge.status-held,
.status-badge.status-payrollhold {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.status-suspended,
.status-badge.status-deactivated {
    background: #fee2e2;
    color: #dc2626;
}

/* =============================================================================
   SSN Toggle Component
   ============================================================================= */

.ssn-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ssn-display {
    font-family: var(--bs-font-monospace);
    background: transparent;
    padding: 0;
}

.btn-ssn-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s ease;
    font-size: 0.75rem;
}

.btn-ssn-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #495057;
}

.btn-ssn-toggle:active {
    background: rgba(0, 0, 0, 0.1);
}

.btn-ssn-toggle.showing {
    color: #0d6efd;
}

/* SSN toggle in light backgrounds (headers) */
.details-header .btn-ssn-toggle,
.form-header .btn-ssn-toggle,
.list-header .btn-ssn-toggle {
    color: rgba(255, 255, 255, 0.7);
}

.details-header .btn-ssn-toggle:hover,
.form-header .btn-ssn-toggle:hover,
.list-header .btn-ssn-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.details-header .btn-ssn-toggle.showing,
.form-header .btn-ssn-toggle.showing,
.list-header .btn-ssn-toggle.showing {
    color: #ffc107;
}

/* SSN display text in headers - make orangeish for visibility */
.details-header .ssn-display,
.form-header .ssn-display {
    color: #DDa448;
}

/* SSN in table cells - smaller size */
.person-meta .btn-ssn-toggle {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
}


.status-badge.status-revoked {
    background: #1f2937;
    color: #f9fafb;
}

.status-badge.status-online {
    background: #dbeafe;
    color: #2563eb;
}

.status-badge.status-reinstated {
    background: #e0e7ff;
    color: #4f46e5;
}

/* Type Badge */
.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.type-badge.type-tcc {
    background: #fef3c7;
    color: #b45309;
}

.type-badge.type-tcc-expired {
    background: #fee2e2;
    color: #dc2626;
}

.type-badge.type-application {
    background: #dbeafe;
    color: #1d4ed8;
}

.type-badge.type-credential {
    background: #d1fae5;
    color: #047857;
}

.status-expired {
    background: #fee2e2;
    color: #dc2626;
}

/* Code/Document Cell */
.code-cell {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    color: #475569;
    background: #f8fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Date Cell */
.date-cell {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
}

.date-cell.date-warning {
    color: #d97706;
}

.date-cell.date-danger {
    color: #dc2626;
    font-weight: 500;
}

/* Action Buttons */
.action-cell {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}

.action-cell .btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.action-cell .btn-action:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.action-cell .btn-action.btn-view:hover {
    background: #e0e7ff;
    color: #4f46e5;
}

.action-cell .btn-action.btn-edit:hover {
    background: #fef3c7;
    color: #d97706;
}

.action-cell .btn-action.btn-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Pagination */
.list-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 1rem;
}

.list-pagination .pagination-info {
    font-size: 0.8rem;
    color: #64748b;
}

.list-pagination .pagination {
    margin: 0;
    gap: 0.25rem;
}

.list-pagination .page-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #475569;
    background: white;
    transition: all 0.15s;
}

.list-pagination .page-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.list-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
    border-color: transparent;
    color: white;
}

.list-pagination .page-item.disabled .page-link {
    background: #f8fafc;
    color: #cbd5e1;
    pointer-events: none;
}

/* Empty State */
.list-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.list-empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.list-empty-state h5 {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.list-empty-state p {
    font-size: 0.875rem;
}

/* Mobile Cards for List Views */
.mobile-list-cards {
    display: none;
}

@media (max-width: 991.98px) {
    .desktop-data-table {
        display: none !important;
    }

    .mobile-list-cards {
        display: block;
    }

    .mobile-card {
        border-bottom: 1px solid #f1f5f9;
        padding: 1rem;
    }

    .mobile-card:last-child {
        border-bottom: none;
    }

    .mobile-card .card-header-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
    }

    .mobile-card .card-body-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .mobile-card .card-label {
        color: #94a3b8;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .mobile-card .card-value {
        color: #1e293b;
    }
}

/* =============================================================================
   District Management Styles
   ============================================================================= */

.district-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: white;
}

.district-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.district-card .card-body {
    padding: 1.25rem;
}

.district-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.district-tabs {
    background: #f8fafc;
    border-radius: 8px;
    padding: 4px;
}

.district-tabs .nav-link {
    border-radius: 6px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.15s;
}

.district-tabs .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.district-tabs .nav-link.active {
    background: #667eea;
    color: white;
}

.tab-panel {
    padding: 1rem;
    background: #fafbfc;
    border-radius: 8px;
    margin-top: 1rem;
}

.sites-content .card {
    border: 1px solid #e2e8f0;
    transition: all 0.15s;
}

.sites-content .card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/* =============================================================================
   Reports Section Styles
   ============================================================================= */

/* Legacy report-section styles (kept for compatibility) */
.report-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.report-section-header {
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.report-section-header-primary {
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
}

.report-section-body {
    padding: 1rem 1.25rem;
}

.report-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.5rem;
    color: #1e293b;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.report-link:hover {
    background: #f1f5f9;
    color: #667eea;
}

.report-link.disabled {
    color: #94a3b8;
    pointer-events: none;
}

.report-link.disabled:hover {
    background: transparent;
}

.report-link i.bi-square-fill {
    font-size: 0.5rem;
}

/* Report Block Styles (new card-based layout) */
.report-block {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.report-block-header {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.report-block.report-block-primary .report-block-header {
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
}

.report-block-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.report-block-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1e293b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.report-block-link:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
    color: #1e3c72;
    border-color: #c7d2fe;
}

.report-block-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: #1e3c72;
}

.report-block-link.disabled {
    color: #94a3b8;
    pointer-events: none;
    opacity: 0.6;
}

.report-block-link.disabled i {
    color: #94a3b8;
}

.report-block-link.disabled:hover {
    background: transparent;
    border-color: transparent;
}

/* Report Export Buttons */
.report-export-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.report-export-group .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Report Table (Excel-like) Styles */
.report-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.report-table th {
    background: #f1f5f9;
    padding: 0.625rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.report-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1e293b;
}

.report-table tbody tr:hover {
    background-color: #f8fafc;
}

.report-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.report-table tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

/* Report grouped rows (Payroll Hold Audit, etc.) */
.report-table .report-group-header td {
    background: linear-gradient(135deg, #366ac5 0%, #4a6595 70%, #1e3c72 100%);
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    border-color: #1e3c72;
}

.report-table .report-group-footer td {
    background-color: #f1f5f9;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-top: 2px solid #cbd5e1;
}

/* Teacher-first-row separator in grouped report tables (Payroll Hold, etc.) */
.report-table .teacher-first-row td {
    border-top: 2px solid #cbd5e1;
}

/* Alternating teacher group background for multi-row teacher blocks */
.report-table tbody tr.teacher-group-alt {
    background-color: #f1f5f9;
}

.report-table tbody tr.teacher-group-alt:hover {
    background-color: #e8eef5;
}

/* Cell wrapping for long badge content */
.report-table td.cell-wrap {
    white-space: normal;
    word-break: break-word;
}

.badge-wrap {
    white-space: normal;
    word-break: break-word;
    text-align: left;
}

.report-table td.align-top {
    vertical-align: top;
    padding-top: 0.625rem;
}

.table-group-separator {
    width: 4px;
    min-width: 4px;
    max-width: 4px;
    background-color: #334155;
    padding: 0 !important;
    border: none !important;
}

.table-group-header {
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ===== Resource Documents & Forms ===== */
/* ===== Resource Documents: Full-page card layout (Resources.cshtml) ===== */
.resource-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.resource-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
}

.resource-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.resource-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.resource-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.25rem;
}

.resource-card:hover .resource-title {
    color: #3b82f6;
}

.resource-description {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.resource-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1px 6px;
}

.resource-arrow {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    transition: transform 0.2s ease;
}

.resource-card:hover .resource-arrow {
    color: #3b82f6;
    transform: translateX(3px);
}

/* ===== Resource Documents: Compact dashboard list ===== */
.resource-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.resource-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.resource-list-item:nth-child(even) {
    border-right: none;
}

.resource-list-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.resource-list-item:hover {
    background: #f8fafc;
}

.resource-list-icon {
    color: #3b82f6;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.resource-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-list-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e3a5f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-list-item:hover .resource-list-name {
    color: #3b82f6;
}

.resource-list-action {
    color: #94a3b8;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.resource-list-item:hover .resource-list-action {
    color: #3b82f6;
}

@media (max-width: 767.98px) {
    .resource-list {
        grid-template-columns: 1fr;
    }
    .resource-list-item {
        border-right: none;
    }
    .resource-list-item:last-child {
        border-bottom: none;
    }
}

/* =============================================================================
   Utility Classes (replacing inline styles)
   ============================================================================= */

/* Icon sizes for empty-state placeholders and section headers */
.icon-size-lg {
    font-size: 1.5rem;
}

.icon-size-xl {
    font-size: 3rem;
}

.icon-size-2xl {
    font-size: 4rem;
}

.icon-size-3xl {
    font-size: 5rem;
}

/* Truncate text in table cells / small containers */
.text-truncate-cell {
    max-width: 200px;
}

/* Scrollable report table body */
.report-table-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

/* Fixed-layout table */
.table-fixed {
    table-layout: fixed;
}

/* Column width helpers for tables */
.col-w-120 {
    width: 120px;
}

.col-w-150 {
    width: 150px;
}

/* Small search input in toolbars */
.search-input-sm {
    width: 200px;
}

/* District filter dropdown */
.filter-select-sm {
    min-width: 200px;
}

/* District name label in layout navbar */
.navbar-district-name {
    font-size: 0.7rem;
}

/* Expiration page: active filter card border overrides */
.filter-card-active-danger {
    border: 3px solid #dc3545 !important;
}

.filter-card-active-primary {
    border: 3px solid #0d6efd !important;
}

.filter-card-active-warning {
    border: 3px solid #ffc107 !important;
}

.filter-card-active-success {
    border: 3px solid #198754 !important;
}

/* Expiration page: pagination wrapper */
.report-pagination-footer {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* =============================================================================
   Help Bot Widget
   ============================================================================= */

.helpbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1e3c72;
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(30, 60, 114, 0.4);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.helpbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(30, 60, 114, 0.5);
}

.helpbot-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    width: 380px;
    max-height: 520px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.helpbot-panel.open {
    display: flex;
}

.helpbot-header {
    background: #1e3c72;
    color: white;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.helpbot-header-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.8;
    padding: 0;
    line-height: 1;
}

.helpbot-header-close:hover {
    opacity: 1;
}

.helpbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 280px;
    max-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.helpbot-msg {
    display: flex;
}

.helpbot-msg-user {
    justify-content: flex-end;
}

.helpbot-msg-bot {
    justify-content: flex-start;
}

.helpbot-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.helpbot-bubble-user {
    background: #1e3c72;
    color: white;
    border-bottom-right-radius: 4px;
}

.helpbot-bubble-bot {
    background: #f0f2f5;
    color: #333;
    border-bottom-left-radius: 4px;
}

.helpbot-bubble-bot code {
    background: rgba(0, 0, 0, 0.07);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.82rem;
}

.helpbot-input-area {
    display: flex;
    padding: 10px 12px;
    border-top: 1px solid #e9ecef;
    gap: 8px;
}

.helpbot-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.875rem;
    outline: none;
}

.helpbot-input:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 2px rgba(30, 60, 114, 0.15);
}

.helpbot-send {
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.helpbot-send:hover {
    background: #2a5298;
}

@media (max-width: 480px) {
    .helpbot-panel {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 16px;
        max-height: 70vh;
    }
}

/* =============================================================================
   Layout - Sidebar & Main Content
   ============================================================================= */

:root {
    --sidebar-width: 270px;
    --primary-color: #1e3c72;
}

body {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.5rem 1rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand:hover {
    color: white;
}

.sidebar-brand i {
    font-size: 2rem;
    margin-right: 0.75rem;
}

.sidebar-brand span {
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav .nav-link i {
    width: 24px;
    margin-right: 0.75rem;
}

.sidebar-nav .nav-section {
    color: #ffc107;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.25rem 1.25rem 0.5rem;
    margin-top: 0.5rem;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav .nav-section i {
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: #f8f9fa;
}

.top-navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.5rem;
}

.content-wrapper {
    padding: 1.5rem;
}

/* =============================================================================
   Layout - User Dropdown & Avatar
   ============================================================================= */

.user-dropdown .dropdown-toggle::after {
    display: none;
}

.user-dropdown .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.role-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.role-admin, .role-countyadmin {
    background-color: #dc3545;
    color: white;
}

.role-staff, .role-credentialstaff {
    background-color: #0d6efd;
    color: white;
}

.role-district, .role-districtuser {
    background-color: #198754;
    color: white;
}

.role-teacher {
    background-color: #6f42c1;
    color: white;
}

.role-readonly {
    background-color: #6c757d;
    color: white;
}

/* =============================================================================
   Layout - County Badge & Selector
   ============================================================================= */

.county-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    margin: 0 1rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
}

.county-badge .county-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.county-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 0.5rem;
}

.county-selector:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.county-selector option {
    color: #333;
}





