/* ============================================================
   BASE RESET & BODY
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f0f2f8;
    color: #1a202c;
    min-height: 100vh;
    letter-spacing: -0.01em;
}

/* Gradient background: landing + login pages */
body.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    min-height: 100vh;
}

/* Centered-page variant (login, forms, check containers) */
body.centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

body.centered::before,
body.centered::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

body.centered::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -250px;
    left: -250px;
    animation: floatOrb 20s ease-in-out infinite;
}

body.centered::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation: floatOrb 15s ease-in-out infinite reverse;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(50px, 50px) scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}

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

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

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

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}


/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar        { width: 10px; height: 10px; }
::-webkit-scrollbar-track  { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border-radius: 10px; }
::-webkit-scrollbar-thumb  { background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 10px; border: 2px solid #f0f9ff; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #764ba2, #f093fb); }


/* ============================================================
   DASHBOARD SHELL
   ============================================================ */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* ── Sidebar ── */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e3a8a 0%, #312e81 50%, #4c1d95 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 8px 0 40px rgba(0,0,0,0.3);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.sidebar.closed { transform: translateX(-100%); }
.sidebar.open   { transform: translateX(0); }

.sidebar-header {
    padding: 30px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.close-btn {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.close-btn:hover { background: rgba(255,255,255,0.2); }

.sidebar-nav { padding: 25px 0; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 25px;
    margin: 4px 12px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 14px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.1));
    color: #fbbf24;
    transform: translateX(5px);
}

.nav-item.active { font-weight: 600; }

.nav-item:hover::before,
.nav-item.active::before { transform: scaleY(1); }

.nav-item i,
.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ── Main Content ── */
.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    background: #f0f2f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.main-content.expanded { margin-left: 0; }

/* ── Top Bar / Header ── */
.top-bar,
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 20px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(102,126,234,0.1);
}

.header { padding: 22px 35px; }

.header-title h1,
.header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.menu-toggle,
.menu-btn {
    display: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.menu-toggle:hover,
.menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}

.search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

.top-bar-actions,
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ── Icon Button ── */
.icon-btn {
    position: relative;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid rgba(102,126,234,0.2);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #667eea;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
    border-color: transparent;
}

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

/* ── User Profile ── */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-profile:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
}

.user-profile:hover span { color: white; }

.user-profile img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

.user-profile span {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 15px;
    transition: color 0.3s ease;
}


/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    padding: 20px 35px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    margin: 20px 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(102,126,234,0.1);
}

/* Variant with flex row (list pages) */
.page-header.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.page-title-section h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    align-items: center;
    margin-top: 8px;
}

.breadcrumb.centered { justify-content: center; }

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover { color: #764ba2; }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

/* Full-width flex variant */
.btn.full { flex: 1; padding: 16px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(102,126,234,0.3);
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102,126,234,0.4);
}

/* Shine sweep variant (login) */
.btn-primary.sweep { position: relative; overflow: hidden; }

.btn-primary.sweep::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary.sweep:hover::before { left: 100%; }

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

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


.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b6b, #c0392b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
    font-family: inherit;
    white-space: nowrap;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
}

/* Shine sweep variant */
.btn-danger.sweep {
    position: relative;
    overflow: hidden;
}

.btn-danger.sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-danger.sweep:hover::before {
    left: 100%;
}

/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-section        { padding: 25px 35px 35px; }
.form-card           { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid rgba(102,126,234,0.1); }
.form-card + .form-card { margin-top: 25px; }
.form-card-header    { padding: 25px 30px; border-bottom: 2px solid #f1f5f9; background: linear-gradient(135deg, #f8fafc, #f1f5f9); }
.form-card-title     { font-size: 20px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 12px; }
.form-card-title i   { color: #667eea; }
.form-body           { padding: 35px 30px; }

/* Stat card color top-border variants */
.stat-card--blue   { border-top-color: #4A90E2; }
.stat-card--purple { border-top-color: #9B59B6; }
.stat-card--green  { border-top-color: #2ECC71; }
.stat-card--teal   { border-top-color: #3498DB; }

.stat-icon--blue   { background-color: rgba(74,144,226,0.15); color: #4A90E2; }
.stat-icon--purple { background-color: rgba(155,89,182,0.15); color: #9B59B6; }
.stat-icon--green  { background-color: rgba(46,204,113,0.15);  color: #2ECC71; }
.stat-icon--teal   { background-color: rgba(52,152,219,0.15);  color: #3498DB; }

/* Event date color variants */
.event-date--blue   { background-color: #4A90E2; }
.event-date--green  { background-color: #2ECC71; }
.event-date--teal   { background-color: #3498DB; }
.event-date--orange { background-color: #E67E22; }

/* Status badge inline color variants */
.status-badge--open     { background-color: rgba(230,126,34,0.15); color: #E67E22; }
.status-badge--progress { background-color: rgba(52,152,219,0.15);  color: #3498DB; }
.status-badge--pending  { background-color: rgba(243,156,18,0.15);  color: #F39C12; }

/* Color picker label gradients */
.color-label--1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.color-label--2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.color-label--3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.color-label--4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.color-label--5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.color-label--6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

/* Success icon */
.icon-success { color: #10b981; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.form-group          { display: flex; flex-direction: column; margin-bottom: 0; }
.form-group.mb       { margin-bottom: 25px; }             /* standalone-page variant */
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    margin-bottom: 10px;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.required { color: #ef4444; }

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}

.form-control::placeholder { color: #94a3b8; }

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

textarea.form-control { resize: vertical; min-height: 120px; }

/* Password input wrapper */
.input-wrapper       { position: relative; }
.input-wrapper > i   { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 16px; }
.input-wrapper .form-control { padding-left: 50px; }

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover { color: #667eea; }

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 25px;
    border-top: 2px solid #f1f5f9;
    margin-top: 35px;
}

/* File upload */
.file-upload               { position: relative; overflow: hidden; }
.file-upload input[type="file"] { position: absolute; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
}

.file-upload-label:hover   { border-color: #667eea; background: #f0f9ff; color: #667eea; }
.file-upload-label i       { font-size: 32px; }

/* Checkbox group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover             { background: #f0f9ff; border-color: #667eea; }
.checkbox-item input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; accent-color: #667eea; }
.checkbox-item label             { cursor: pointer; margin: 0; font-weight: 500; }

/* Form options row (login page) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 15px;
}

.checkbox-wrapper             { display: flex; align-items: center; gap: 8px; }
.checkbox-wrapper input       { width: 18px; height: 18px; cursor: pointer; accent-color: #667eea; }
.checkbox-wrapper label       { color: #64748b; font-size: 14px; cursor: pointer; margin: 0; }

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover { color: #764ba2; }

/* Color picker */
.color-picker-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.color-option               { position: relative; }
.color-option input[type="radio"] { position: absolute; opacity: 0; }

.color-option label {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-option input[type="radio"]:checked + label {
    border-color: #1e293b;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.color-option label:hover { transform: scale(1.05); }

/* Icon picker */
.icon-picker-group {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.icon-option                      { position: relative; }
.icon-option input[type="radio"]  { position: absolute; opacity: 0; }

.icon-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    font-size: 20px;
    color: #64748b;
    transition: all 0.3s ease;
}

.icon-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.icon-option label:hover { transform: scale(1.05); border-color: #667eea; }

/* Social login */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #94a3b8;
    font-size: 14px;
}

.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.divider span   { padding: 0 15px; }

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: #334155;
    transition: all 0.3s ease;
}

.social-btn:hover { border-color: #667eea; background: #f8fafc; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.social-btn i                { font-size: 18px; }
.social-btn.google i         { color: #ea4335; }
.social-btn.microsoft i      { color: #00a4ef; }

.signup-link               { text-align: center; color: #64748b; font-size: 14px; }
.signup-link a             { color: #667eea; text-decoration: none; font-weight: 700; transition: color 0.3s ease; }
.signup-link a:hover       { color: #764ba2; }


/* ============================================================
   CONTENT SECTION (dashboard list pages)
   ============================================================ */
.content-section { padding: 0 35px 35px; }

/* Card */
.card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(102,126,234,0.1);
}

.card-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title { font-size: 20px; font-weight: 700; color: #1e293b; }

/* Filter */
.filter-section { display: flex; gap: 15px; align-items: center; }

.filter-btn {
    padding: 10px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}


/* ============================================================
   TABLE
   ============================================================ */
.table-container { overflow-x: auto; }

table           { width: 100%; border-collapse: collapse; }
thead           { background: linear-gradient(135deg, #f8fafc, #f1f5f9); }

th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    color: #334155;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

thead tr        { border-bottom: 2px solid rgba(102,126,234,0.2); }

td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 14px;
}

tbody tr        { transition: all 0.3s ease; border-bottom: 1px solid rgba(102,126,234,0.1); }
tbody tr:hover  { background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.03)); }


/* ── Staff info cell ── */
.staff-info     { display: flex; align-items: center; gap: 15px; }

.staff-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.staff-details h4 { font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.staff-details p  { font-size: 13px; color: #94a3b8; }


/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

.status-badge.active,
.status-completed   { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.status-badge.inactive { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }
.status-badge.on-leave,
.status-pending     { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.status-progress    { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }


/* ============================================================
   ACTION BUTTONS (table rows)
   ============================================================ */
.action-buttons { display: flex; gap: 8px; }

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-btn.edit    { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.action-btn.edit:hover  { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59,130,246,0.4); }

.action-btn.delete  { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }
.action-btn.delete:hover { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(239,68,68,0.4); }

.action-btn.view    { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca; }
.action-btn.view:hover  { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99,102,241,0.4); }


/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #f1f5f9;
}

.pagination-info    { color: #64748b; font-size: 14px; }
.pagination-buttons { display: flex; gap: 8px; }

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}


/* ============================================================
   CENTRED CARD CONTAINERS (login, standalone forms, checklist)
   ============================================================ */
/* .login-container, */
.form-container,
.check-container {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    width: 100%;
    padding: 50px 45px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease;
    border: 1px solid rgba(255,255,255,0.3);
}


.login-container  { max-width: 480px; }


.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before { left: 100%; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5); }
.btn-login:active { transform: translateY(0); }

.form-container   { max-width: 700px; }
.check-container  { max-width: 900px; }

/* Login logo */
.logo-section      { text-align: center; margin-bottom: 40px; }

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
    animation: pulse 2s infinite;
}

.logo-icon.lg       { width: 100px; height: 100px; border-radius: 25px; box-shadow: 0 15px 40px rgba(102,126,234,0.4); }
.logo-icon i        { font-size: 40px; color: white; }
.logo-icon.lg i     { font-size: 50px; }

/* Index page logo text variant */
.logo-text.hero {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 20px;
    font-weight: 500;
}

.logo-subtitle      { color: #64748b; font-size: 15px; font-weight: 500; }

.login-header       { text-align: center; margin-bottom: 35px; }
.login-header h1    { font-size: 28px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.login-header p     { color: #64748b; font-size: 15px; }

.form-header,
.check-header       { text-align: center; margin-bottom: 40px; }

.form-header h1,
.check-header h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.form-header p,
.check-header p     { color: #64748b; font-size: 15px; }


/* ============================================================
   CHECKLIST PAGE
   ============================================================ */
.wheelchair-info,
.check-info {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(102,126,234,0.2);
}

.wheelchair-info h3,
.check-info h3      { color: #1e293b; margin-bottom: 15px; font-size: 18px; }

.info-grid          { display: grid; gap: 15px; }
.info-grid.col-2    { grid-template-columns: repeat(2, 1fr); }
.info-grid.col-3    { grid-template-columns: repeat(3, 1fr); }

.info-item          { display: flex; align-items: center; gap: 10px; color: #64748b; font-size: 14px; }
.info-item i        { color: #667eea; width: 20px; }

/* Single-item checklist */
.checklist-section  { margin-bottom: 30px; }

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i    { color: #667eea; }

.check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.check-item:hover   { background: #f0f9ff; border-color: #667eea; }

.check-label        { display: flex; align-items: center; gap: 12px; flex: 1; }
.check-label input[type="checkbox"] { width: 24px; height: 24px; cursor: pointer; accent-color: #667eea; }
.check-label span   { font-weight: 500; color: #334155; }

.status-indicator   { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-pass        { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.status-fail        { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }

/* Card-based checklist grid */
.checks-grid        { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }

.check-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.check-card:hover   { background: #f0f9ff; border-color: #667eea; transform: translateY(-2px); }

.check-card-header  { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }

.check-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

/* Shared icon color sequence — apply these classes */
.icon-gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.icon-gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.icon-gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.icon-gradient-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.icon-gradient-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.icon-gradient-6 { background: linear-gradient(135deg, #30cfd0, #330867); }

.check-title        { font-size: 18px; font-weight: 700; color: #1e293b; }
.check-items        { display: flex; flex-direction: column; gap: 10px; }

.check-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.check-option:hover { background: #f0f9ff; }
.check-option input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; accent-color: #667eea; }
.check-option label { cursor: pointer; font-size: 14px; color: #334155; flex: 1; }

.notes-section          { margin-bottom: 30px; }

.notes-section textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #f8fafc;
    font-family: inherit;
    min-height: 100px;
    resize: vertical;
}

.notes-section textarea:focus { outline: none; border-color: #667eea; background: white; box-shadow: 0 0 0 4px rgba(102,126,234,0.1); }


/* ============================================================
   INDEX / LANDING PAGE
   ============================================================ */
.container          { max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; }

.header.index       { text-align: center; margin-bottom: 60px; animation: slideDown 0.6s ease; }

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger delays */
.page-card:nth-child(1)  { animation-delay: 0.1s; }
.page-card:nth-child(2)  { animation-delay: 0.2s; }
.page-card:nth-child(3)  { animation-delay: 0.3s; }
.page-card:nth-child(4)  { animation-delay: 0.4s; }
.page-card:nth-child(5)  { animation-delay: 0.5s; }
.page-card:nth-child(6)  { animation-delay: 0.6s; }
.page-card:nth-child(7)  { animation-delay: 0.7s; }
.page-card:nth-child(8)  { animation-delay: 0.8s; }
.page-card:nth-child(9)  { animation-delay: 0.9s; }
.page-card:nth-child(10) { animation-delay: 1.0s; }

.page-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2 50%, #f093fb);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.page-card:hover::before { transform: scaleX(1); }
.page-card:hover         { transform: translateY(-10px) scale(1.02); box-shadow: 0 25px 70px rgba(0,0,0,0.25); }

.page-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: white;
}

.page-card:hover .page-icon { transform: scale(1.1) rotate(5deg); }

/* Apply icon-gradient-N classes to .page-icon for colors */

.page-title         { font-size: 22px; font-weight: 700; color: #1e293b; margin-bottom: 12px; }
.page-description   { color: #64748b; font-size: 14px; line-height: 1.6; margin-bottom: 25px; }

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    transition: all 0.3s ease;
}

.page-link:hover    { transform: translateX(5px); box-shadow: 0 6px 20px rgba(102,126,234,0.4); }


/* ============================================================
   DASHBOARD HOME (welcome, stats, charts, events)
   ============================================================ */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    margin: 35px;
    padding: 45px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 20px 60px rgba(102,126,234,0.4);
    animation: slideInDown 0.6s ease;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.welcome-content    { flex: 1; max-width: 650px; position: relative; z-index: 1; }
.welcome-content h2 { font-family: 'Poppins', sans-serif; font-size: 42px; margin-bottom: 18px; font-weight: 800; letter-spacing: -0.02em; }
.welcome-subtitle   { font-size: 18px; margin-bottom: 16px; opacity: 0.95; font-weight: 500; line-height: 1.5; }
.welcome-description { font-size: 15px; line-height: 1.7; opacity: 0.9; margin-bottom: 28px; }

.cta-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 16px 36px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 30px rgba(0,0,0,0.25); background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; }

.welcome-illustration        { flex: 0 0 320px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.welcome-illustration img    { width: 100%; max-width: 300px; filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2)); animation: float 6s ease-in-out infinite; }

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    padding: 0 35px;
    margin-bottom: 35px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.stat-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--card-color, #667eea), var(--card-color-light, #764ba2));
}

.stat-card:hover    { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 45px rgba(0,0,0,0.15); }

.stat-header        { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-change        { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 25px; font-family: 'Poppins', sans-serif; }
.stat-change.positive { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.stat-change.negative { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a, #312e81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.stat-title     { font-size: 16px; color: #475569; font-weight: 600; margin-bottom: 6px; font-family: 'Poppins', sans-serif; }
.stat-subtitle  { font-size: 13px; color: #94a3b8; font-weight: 500; }
.stat-label     { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.stat-item      { display: flex; flex-direction: column; }

/* Charts */
.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    padding: 0 35px;
    margin-bottom: 35px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.chart-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }

.chart-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    background: linear-gradient(135deg, #1e3a8a, #312e81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.year-select {
    padding: 10px 18px;
    border: 2px solid rgba(102,126,234,0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #667eea;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.year-select:hover { border-color: #667eea; background: linear-gradient(135deg, #667eea, #764ba2); color: white; transform: translateY(-2px); }
.chart-body { height: 320px; position: relative; }

/* Events */
.events-section   { padding: 0 35px; margin-bottom: 35px; animation: fadeInUp 0.6s ease 0.6s both; }
.section-header   { margin-bottom: 22px; }

.section-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    background: linear-gradient(135deg, #1e3a8a, #312e81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.events-list {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

.event-item {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-item:last-child { margin-bottom: 0; }
.event-item:hover { background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.05)); transform: translateX(8px); border-color: rgba(102,126,234,0.2); box-shadow: 0 4px 15px rgba(102,126,234,0.1); }

.event-date {
    width: 68px; height: 68px;
    border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.event-day      { font-size: 28px; line-height: 1; font-weight: 800; }
.event-month    { font-size: 12px; text-transform: uppercase; margin-top: 4px; font-weight: 600; letter-spacing: 0.5px; }
.event-details  { flex: 1; }
.event-details h4 { font-size: 16px; color: #1e293b; margin-bottom: 6px; font-weight: 600; font-family: 'Poppins', sans-serif; }
.event-details p  { font-size: 14px; color: #64748b; font-weight: 500; }

.event-menu {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: none; font-size: 20px; color: #667eea; cursor: pointer;
    padding: 8px 12px; border-radius: 10px; transition: all 0.3s ease;
}

.event-menu:hover { background: linear-gradient(135deg, #667eea, #764ba2); color: white; transform: scale(1.1); }

/* Requests */
.requests-section { padding: 0 35px 35px; animation: fadeInUp 0.6s ease 0.8s both; }

.requests-table {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.5);
}

/* Requests card grid */
.requests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; }

.request-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(102,126,234,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.request-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, #667eea, #764ba2 50%, #f093fb); }
.request-card:hover   { transform: translateY(-5px); box-shadow: 0 15px 50px rgba(0,0,0,0.12); }

.request-header       { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.request-id           { font-size: 14px; font-weight: 700; color: #667eea; }

.priority-badge       { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.priority-high        { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }
.priority-medium      { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.priority-low         { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }

.request-title        { font-size: 20px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
.request-description  { color: #64748b; font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.request-meta         { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid #f1f5f9; }
.meta-item            { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #64748b; }
.meta-item i          { color: #667eea; width: 20px; }


/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.category-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(102,126,234,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, #667eea, #764ba2 50%, #f093fb); }
.category-card:hover   { transform: translateY(-5px); box-shadow: 0 15px 50px rgba(0,0,0,0.12); }

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    color: white;
}

.category-title       { font-size: 22px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
.category-description { color: #64748b; font-size: 14px; line-height: 1.6; margin-bottom: 20px; }

.category-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.category-actions { display: flex; gap: 10px; }

.action-btn.category {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    text-align: center;
    padding: 30px;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    font-weight: 500;
}

.footer a {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.footer a:hover { text-decoration: underline; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .charts-section { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .sidebar                { transform: translateX(-100%); }
    .sidebar.open           { transform: translateX(0); }
    .main-content           { margin-left: 0; }
    .menu-toggle, .menu-btn { display: block; }
    .close-btn              { display: block; }
    .form-grid              { grid-template-columns: 1fr; }
    .checkbox-group         { grid-template-columns: 1fr; }
    .checks-grid            { grid-template-columns: 1fr; }
    .categories-grid        { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .requests-grid          { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 968px) {
    .welcome-section        { flex-direction: column; text-align: center; margin: 25px 20px; padding: 35px 25px; }
    .welcome-content h2     { font-size: 34px; }
    .welcome-illustration   { margin-top: 30px; }
    .stats-grid             { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0 20px; }
}

@media (max-width: 768px) {
    .top-bar, .header                   { padding: 15px 20px; }
    .search-bar                         { display: none; }
    .page-header                        { padding: 18px 20px; margin: 15px 20px; }
    .page-header.flex-row               { flex-direction: column; gap: 15px; align-items: flex-start; }
    .form-section, .content-section,
    .events-section, .requests-section,
    .charts-section                     { padding-left: 20px; padding-right: 20px; }
    .welcome-section                    { margin: 20px; padding: 30px 20px; }
    .welcome-content h2                 { font-size: 28px; }
    .stats-grid                         { padding: 0 20px; gap: 20px; }
    .form-body                          { padding: 25px 20px; }
    .form-actions                       { flex-direction: column; }
    .btn                                { width: 100%; justify-content: center; }
    .social-login                       { grid-template-columns: 1fr; }
    .color-picker-group                 { grid-template-columns: repeat(4, 1fr); }
    .icon-picker-group                  { grid-template-columns: repeat(6, 1fr); }
    .login-container, .form-container,
    .check-container                    { padding: 35px 25px; }
    .info-grid.col-3                    { grid-template-columns: 1fr; }
    .event-date                         { width: 60px; height: 60px; }
    .event-day                          { font-size: 24px; }
    .table-container                    { overflow-x: scroll; }
    table                               { min-width: 800px; }
    .categories-grid,
    .requests-grid                      { grid-template-columns: 1fr; }
    .pages-grid                         { grid-template-columns: 1fr; gap: 20px; }
    .page-card                          { padding: 25px; }
    .logo-text.hero                     { font-size: 36px; }
    .subtitle                           { font-size: 16px; }
    .header-title h1                    { font-size: 24px; }
    .filter-section                     { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    body.centered                       { padding: 20px 15px; }
    .user-profile span                  { display: none; }
    .page-title-section h1              { font-size: 24px; }
    .btn-primary                        { padding: 12px 20px; font-size: 14px; }
    .stat-value                         { font-size: 36px; }
    .header-actions                     { gap: 8px; }
    .icon-btn                           { width: 42px; height: 42px; }
    .chart-header h3,
    .section-header h3                  { font-size: 20px; }
    .color-picker-group                 { grid-template-columns: repeat(3, 1fr); }
    .icon-picker-group                  { grid-template-columns: repeat(4, 1fr); }
    .login-container, .form-container,
    .check-container                    { padding: 30px 20px; border-radius: 20px; }
    .logo-icon                          { width: 70px; height: 70px; }
    .logo-icon i                        { font-size: 35px; }
    .logo-text.hero                     { font-size: 28px; }
    .welcome-content h2                 { font-size: 24px; }
}
/* ── Sidebar Submenu Styles ── */
.nav-group {
    position: relative;
}

.nav-parent {
    cursor: pointer;
    user-select: none;
    justify-content: flex-start;
}

.nav-arrow {
    margin-left: auto;
    font-size: 12px !important;
    width: auto !important;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-arrow.rotated {
    transform: rotate(180deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0 0 10px 10px;
    margin: 0 12px 4px 12px;
}

.nav-submenu.open {
    max-height: 500px;
}

.nav-child {
    padding: 11px 16px 11px 30px !important;
    margin: 2px 0 !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    transform: none !important;
}

.nav-child:hover,
.nav-child.active {
    background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(245,158,11,0.12)) !important;
    color: #fbbf24 !important;
    transform: translateX(3px) !important;
}

.nav-child .nav-icon {
    font-size: 14px !important;
    width: 18px !important;
}


/* ============================================================
   NOTIFICATION PANEL & USER DROPDOWN (shared across all pages)
   ============================================================ */

/* Panel overlay */
.panel-overlay { position: fixed; inset: 0; z-index: 998; display: none; }
.panel-overlay.active { display: block; }

/* Wrappers */
.notif-wrapper,
.user-menu-wrapper { position: relative; }

/* Notification panel */
.notif-panel {
    position: absolute; top: calc(100% + 14px); right: 0; width: 380px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 999; overflow: hidden;
    opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.notif-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.notif-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.notif-header h4 {
    font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700;
    color: #1e293b; letter-spacing: -0.01em;
}
.notif-count-badge {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}
.notif-list { max-height: 320px; overflow-y: auto; padding: 4px 0; }
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }
.notif-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.notif-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 20px; cursor: pointer;
    transition: background .15s ease;
    border-bottom: 1px solid #f8fafc;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #f8fafc; }
.notif-item.read { opacity: 0.45; }

.notif-avatar {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: white; flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 13px; color: #334155; line-height: 1.45; margin-bottom: 3px; }
.notif-text strong { color: #1e3a8a; font-weight: 600; }
.notif-time { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.notif-time::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; display: inline-block; }

.notif-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    flex-shrink: 0; margin-top: 6px;
}
.notif-item.read .notif-dot { background: #e2e8f0; }

.notif-footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    text-align: center;
}
.notif-footer a {
    font-size: 13px; color: #667eea; text-decoration: none;
    font-weight: 600; transition: color .2s;
}
.notif-footer a:hover { color: #4f46e5; }

/* User dropdown */
.user-dropdown {
    position: absolute; top: calc(100% + 14px); right: 0; width: 230px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 999; overflow: hidden;
    opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.user-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.user-dropdown-header {
    padding: 18px 18px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    display: flex; align-items: center; gap: 12px;
}
.ud-avatar {
    width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
    border: 2px solid #667eea; flex-shrink: 0;
}
.ud-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ud-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 13.5px; color: #1e293b; }
.ud-role {
    font-size: 11px; color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 2px 8px; border-radius: 20px;
    display: inline-block; margin-top: 3px; font-weight: 600;
}
.ud-menu { padding: 6px 8px; }
.ud-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; font-size: 13.5px; color: #475569;
    cursor: pointer; text-decoration: none;
    border-radius: 10px;
    transition: all .18s ease; font-weight: 500;
}
.ud-item .ud-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; background: #f1f5f9; color: #667eea;
    transition: all .18s ease; flex-shrink: 0;
}
.ud-item:hover { background: #f8fafc; color: #1e293b; }
.ud-item:hover .ud-icon { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.ud-divider { height: 1px; background: #f1f5f9; margin: 4px 0; }
.ud-item.logout { color: #ef4444; }
.ud-item.logout .ud-icon { color: #ef4444; background: #fef2f2; }
.ud-item.logout:hover { background: #fef2f2; color: #dc2626; }
.ud-item.logout:hover .ud-icon { background: #ef4444; color: white; }

/* Bell active state */
.icon-btn.notif-active {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(102,126,234,0.4) !important;
}

/* User profile button */
.user-profile-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 40px; cursor: pointer;
    transition: all .25s ease;
}
.user-profile-btn:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102,126,234,0.2);
    background: #f8fafc;
}
.user-profile-btn img {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid #667eea; object-fit: cover;
}
.up-name { font-weight: 600; color: #1e293b; font-size: 13.5px; }
.up-chevron { font-size: 10px; color: #94a3b8; transition: transform .25s ease; margin-left: 2px; }
.user-menu-wrapper.open .up-chevron { transform: rotate(180deg); }

/* Nav submenu max-height override */
.nav-submenu.open { max-height: 900px !important; }

/* Status badge – completed */
.status-badge--completed { background-color: rgba(46,204,113,0.15); color: #2ECC71; }

/* Index footer caption */
.footer-caption { margin-top: 10px; font-size: 12px; opacity: 0.8; }


        .password-wrapper {
            position: relative;
        }

        .field-icon {
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            cursor: pointer;
            z-index: 10;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6b7280;
        }

        .field-icon i {
            font-size: 18px;
        }

        .password-wrapper input {
            padding-right: 45px;
        }

        .v-error {
            color: #dc3545;
            font-size: 13px;
            font-weight: 500;
            margin-top: 6px;
            display: block;
            line-height: 1.4;
        }

        input.v-error,
        select.v-error,
        textarea.v-error {
            border-color: #dc3545 !important;
            box-shadow: none !important;
        }

        input.v-success,
        select.v-success,
        textarea.v-success {
            border-color: #198754 !important;
        }

        .position-relative .v-error {
            margin-top: 8px;
        }

        .required {
            color: #dc3545;
        }
  .tags-input-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            padding: 0.5rem;
            border: 1px solid #ced4da;
            border-radius: 0.375rem;
        }

        .tag {
            background-color: #00aaff;
            color: #fff;
            border-radius: 0.375rem;
            padding: 0.2rem 0.5rem;
            font-size: 0.875rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin: 2px !important
        }

        .tag .remove-tag {
            cursor: pointer;
        }

        .bootstrap-tagsinput {
            display: block !important;
        }
