@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors extracted from Logo */
    --primary-teal: #00a89d; /* Xanh ngọc sáng */
    --primary-blue: #0056a2; /* Xanh dương đậm */
    --primary-gradient: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-blue) 100%);
    
    --accent-purple: #9b59b6;
    
    /* Functional Colors */
    --bg-body: #f7f9fc;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    
    /* Interaction Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Radius */
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #e6f4ff;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 0;
}

/* Public Header Menu - Sticky */
.public-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 2px solid var(--primary-teal);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    padding: 0.6rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(0, 168, 157, 0.1);
    color: var(--primary-teal);
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 168, 157, 0.3);
}

/* Add padding to body content when header is present */
body:has(.public-header) {
    padding-top: 70px;
}

/* Mobile responsive header - handled by off-canvas menu */
@media (max-width: 768px) {
    .split-container {
        padding: 32px 16px;
    }

    .split-layout {
        gap: 1.25rem;
    }

    .split-brand .brand-logo {
        width: 200px;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .brand-tagline {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        height: 32px;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-teal);
}

/* Layout & Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6f4ff;
}

.split-container {
    width: 100%;
    padding: 56px 20px;
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
}

.split-layout {
    --brand-width: clamp(240px, 28vw, 320px);
    --brand-gap: 60px; /* khoảng cách giữa logo và form */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--brand-gap);
}

/* Reversed layout - form left, brand right */
.split-layout.reversed {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.split-brand {
    background: transparent;
    border-radius: var(--radius-lg);
    padding: 1rem 0;
    box-shadow: none;
    border: none;
    text-align: center;
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    width: var(--brand-width);
    flex-shrink: 0;
    z-index: 2;
    align-self: flex-start;
}

.brand-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 360px;
    margin: 0 auto;
}

.brand-animate {
    animation: brandFadeUp 0.8s ease-out both;
}

.split-brand .brand-logo {
    width: 320px;
    height: auto;
    margin: 0.75rem auto 0;
}

.brand-title {
    font-size: clamp(1.35rem, 1.8vw, 1.75rem);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.brand-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.brand-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 auto;
}

.split-form--raised {
    margin-top: -0.75rem;
}

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

.split-form .card {
    margin-bottom: 0;
}

.split-form {
    flex: 1;
    max-width: 820px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Ensure all children of cards respect width */
.card > * {
    max-width: 100%;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control, 
.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    background-color: #fff;
    transition: all 0.2s;
    font-family: inherit;
}

.form-control:focus, 
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(0, 168, 157, 0.1);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    gap: 0.5rem;
    line-height: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 86, 162, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 86, 162, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: var(--text-secondary);
}

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

.btn-info {
    background-color: #3b82f6;
    color: white;
}

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

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

/* Header & Banner */
.page-header {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-card);
    margin-bottom: -3rem; /* Overlap effect */
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.05;
    z-index: 0;
}

.brand-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Checkbox & Radio */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: 0;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.checkbox-group label:hover {
    border-color: var(--primary-teal);
    background: #f0fdfa;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 1rem;
    accent-color: var(--primary-teal);
    border-radius: 4px;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

/* Badge */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-pending { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.badge-approved { background: #ecfdf5; color: #047857; border: 1px solid #d1fae5; }
.badge-rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fee2e2; }

/* Admin Sidebar */
.sidebar {
    background: white;
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.sidebar-logo {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-logo img {
    max-width: 150px;
    height: auto;
}

.sidebar-logo h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s;
    gap: 0.75rem;
}

.sidebar-menu a:hover, 
.sidebar-menu a.active {
    background-color: #f0f9ff;
    color: var(--primary-blue);
}

.sidebar-menu a.active {
    background-color: #e0f2fe;
    font-weight: 600;
}

/* Admin Main Content */
.main-content {
    margin-left: 260px;
    padding: 2rem;
    background-color: var(--bg-body);
    min-height: 100vh;
    width: calc(100% - 260px);
    box-sizing: border-box;
}

/* Admin page header and toolbar */
.admin-page-header {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-page-header img.logo {
    height: 35px;
    width: auto;
}

.admin-page-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.admin-toolbar .btn {
    white-space: nowrap;
}

/* Make admin cards more compact and consistent */
.admin-layout .card {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-md);
}

.admin-layout .card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
}

.admin-layout .table-responsive {
    border-radius: var(--radius-md);
    background: white;
}

.admin-layout table th,
.admin-layout table td {
    padding: 0.85rem 0.9rem;
}

.admin-layout .form-group {
    margin-bottom: 1.1rem;
}

/* Admin filters blocks */
.admin-filters {
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
}

.admin-filters .form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.main-content > * {
    max-width: 100% !important;
    width: 100%;
}

.main-content .card,
.main-content > .card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.main-content h1 {
    width: 100%;
}

.main-content .stats-grid,
.main-content .step-indicator {
    width: 100%;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: white;
    table-layout: fixed;
}

.compact-table {
    min-width: 0;
    table-layout: auto;
}

.cell-wrap {
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
}

.copy-text {
    cursor: pointer;
    color: var(--primary-blue);
    text-decoration: underline;
}

.copy-text:hover {
    color: var(--primary-teal);
}

.copy-text.copied {
    color: #16a34a;
}

.status-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 16px;
}

.status-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

thead {
    background-color: #f9fafb;
    border-bottom: 1px solid var(--border-color);
}

th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

td {
    padding: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Action column - allow wrapping for buttons */
td:last-child {
    white-space: normal;
    overflow: visible;
    width: auto;
}

/* Badge styling - no borders */
.badge {
    border: none !important;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f9fafb;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Loading Overlay */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-width: 3px;
    border-style: solid;
    border-color: #e5e7eb;
    border-top-color: var(--primary-teal);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Responsive */
/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--error);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: #f9fafb;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.admin-layout .main-content {
    flex: 1;
}

/* Page Title */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.checkbox-group label:hover {
    border-color: var(--primary-teal);
    background: #f0fdfa;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-teal);
}

/* Alert Styles */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

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

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    .sidebar-logo h2,
    .sidebar-menu a span {
        display: none;
    }
    .sidebar-menu a {
        justify-content: center;
        padding: 0.75rem;
    }
    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
    }

    .split-layout {
        flex-direction: column;
        align-items: center;
        gap: 1.75rem;
    }

    .split-brand {
        order: 1;
        position: static;
        top: auto;
        transform: none;
        width: min(420px, 100%);
    }

    .split-form {
        order: 2;
        max-width: 100%;
    }

    .split-brand .brand-logo {
        width: 220px;
    }

    .brand-title {
        white-space: normal;
    }

    .split-form--raised {
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .split-brand .brand-logo {
        width: 220px;
    }

    .brand-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        width: 260px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Overlay for sidebar */
    .admin-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .admin-sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
        width: 100%;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 998;
        background: var(--primary-blue);
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }
    
    .mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    .card {
        padding: 1.5rem;
    }

    .split-container {
        padding: 32px 16px;
    }

    .split-layout {
        gap: 1.25rem;
    }

    .split-brand .brand-logo {
        width: 200px;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .brand-tagline {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .split-container {
        padding: 28px 14px;
    }

    .card {
        padding: 1.25rem;
    }

    .split-brand .brand-logo {
        width: 180px;
    }

    .brand-title {
        font-size: 1.15rem;
    }

    .brand-tagline {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .split-container {
        padding: 24px 12px;
    }

    .split-layout {
        gap: 1rem;
    }

    .split-brand {
        padding: 0.5rem 0;
    }

    .split-brand .brand-logo {
        width: 160px;
    }

    .brand-title {
        font-size: 1.05rem;
        text-align: center;
    }

    .brand-tagline {
        font-size: 0.78rem;
    }
}

@media (max-width: 360px) {
    .split-container {
        padding: 20px 10px;
    }

    .split-brand .brand-logo {
        width: 140px;
    }

    .card {
        padding: 1rem;
    }
}

/* =====================================================
   OFF-CANVAS MOBILE MENU - Public Pages
   ===================================================== */

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Off-canvas Overlay */
.offcanvas-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.offcanvas-overlay.active {
    display: block;
    opacity: 1;
}

/* Off-canvas Menu */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offcanvas-menu.active {
    right: 0;
}

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

.offcanvas-header h3 {
    color: white;
    font-size: 1rem;
    margin: 0;
}

.offcanvas-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

.offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.offcanvas-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-nav li {
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.offcanvas-nav a:hover,
.offcanvas-nav a.active {
    background: rgba(0, 168, 157, 0.1);
    color: var(--primary-teal);
}

.offcanvas-nav a.active {
    border-left: 3px solid var(--primary-teal);
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-container {
        flex-direction: row;
        padding: 0.75rem 1rem;
    }
    
    body:has(.public-header) {
        padding-top: 70px;
    }
}

/* =====================================================
   ADMIN MOBILE SIDEBAR
   ===================================================== */

/* Admin mobile header */
.admin-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: var(--primary-gradient);
    z-index: 1000;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-mobile-header h2 {
    color: white;
    font-size: 1rem;
    margin: 0;
    flex: 1;
}

.admin-mobile-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    order: 2;
}

.admin-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Admin sidebar mobile styles */
@media (max-width: 768px) {
    .admin-mobile-header {
        display: flex;
    }
    
    .sidebar {
        display: block;
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100%;
        z-index: 1001;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        right: 0;
    }
    
    .sidebar-logo h2 {
        display: block;
    }
    
    .sidebar-menu a span {
        display: inline;
    }
    
    .sidebar-menu a {
        justify-content: flex-start;
        padding: 0.75rem 1.25rem;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 70px;
        width: 100%;
    }

    .admin-page-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    .admin-toolbar {
        width: 100%;
        justify-content: flex-start;
    }
    
    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    .admin-sidebar-overlay.active {
        display: block;
    }
}

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.gap-10 { gap: 10px; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }

