:root {
    /* Colors */
    --primary: #093C5D;
    --primary-hover: #072F49;
    --secondary: #FFCC00;
    --bg-base: #f1f5f9;
    --bg-panel: rgba(255, 255, 255, 0.85);
    --bg-panel-solid: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --danger: #ef4444;
    --warning: #FFCC00;
    --success: #093C5D;
    --input-bg: #ffffff;

    /* Typography */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Effects */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0);
    --blur-glass: blur(12px);
    --radius: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.public-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.public-wrapper {
    flex: 1 0 auto;
}

.public-footer {
    flex-shrink: 0;
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.footer-sub {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Typography & Glow */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
}

.institute-name {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.header-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-text h2 {
    margin-bottom: 0;
}

.header-institute {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.glow-text {
    text-shadow: 0 0 20px rgba(9, 60, 93, 0.5);
}

.subtitle {
    color: var(--text-muted);
    font-weight: 400;
}

.text-muted {
    color: var(--text-muted);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass);
    padding: 2rem;
}

/* Animations */
@keyframes orbFloat {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(9, 60, 93, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(9, 60, 93, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(9, 60, 93, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Background Orbs */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 10s ease-in-out infinite;
}

.bg-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.bg-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.bg-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 60, 93, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-success {
    background: var(--success);
    color: white;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-row>.col-md-6 {
    width: 50%;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .form-row>.col-md-6 {
        width: 100%;
    }
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    transition: var(--transition);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9, 60, 93, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Validation Styles */
.form-control.is-invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--danger);
    font-weight: 500;
}

.form-group.has-error .invalid-feedback {
    display: block;
}

.form-group.has-error label {
    color: var(--danger);
}

/* Custom Inputs (Radio/Checkbox) */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group.inline,
.checkbox-group.inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.grid-2-v {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: repeat(8, auto);
    gap: 0.25rem 2rem;
}

@media (max-width: 992px) {
    .grid-2-v {
        grid-auto-flow: row;
        grid-template-rows: none;
        grid-template-columns: 1fr;
    }
}

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

.radio-label,
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 400;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.radio-label input,
.checkbox-label input {
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.radio-label:hover,
.checkbox-label:hover {
    background: var(--input-bg);
}

.other-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    grid-column: 1 / -1;
}

.other-input .form-control {
    flex: 1;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.2);
    color: #FFCC00;
}

.alert-success {
    background: rgba(9, 60, 93, 0.1);
    border: 1px solid rgba(9, 60, 93, 0.2);
    color: #093C5D;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.flash-message {
    pointer-events: auto;
    min-width: 250px;
    max-width: 350px;
    background: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out forwards;
    position: relative;
    overflow: hidden;
    border-left: 3px solid var(--primary);
}

.flash-message::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: rgba(0,0,0,0.05);
}

.flash-message.success { border-left-color: #10b981; }
.flash-message.error { border-left-color: #ef4444; }
.flash-message.info { border-left-color: #3b82f6; }

.flash-message.success .flash-icon { color: #10b981; }
.flash-message.error .flash-icon { color: #ef4444; }
.flash-message.info .flash-icon { color: #3b82f6; }

.flash-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.flash-content {
    flex: 1;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-main);
}

.flash-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.flash-message.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Admin Table Filters */
.table-filters {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.table-filters .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.table-filters .col-md-4 {
    flex: 0 0 300px;
    max-width: 100%;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group .form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: white;
    font-size: 0.9375rem;
    color: var(--text-main);
    transition: var(--transition);
}

.filter-group .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9, 60, 93, 0.1);
}

.btn-filter-reset {
    width: 100%;
    padding: 0.6rem 0.75rem;
    height: 42px; /* Matching form-control height */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    background: #f8fafc;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }

/* --- Specific Layouts --- */

/* Landing Page */
.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2.25rem;
    }
    .landing-hero h2 {
        font-size: 1.25rem;
    }
    .institute-name {
        font-size: 1.1rem;
    }
    .main-logo {
        width: 140px;
    }
    .welcome-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .landing-hero h1 {
        font-size: 1.8rem;
    }
    .landing-hero h2 {
        font-size: 1.1rem;
    }
    .main-logo {
        width: 110px;
    }
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .action-buttons .btn {
        width: 100%;
    }
}

.landing-hero {
    max-width: 800px;
    width: 100%;
    z-index: 1;
}

.college-logo {
    margin-bottom: 1.5rem;
}

.main-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(9, 60, 93, 0.3));
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.form-logo {
    width: 60px;
    height: auto;
}

@media (max-width: 600px) {
    .header-logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.landing-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.landing-hero h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.welcome-card {
    margin-top: 3rem;
    text-align: left;
}

.welcome-card h3 {
    color: var(--primary);
}

.welcome-card p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.highlight-text {
    color: var(--warning);
    font-weight: 500;
}

.action-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.auth-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.user-dashboard {
    text-align: center;
}

.dashboard-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary);
}

.status-box {
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-box.success {
    background: rgba(9, 60, 93, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.status-box.info {
    background: rgba(255, 204, 0, 0.05);
    border: 1px solid var(--warning);
    color: var(--text-main);
}

.status-box.warning {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid var(--warning);
    color: #854d0e;
}

.status-box i {
    font-size: 2rem;
}

.mt-4 { margin-top: 1.5rem; }
.mt-3 { margin-top: 1rem; }

/* Survey Form */
.survey-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    z-index: 1;
    position: relative;
}

.survey-header {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-container {
    height: 8px;
    background: var(--input-bg);
    border-radius: 4px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 20%;
    transition: width 0.5s ease;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.steps-indicator .step {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--input-bg);
    transition: var(--transition);
}

.steps-indicator .step.active {
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Survey Form Responsive Adjustments */
@media (max-width: 768px) {
    .survey-container {
        padding: 1rem 0.5rem;
    }
    .steps-indicator {
        justify-content: center;
        gap: 0.25rem;
    }
    .steps-indicator .step {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    /* Hide non-active step text on very small screens to save space */
    @media (max-width: 480px) {
        .steps-indicator .step:not(.active) {
            display: none;
        }
        .steps-indicator .step.active {
            width: 100%;
            text-align: center;
        }
        .form-actions {
            flex-direction: column-reverse;
            gap: 1rem;
        }
        .form-actions .btn {
            width: 100%;
        }
    }
}

.section-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.help-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Auth / Login */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1;
    position: relative;
}

.auth-card {
    max-width: 400px;
    width: 100%;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 0.75rem;
    }
    .auth-card {
        padding: 1.5rem;
    }
    .auth-header h2 {
        font-size: 1.5rem;
    }
    .auth-logo {
        font-size: 2.5rem;
    }
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    padding-left: 2.5rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.auth-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary);
}

/* Thank You */
.thank-you-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    z-index: 1;
    position: relative;
}

.thank-you-card {
    max-width: 600px;
    width: 100%;
}

.success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.message-box {
    background: var(--input-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

/* --- Admin Layout --- */
.admin-body {
    display: flex;
    background-color: var(--bg-base);
}

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #ffffff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.logo-text h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}

.sidebar-nav ul {
    list-style: none;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 1.5rem 0 0.5rem 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-details {
    display: flex;
    flex-direction: column;
}

.admin-name {
    font-size: 0.9rem;
    font-weight: 500;
}

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

.logout-btn {
    color: var(--danger);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(255, 204, 0, 0.1);
    border-radius: 6px;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.admin-header {
    height: 70px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--blur-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-content {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

/* Dashboard Grids */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.bg-primary-light {
    background: rgba(9, 60, 93, 0.15);
    color: var(--primary);
}

.bg-success-light {
    background: rgba(9, 60, 93, 0.15);
    color: var(--success);
}

.bg-warning-light {
    background: rgba(255, 204, 0, 0.15);
    color: var(--warning);
}

.bg-danger-light {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.stat-details h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
}

.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-container {
    display: flex;
    flex-direction: column;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* DataTable Overrides */
.dataTables_wrapper {
    color: var(--text-main);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-muted) !important;
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_filter input {
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_length select {
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.2rem;
    border-radius: 4px;
}

table.dataTable.no-footer {
    border-bottom: 1px solid var(--border);
}

table.dataTable thead th,
table.dataTable thead td {
    border-bottom: 1px solid var(--border) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-muted) !important;
    border: 1px solid var(--border) !important;
    background: var(--input-bg) !important;
    border-radius: 4px;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: white !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Responsive Admin */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .mobile-toggle,
    .sidebar-toggle {
        display: block;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Google Auth UI */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.autosave-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
    margin-left: 1rem;
    background: rgba(0,0,0,0.03);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.autosave-status.saving {
    color: var(--primary);
}

.autosave-status.saving i {
    animation: spin 1s linear infinite;
}

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

.google-auth-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.auth-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-panel-solid);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

.user-email {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-logout {
    color: var(--danger);
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: var(--transition);
}

.btn-logout:hover {
    transform: scale(1.1);
}

.edit-alert {
    background: rgba(9, 60, 93, 0.1);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

@media (max-width: 600px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    .google-auth-container {
        align-items: center;
    }
}