/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

/* Custom Scrollbar */
/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f0f7ff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c62828 0%, #a52020 100%);
    border-radius: 10px;
    border: 2px solid #f0f7ff;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e74c3c 0%, #c62828 100%);
    border: 2px solid #e8f0ff;
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #a52020 0%, #8b1a1a 100%);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #c62828 #f0f7ff;
}

a { color: #d32f2f; text-decoration: none; }
a:hover { color: #b71c1c; text-decoration: underline; }

/* Shared container */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    letter-spacing: 0.3px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #e3f2fd; color: #1565c0; border-color: #bbdefb; }
.btn-primary:hover { background: #1565c0; color: #fff; border-color: #1565c0; }
.btn-success { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.btn-success:hover { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.btn-danger { background: #fce4ec; color: #c62828; border-color: #f8bbd0; }
.btn-danger:hover { background: #c62828; color: #fff; border-color: #c62828; }
.btn-warning { background: #fff3e0; color: #e65100; border-color: #ffe0b2; }
.btn-warning:hover { background: #e65100; color: #fff; border-color: #e65100; }
.btn-secondary { background: #f5f5f5; color: #455a64; border-color: #e0e0e0; }
.btn-secondary:hover { background: #455a64; color: #fff; border-color: #455a64; }
.btn-info { background: #e0f7fa; color: #00838f; border-color: #b2ebf2; }
.btn-info:hover { background: #00838f; color: #fff; border-color: #00838f; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { display: block; width: 100%; }

/* Header-style red CTA (matches ADMISSION OPEN button) */
.btn-admission-style,
.admin-layout .btn-admission-style {
    background: #cf2e2e;
    color: #fff;
    border-color: #cf2e2e;
    box-shadow: none;
}
.btn-admission-style:hover,
.btn-admission-style:focus,
.btn-admission-style:active,
.admin-layout .btn-admission-style:hover,
.admin-layout .btn-admission-style:focus,
.admin-layout .btn-admission-style:active {
    background: #b62525;
    color: #fff;
    border-color: #b62525;
    box-shadow: none;
}

/* === Badges === */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #ef6c00; }
.badge-danger { background: #ffebee; color: #c62828; }
.badge-primary { background: #e6ecf3; color: #0a285a; }
.badge-secondary { background: #eceff1; color: #546e7a; }
.badge-info { background: #e3f2fd; color: #1565c0; }

/* === Alerts === */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }
.alert-danger { background: #ffebee; color: #c62828; border-left: 4px solid #c62828; }
.alert-warning { background: #fff3e0; color: #ef6c00; border-left: 4px solid #ef6c00; }

/* === Public Pages === */
.public-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0a285a 0%, #0d3268 100%);
}

.form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 32px;
    width: 100%;
    max-width: 700px;
}

.setup-card { max-width: 450px; }

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    width: 100%;
    padding-right: 42px;
}
.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #90a4ae;
    padding: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}
.password-toggle:hover { color: #455a64; }

.form-header {
    text-align: center;
    margin-bottom: 28px;
}
.form-header h1 { font-size: 22px; color: #0a285a; margin-bottom: 4px; }
.form-header h2 { font-size: 16px; color: #546e7a; font-weight: 400; margin-bottom: 4px; }
.form-header p { color: #90a4ae; font-size: 13px; }
.form-logo { max-width: 260px; height: auto; }

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

#visitorForm .btn-primary {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}
#visitorForm .btn-primary:hover,
#visitorForm .btn-primary:focus {
    background: #b71c1c;
    color: #fff;
    border-color: #b71c1c;
}

.setup-card .btn-primary {
    background: #b42318;
    color: #fff;
    border-color: #b42318;
}
.setup-card .btn-primary:hover,
.setup-card .btn-primary:focus {
    background: #912018;
    color: #fff;
    border-color: #912018;
}

.visitor-form-wrapper {
    background: #032e3f;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 980px;
}

.visitor-form-wrapper .form-heading {
    font-size: 32px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
}

.visitor-form-wrapper .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visitor-form-wrapper .form fieldset {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.visitor-form-wrapper .form fieldset legend {
    color: #fff;
    font-size: 16px;
}

.visitor-form-wrapper .form-group label {
    color: #e5edf2;
}

.visitor-form-wrapper .form-group label small {
    color: #cfd8dc;
}

.visitor-form-wrapper .contact-form .form-control {
    padding: 18px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #333;
    outline: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: Arial, sans-serif;
}

.visitor-form-wrapper .contact-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

.visitor-form-wrapper .contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.visitor-form-wrapper .submit-btn {
    background: #d32f2f;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(207, 46, 46, 0.3);
}

.visitor-form-wrapper .submit-btn:hover {
    background: #b62525;
    transform: none;
    box-shadow: 0 4px 15px rgba(207, 46, 46, 0.3);
}

.visitor-form-wrapper .submit-btn i {
    font-size: 18px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.visitor-form-wrapper .submit-btn:hover i {
    transform: translateX(5px);
}

.visitor-form-wrapper .alert-danger {
    background: #ffd9d9;
    color: #7f1d1d;
    border-left: 4px solid #d32f2f;
}

/* === Forms === */
.form fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.form fieldset legend {
    font-weight: 600;
    color: #0a285a;
    padding: 0 8px;
    font-size: 15px;
}
.form-group {
    margin-bottom: 16px;
    flex: 1;
}
.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #455a64;
    font-size: 13px;
}
.form-group label small { color: #90a4ae; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    max-width: 100%;
    min-height: 110px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0a285a;
    box-shadow: 0 0 0 2px rgba(10, 40, 90, 0.1);
}
.form-row {
    display: flex;
    gap: 16px;
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    color: #263238;
}
.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* === Thank You === */
.thankyou-card { text-align: center; max-width: 500px; }
.thankyou-icon {
    width: 64px; height: 64px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
}
.thankyou-card h1 { color: #2e7d32; margin-bottom: 8px; }
.thankyou-card .thankyou-message {
    color: #fff;
    font-weight: 600;
}
.thankyou-info {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}
.thankyou-swo {
    background: #e8f0fe;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 0 0 20px;
    text-align: left;
}
.thankyou-swo p { margin: 0 0 10px; color: #1a237e; font-size: 14px; }
.thankyou-swo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 6px;
}
.thankyou-swo-name { font-weight: 600; color: #263238; font-size: 14px; }
.thankyou-swo-mobile {
    font-size: 14px;
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}
.thankyou-swo-mobile:hover { text-decoration: underline; }

.cooldown-swo {
    margin-top: 10px;
    font-size: 13px;
    color: #5d4037;
}
.cooldown-swo-entry {
    margin-top: 5px;
    font-size: 14px;
}
.cooldown-swo-entry a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}
.cooldown-swo-entry a:hover { text-decoration: underline; }

/* === Admin Layout === */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Admin button palette aligned to dashboard theme */
.admin-layout .btn,
.modal-body .btn {
    background: #0a285a;
    color: #fff;
    border-color: #0a285a;
}
.admin-layout .btn:hover,
.admin-layout .btn:focus,
.modal-body .btn:hover,
.modal-body .btn:focus {
    background: #081f45;
    color: #fff;
    border-color: #081f45;
}

.admin-layout .btn.btn-success,
.modal-body .btn.btn-success {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
}
.admin-layout .btn.btn-success:hover,
.admin-layout .btn.btn-success:focus,
.modal-body .btn.btn-success:hover,
.modal-body .btn.btn-success:focus {
    background: #0c5f59;
    color: #fff;
    border-color: #0c5f59;
}

.admin-layout .btn.btn-danger,
.modal-body .btn.btn-danger {
    background: #b42318;
    color: #fff;
    border-color: #b42318;
}
.admin-layout .btn.btn-danger:hover,
.admin-layout .btn.btn-danger:focus,
.modal-body .btn.btn-danger:hover,
.modal-body .btn.btn-danger:focus {
    background: #912018;
    color: #fff;
    border-color: #912018;
}

.admin-layout .btn.btn-warning,
.modal-body .btn.btn-warning {
    background: #b54708;
    color: #fff;
    border-color: #b54708;
}
.admin-layout .btn.btn-warning:hover,
.admin-layout .btn.btn-warning:focus,
.modal-body .btn.btn-warning:hover,
.modal-body .btn.btn-warning:focus {
    background: #93370a;
    color: #fff;
    border-color: #93370a;
}

.admin-layout .btn.btn-secondary,
.modal-body .btn.btn-secondary {
    background: #475467;
    color: #fff;
    border-color: #475467;
}
.admin-layout .btn.btn-secondary:hover,
.admin-layout .btn.btn-secondary:focus,
.modal-body .btn.btn-secondary:hover,
.modal-body .btn.btn-secondary:focus {
    background: #344054;
    color: #fff;
    border-color: #344054;
}

.admin-layout .btn.btn-info,
.modal-body .btn.btn-info {
    background: #155eef;
    color: #fff;
    border-color: #155eef;
}
.admin-layout .btn.btn-info:hover,
.admin-layout .btn.btn-info:focus,
.modal-body .btn.btn-info:hover,
.modal-body .btn.btn-info:focus {
    background: #004eeb;
    color: #fff;
    border-color: #004eeb;
}

.admin-layout .btn.btn-primary,
.modal-body .btn.btn-primary {
    background: #0a285a;
    color: #fff;
    border-color: #0a285a;
}
.admin-layout .btn.btn-primary:hover,
.admin-layout .btn.btn-primary:focus,
.modal-body .btn.btn-primary:hover,
.modal-body .btn.btn-primary:focus {
    background: #081f45;
    color: #fff;
    border-color: #081f45;
}

/* Keep selected CTAs red inside admin layout */
.admin-layout .btn.btn-admission-style,
.admin-layout .btn-primary.btn-admission-style {
    background: #cf2e2e;
    color: #fff;
    border-color: #cf2e2e;
    box-shadow: none;
}
.admin-layout .btn.btn-admission-style:hover,
.admin-layout .btn.btn-admission-style:focus,
.admin-layout .btn.btn-admission-style:active,
.admin-layout .btn-primary.btn-admission-style:hover,
.admin-layout .btn-primary.btn-admission-style:focus,
.admin-layout .btn-primary.btn-admission-style:active {
    background: #b62525;
    color: #fff;
    border-color: #b62525;
    box-shadow: none;
}

.sidebar {
    width: 240px;
    background: #0a285a;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 20px 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-logo {
    max-width: 200px;
    height: auto;
}

.nav-menu {
    list-style: none;
    flex: 1;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-menu .nav-heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    padding: 10px 16px 4px;
    margin-top: 6px;
}
.nav-menu .nav-heading:first-child {
    margin-top: 0;
}
.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.nav-menu li a svg { flex-shrink: 0; opacity: 0.7; }
.nav-menu li a:hover svg,
.nav-menu li a.active svg { opacity: 1; }
.nav-menu li a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}
.nav-menu li a.active {
    background: rgba(211,47,47,0.15);
    color: #fff;
    border-left: 3px solid #d32f2f;
    text-decoration: none;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-info strong { display: block; font-size: 13px; }
.admin-info small { color: rgba(255,255,255,0.6); }
.logout-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.logout-btn:hover {
    background: rgba(211,47,47,0.2);
    color: #d32f2f;
}

.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 24px 32px;
}

.content-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}
.content-header h1 {
    font-size: 22px;
    color: #263238;
}

/* === Stats Grid === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    --stat-accent: #607d8b;
    background: var(--stat-accent);
    border-radius: 6px;
    padding: 16px 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    transition: none;
    min-height: 94px;
}
.stat-card:hover {
    transform: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}
.stat-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}
.stat-head {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    margin-bottom: 0;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.stat-icon svg {
    width: 26px;
    height: 26px;
}
.stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    letter-spacing: 0.2px;
    margin-top: 4px;
}
.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 8px;
    font-weight: 600;
}
.stat-card.stat-total {
    --stat-accent: #b91c3f;
}
.stat-card.stat-warning {
    --stat-accent: #b97910;
}
.stat-card.stat-success {
    --stat-accent: #1f6f95;
}
.stat-card.stat-danger {
    --stat-accent: #5145bf;
}
.stat-card.stat-info {
    --stat-accent: #047463;
}
.stat-card.stat-primary {
    --stat-accent: #1d5fbf;
}

/* === Tables === */
.table-responsive { overflow-x: auto; border-radius: 10px; }
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf0;
}
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
    vertical-align: middle;
}
.table th {
    background: #032e3f;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 14px 16px;
}
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: #f8f9fb; }
.table tbody tr:last-child td { border-bottom: none; }
.actions { white-space: nowrap; }
.actions .btn { margin-right: 4px; margin-bottom: 2px; }
.actions .btn.btn-sm {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === Filters === */
.filters {
    margin-bottom: 20px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-input {
    height: 38px;
    padding: 8px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 14px;
    min-width: 250px;
}
.filter-select {
    height: 38px;
    padding: 8px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}
.filter-form .btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.filter-add-btn {
    margin-left: auto;
}
.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: #0a285a;
}
/* === Detail Bar === */
.detail-bar {
    display: flex;
    gap: 24px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
}

/* === Page Actions === */
.page-actions {
    margin-bottom: 20px;
}

/* === Reception === */
/* === Reception === */
.reception-search {
    margin-bottom: 28px;
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.search-form { display: flex; gap: 10px; }
.search-group {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 550px;
}
.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: #0a285a;
    box-shadow: 0 0 0 3px rgba(10,40,90,0.08);
}

.visitor-detail-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #032e3f;
    color: #fff;
}
.detail-header h2 { font-size: 18px; color: #fff; font-weight: 600; }
.detail-status { display: flex; gap: 8px; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
}
.detail-section {
    padding: 20px 24px;
    border-right: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5;
}
.detail-section h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #032e3f;
    margin-bottom: 14px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ecf0;
}
.detail-table { width: 100%; }
.detail-table th, .detail-table td {
    padding: 6px 0;
    font-size: 13px;
    border: none;
}
.detail-table th {
    font-weight: 500;
    color: #78909c;
    width: 120px;
    background: none;
    text-transform: none;
    letter-spacing: 0;
}
.detail-table td {
    color: #263238;
    font-weight: 500;
}

.reception-actions {
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f8f9fb;
    border-top: 1px solid #e8ecf0;
}

/* === Visitor Pass Preview === */
.pass-preview { margin-bottom: 20px; }
.pass-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #0a285a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.pass-header {
    background: #0a285a;
    color: #fff;
    text-align: center;
    padding: 16px;
}
.pass-header h2 { font-size: 18px; margin-bottom: 2px; }
.pass-header h3 { font-size: 14px; font-weight: 400; opacity: 0.85; }

.pass-id-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #e6ecf3;
}
.pass-id-label { font-size: 12px; color: #3a6a9e; font-weight: 600; }
.pass-id-value { font-size: 22px; font-weight: 700; color: #0a285a; }
.pass-status {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}
.pass-status-valid { background: #e8f5e9; color: #2e7d32; }
.pass-status-checkedin { background: #e3f2fd; color: #1565c0; }
.pass-status-checkedout { background: #eceff1; color: #546e7a; }

.pass-body { padding: 16px 20px; }
.pass-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.pass-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.pass-section:last-child { border-bottom: none; margin-bottom: 0; }
.pass-section-full { border-bottom: 1px solid #f0f0f0; }
.pass-purpose { font-size: 13px; color: #263238; font-weight: 600; }
.pass-college { font-size: 13px; font-weight: 700; color: #0a285a; text-align: center; margin-top: 6px; letter-spacing: 0.5px; }
.pass-auth-section { text-align: left; }
.pass-note {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 6px;
    padding: 10px 16px;
    margin-top: 12px;
    text-align: center;
}
.pass-note p {
    font-size: 12px;
    font-weight: 700;
    color: #b40000;
    letter-spacing: 0.5px;
    margin: 0;
}
.pass-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: #0a285a;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.pass-row {
    display: flex;
    font-size: 13px;
    padding: 2px 0;
}
.pass-row span { color: #78909c; width: 120px; flex-shrink: 0; }
.pass-row strong { color: #263238; }

.pass-footer {
    background: #f5f5f5;
    padding: 10px 20px;
    text-align: center;
    font-size: 11px;
    color: #90a4ae;
}

.pass-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* === Utility === */
.text-muted { color: #90a4ae; }
.text-center { text-align: center; }

/* === Mobile Top Bar, Menu Button & Overlay === */
.mobile-topbar {
    display: none;
}
.mobile-menu-btn {
    background: #0a285a;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}
.mobile-menu-btn:active { transform: scale(0.95); }
.mobile-topbar-title {
    font-size: 17px;
    font-weight: 600;
    color: #263238;
}
.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    flex-shrink: 0;
}
.sidebar-close:hover { color: #fff; }
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

/* === Modal === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-container {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: none;
    position: sticky;
    top: 0;
    background: #032e3f;
    border-radius: 12px 12px 0 0;
    z-index: 1;
}
.modal-header h2 {
    font-size: 18px;
    color: #fff;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.15); }
.modal-body {
    padding: 24px;
}
.modal-body .form-actions { justify-content: flex-start; }
.modal-body .pass-actions { margin-top: 16px; }

/* === Responsive — Tablet (max 992px) === */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
    .main-content {
        margin-left: 220px;
        padding: 20px 24px;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pass-card {
        max-width: 100%;
    }
}

/* === Responsive — Mobile (max 768px) === */
@media (max-width: 768px) {
    /* Mobile top bar with hamburger + title */
    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 120;
        background: #fff;
        padding: 10px 14px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        border-bottom: 1px solid #e0e0e0;
    }
    .sidebar-close { display: block; }

    /* Hide desktop page title (shown in topbar instead) */
    .content-header { display: none; }

    /* Sidebar: slide-in drawer */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 260px;
        z-index: 150;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar.open ~ .sidebar-overlay {
        display: block;
    }

    /* Main content full width */
    .main-content {
        margin-left: 0;
        padding: 68px 14px 20px;
    }

    /* Forms stack vertically */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
    }

    /* Public form card */
    .public-container {
        padding: 12px;
        align-items: flex-start;
    }
    .public-container:has(.setup-card) {
        align-items: center;
    }
    .form-card {
        padding: 20px 16px;
        border-radius: 10px;
    }
    .form fieldset {
        padding: 14px 12px;
    }
    .visitor-form-wrapper {
        padding: 40px 30px;
        border-radius: 16px;
    }
    .visitor-form-wrapper .form-heading {
        font-size: 28px;
    }
    .form-header h1 { font-size: 19px; }
    .form-header h2 { font-size: 14px; }

    /* Stats grid 2-col */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card { padding: 14px; }
    .stat-number { font-size: 22px; }
    .stat-icon {
        width: 42px;
        height: 42px;
        border-radius: 9px;
    }
    .stat-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Modal full-screen on mobile */
    .modal-overlay { padding: 0; }
    .modal-container {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }
    .modal-header { border-radius: 0; }
    .modal-body { padding: 16px; }
    .modal-body .form-row { flex-direction: column; gap: 0; }

    /* Tables → card layout */
    .table-responsive { overflow-x: visible; }
    .table { box-shadow: none; background: transparent; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }
    .table tr {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.07);
        margin-bottom: 12px;
        padding: 14px;
    }
    .table td {
        padding: 4px 0;
        border-bottom: none;
        font-size: 13px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #455a64;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-right: 12px;
        flex-shrink: 0;
    }
    .table td.actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 10px;
        margin-top: 6px;
        border-top: 1px solid #f0f0f0;
        white-space: normal;
    }
    .table td.actions::before { display: none; }

    /* Filters */
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-input { min-width: auto; width: 100%; }
    .filter-select { width: 100%; }
    .filter-form .btn { width: 100%; }

    /* Detail bar */
    .detail-bar {
        flex-direction: column;
        gap: 8px;
    }

    /* Reception */
    .search-group {
        max-width: 100%;
        flex-direction: column;
    }
    .search-input { font-size: 14px; }
    .search-group .btn { width: 100%; }

    /* Visitor detail card */
    .detail-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 14px 16px;
    }
    .detail-header h2 { font-size: 16px; }
    .detail-status { flex-wrap: wrap; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-section {
        padding: 14px 16px;
        border-right: none;
    }
    .detail-table th { width: 100px; }

    .reception-actions {
        flex-direction: column;
        padding: 14px 16px;
    }
    .reception-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Visitor pass */
    .pass-id-display {
        flex-wrap: wrap;
        padding: 10px 14px;
        gap: 6px;
    }
    .pass-id-value { font-size: 18px; }
    .pass-status { margin-left: 0; }
    .pass-columns { grid-template-columns: 1fr; }
    .pass-body { padding: 12px 14px; }
    .pass-row span { width: 100px; font-size: 12px; }
    .pass-row strong { font-size: 12px; word-break: break-word; }

    .pass-actions {
        flex-direction: column;
        padding: 0 16px;
    }
    .pass-actions .btn { width: 100%; }

    /* Button sizing */
    .btn-lg { padding: 10px 20px; font-size: 14px; }

    /* Thank you page */
    .thankyou-info { padding: 14px; }
}

/* === Responsive — Small phones (max 400px) === */
@media (max-width: 400px) {
    .public-container { padding: 8px; }
    .form-card { padding: 16px 12px; }
    .form fieldset { padding: 12px 10px; }
    .visitor-form-wrapper {
        padding: 26px 14px;
    }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-number { font-size: 22px; }
    .stat-label { font-size: 10px; }
    .stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .main-content { padding: 62px 10px 10px; }
    .mobile-topbar { padding: 8px 10px; }
    .mobile-topbar-title { font-size: 15px; }

    .thankyou-card { padding: 20px 14px; }

    .pass-header h2 { font-size: 15px; }
    .pass-header h3 { font-size: 12px; }
    .pass-row { flex-direction: column; gap: 2px; }
    .pass-row span { width: auto; }

    /* Simple-DataTables mobile: hide its sorting arrows in card layout */
    .dataTable-sorter::before,
    .dataTable-sorter::after { display: none !important; }
}

/* === Pagination === */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-top: 12px;
}
.pagination-info {
    font-size: 13px;
    color: #666;
}
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #455a64;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.pagination-btn:hover {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
    text-decoration: none;
}
.pagination-btn.active {
    background: #032e3f;
    color: #fff;
    border-color: #032e3f;
    cursor: default;
}
.pagination-btn.disabled {
    color: #bdbdbd;
    cursor: default;
    pointer-events: none;
}
.pagination-ellipsis {
    padding: 0 4px;
    color: #90a4ae;
    font-size: 14px;
}

@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .pagination {
        justify-content: center;
    }
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* === Float Animation === */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* === FAQ Section === */
.faq-section {
    padding: 80px 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.faq-section .floating-image-top-right {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 200px;
    height: auto;
    animation: float 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    z-index: 5;
}

.faq-section .floating-image-bottom-left {
    position: absolute;
    bottom: 50px;
    left: 50px;
    width: 200px;
    height: auto;
    animation: float 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    z-index: 5;
}

.faq-section .floating-image img {
    width: 100%;
    height: auto;
    display: block;
}

.faq-section .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
}

.faq-section .faq-content {
    flex: 1;
}

.faq-section .faq-heading {
    font-size: 42px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.faq-section .faq-subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
}

.faq-section .accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-section .accordion-item {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-section .accordion-item.active {
    border-color: #d32f2f;
}

.faq-section .accordion-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
}

.faq-section .accordion-item.active .accordion-header {
    background: #fff5f5;
}

.faq-section .accordion-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.faq-section .question-number {
    font-weight: 700;
    color: #e74c3c;
}

.faq-section .accordion-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.faq-section .accordion-item.active .accordion-icon {
    background: #d32f2f;
    color: white;
    transform: rotate(180deg) scale(1.1);
}

.faq-section .accordion-icon i {
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
}

.faq-section .accordion-item.active .accordion-icon i {
    color: white;
}

.faq-section .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-section .accordion-body {
    padding: 0 30px 25px 30px;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.faq-section .contact-form-wrapper {
    background: #032e3f;
    border-radius: 20px;
    padding: 50px 40px;
    position: sticky;
    top: 20px;
}

.faq-section .form-heading {
    font-size: 32px;
    color: white;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
}

.faq-section .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-section .contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.faq-section .contact-form .form-control {
    padding: 18px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    background: white;
    color: #333;
    outline: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Arial', sans-serif;
}

.faq-section .contact-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

.faq-section .contact-form .form-control::placeholder {
    color: #999;
}

.faq-section .contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.faq-section .submit-btn {
    background: #d32f2f;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(207, 46, 46, 0.3);
}

.faq-section .submit-btn:hover {
    background: #b62525;
    transform: none;
    box-shadow: 0 4px 15px rgba(207, 46, 46, 0.3);
}

.faq-section .submit-btn i {
    font-size: 18px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-section .submit-btn:hover i {
    transform: translateX(5px);
}

.faq-section .success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
}

.faq-section .success-message.show {
    display: flex;
}

.faq-section .success-message i {
    font-size: 20px;
}

/* FAQ Responsive - Tablet */
@media (min-width: 768px) {
    .faq-section {
        padding: 100px 40px;
    }

    .faq-section .faq-heading {
        font-size: 48px;
    }

    .faq-section .form-heading {
        font-size: 36px;
    }

    .faq-section .accordion-title {
        font-size: 18px;
    }
}

/* FAQ Responsive - Desktop */
@media (min-width: 1024px) {
    .faq-section .faq-grid {
        grid-template-columns: minmax(500px, 0.95fr) minmax(540px, 1.05fr);
        gap: 50px;
    }

    .faq-section .faq-heading {
        font-size: 52px;
    }
}

@media (min-width: 1200px) {
    .faq-section .faq-heading {
        font-size: 56px;
    }

    .faq-section .faq-subtitle {
        font-size: 17px;
    }
}

/* FAQ Responsive - Mobile */
@media (max-width: 767px) {
    .faq-section .faq-heading {
        font-size: 32px;
    }

    .faq-section .faq-subtitle {
        margin-bottom: 0;
    }

    .faq-section .accordion-header {
        padding: 20px;
    }

    .faq-section .accordion-body {
        padding: 0 20px 20px 20px;
    }

    .faq-section .accordion-title {
        font-size: 16px;
    }

    .faq-section .contact-form-wrapper {
        padding: 40px 30px;
        position: relative;
        top: 0;
    }

    .faq-section .form-heading {
        font-size: 28px;
    }

    .floating-image {
        display: none !important;
    }
}
