/* assets/css/style.css — MOAC Event System — Skydash-inspired Layout */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Sidebar — Bright Emerald Green (MyEye-style) */
    --sidebar-bg:          linear-gradient(165deg, #10b981 0%, #059669 45%, #047857 80%, #065f46 100%);
    --sidebar-hover:       rgba(255,255,255,0.14);
    --sidebar-active-bg:   #f0fdf4;
    --sidebar-active-text: #059669;
    --sidebar-text:        rgba(255,255,255,0.90);
    --sidebar-text-active: #059669;
    --sidebar-width:       220px;

    /* Brand / Primary — Emerald */
    --primary:         #10b981;
    --primary-light:   #34d399;
    --primary-glow:    rgba(16,185,129,0.28);
    --primary-hover:   #059669;

    /* Accent colors for stat cards */
    --card-blue:       #3b82f6;
    --card-blue-bg:    #eff6ff;
    --card-purple:     #8b5cf6;
    --card-purple-bg:  #f5f3ff;
    --card-coral:      #ef4444;
    --card-coral-bg:   #fef2f2;
    --card-teal:       #06b6d4;
    --card-teal-bg:    #ecfeff;

    /* Neutrals & Soft Mint Background */
    --bg:              #f0fdf4;
    --surface:         #ffffff;
    --border:          #d1fae5;
    --text-primary:    #0f172a;
    --text-muted:      #64748b;
    --text-light:      #94a3b8;

    --success:         #10b981;
    --success-glow:    rgba(16,185,129,0.2);
    --danger:          #ef4444;
    --danger-glow:     rgba(239,68,68,0.2);
    --warning:         #f59e0b;
    --warning-glow:    rgba(245,158,11,0.2);

    --card-border:     #d1fae5;
    --card-bg:         #ffffff;
    --card-glow:       rgba(16,185,129,0.06);
    --secondary:       #64748b;

    --radius-xs:       6px;
    --radius-sm:       10px;
    --radius-md:       14px;
    --radius-lg:       20px;
    --transition:      all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur:      blur(12px);
}

/* ─── Reset ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; }
body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #f0fdf4 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.55;
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f1f8; }
::-webkit-scrollbar-thumb { background: #c8cbde; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0a4c0; }

/* ─── APP LAYOUT ──────────────────────────────────────────
   Sidebar (fixed left) + main-content-wrapper (scrollable)
   ──────────────────────────────────────────────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ─── SIDEBAR (Eyesoft Floating Card Layout) ───────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 16px; 
    left: 16px; 
    bottom: 16px;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.32);
}

/* Subtle glow overlays only — no patterns */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 85% 12%, rgba(255,255,255,0.16) 0%, transparent 38%),
        radial-gradient(circle at 15% 80%, rgba(255,255,255,0.10) 0%, transparent 40%);
    pointer-events: none;
    border-radius: 26px;
    z-index: 0;
}

.sidebar-header {
    padding: 1.4rem 1.25rem 1rem 1.25rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.sidebar-brand {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand .brand-icon {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sidebar-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand .brand-title {
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.sidebar-brand .brand-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.sidebar-toggle-card {
    margin: 0 1.25rem 1rem 1.25rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.switch-toggle input { opacity: 0; width: 0; height: 0; }

.slider-round {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.4);
    transition: .4s;
    border-radius: 20px;
}

.slider-round:before {
    position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px;
    background-color: #ffffff;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-round {
    background-color: rgba(255,255,255,0.6);
}

input:checked + .slider-round:before {
    transform: translateX(16px);
}

/* Sidebar Menu List & Cutout Active Item */
.sidebar-menu {
    padding: 0.5rem 0 0.5rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
    z-index: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 25px 0 0 25px;
    transition: var(--transition);
    position: relative;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sidebar-link.active {
    background: var(--bg);
    color: #1d4ed8;
    font-weight: 700;
    border-radius: 25px 0 0 25px;
    box-shadow: -3px 4px 12px rgba(0,0,0,0.06);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    top: -16px;
    right: 0;
    width: 16px;
    height: 16px;
    background: transparent;
    border-bottom-right-radius: 16px;
    box-shadow: 6px 6px 0 6px var(--bg);
    pointer-events: none;
}

.sidebar-link.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: 0;
    width: 16px;
    height: 16px;
    background: transparent;
    border-top-right-radius: 16px;
    box-shadow: 6px -6px 0 6px var(--bg);
    pointer-events: none;
}

.sidebar-link svg { flex-shrink: 0; }

.sidebar-footer {
    padding: 1.25rem 1.25rem 1.5rem 1.25rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: var(--transition);
}

.sidebar-logout:hover { color: #fca5a5; }

.sidebar-copyright {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* ─── MAIN CONTENT WRAPPER ──────────────────────────────── */
.main-content-wrapper {
    margin-left: calc(var(--sidebar-width) + 16px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - (var(--sidebar-width) + 16px));
}

/* ─── FOOTER STYLING ──────────────────────────────────────── */
.footer {
    background: transparent !important;
    padding: 1.25rem 0 1.5rem 0 !important;
    text-align: center !important;
    margin-top: auto !important;
    border: none !important;
    box-shadow: none !important;
}

.footer p {
    color: #64748b !important;
    margin: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

.top-bar {
    height: 48px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 1.5rem 0 1.5rem;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.top-bar-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* ─── PAGE CONTENT AREA ──────────────────────────────────── */
.page-content {
    padding: 0.75rem 1.25rem 1.5rem 1.25rem;
    flex-grow: 1;
}

/* ─── WELCOME BANNER ─────────────────────────────────────── */
.welcome-banner {
    background: linear-gradient(120deg, #f0f3ff 0%, #e9ecff 60%, #f5f0ff 100%);
    border: 1px solid #dde1f8;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.welcome-text h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

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

/* ─── STAT CARDS (Colored) ───────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.stat-card-v2 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 2px 8px rgba(30,35,70,0.04);
    transition: var(--transition);
}

.stat-card-v2:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,35,70,0.08); }

.stat-icon-v2 {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.stat-icon-v2.blue  { background: var(--card-blue-bg);   color: var(--card-blue); }
.stat-icon-v2.purple{ background: var(--card-purple-bg);  color: var(--card-purple); }
.stat-icon-v2.coral { background: var(--card-coral-bg);   color: var(--card-coral); }
.stat-icon-v2.teal  { background: var(--card-teal-bg);    color: var(--card-teal); }

.stat-meta .stat-val {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-meta .stat-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ─── CONTENT CARDS ──────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(20,25,60,0.04);
    overflow: hidden;
    width: 100%;
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.card-body {
    padding: 1.25rem 1.5rem;
}

/* Legacy glass-card compat */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(30,35,70,0.04);
    padding: 1.1rem 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card.hover-scale:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,35,70,0.08); }

/* ─── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
    color: #0f172a;
}
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

.gradient-text {
    background: linear-gradient(90deg, var(--primary-light), #7c5cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

/* ─── SECTION TITLE ──────────────────────────────────────── */
.section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px; height: 18px;
    background: var(--primary-light);
    border-radius: 3px;
    display: inline-block;
}

/* ─── GRIDS ──────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .stat-grid { grid-template-columns: 1fr; }
    .sidebar { width: 60px; }
    .sidebar-brand span, .sidebar-section-label, .sidebar-link span,
    .sidebar-user-info, .sidebar-logout span { display: none; }
    .main-content-wrapper { margin-left: 60px; width: calc(100% - 60px); }
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 3px 10px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 5px 16px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0f2fa;
    border-color: var(--border);
    color: var(--text-primary);
}
.btn-secondary:hover { background: #e4e7f5; transform: translateY(-1px); }

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 3px 10px var(--danger-glow);
}
.btn-danger:hover { background: #d95858; transform: translateY(-1px); }

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 3px 10px var(--success-glow);
}
.btn-success:hover { background: #178f72; transform: translateY(-1px); }

.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.85rem; font-weight: 700; border-radius: var(--radius-xs); }
.btn-xs { padding: 0.35rem 0.75rem; font-size: 0.8rem; font-weight: 700; border-radius: 6px; }

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-success { background: #d1faed; color: #0d7a58; border: 1px solid #a3f0d0; }
.badge-danger  { background: #fde8e8; color: #b93636; border: 1px solid #f8b8b8; }
.badge-warning { background: #fdf1d8; color: #976009; border: 1px solid #f8d98e; }
.badge-info    { background: #e4eaff; color: #3b5cc8; border: 1px solid #bcc9f5; }

/* ─── FORMS ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.55rem 0.85rem;
    background: #f7f8fd;
    border: 1px solid #d5d9ee;
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 0.88rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(90,96,200,0.12);
    background: #ffffff;
}
select.form-control option { background: #ffffff; color: var(--text-primary); }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ─── TABLES ─────────────────────────────────────────────── */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.95rem; }

.table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border);
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f7f8fd; color: var(--text-primary); }

/* ─── EVENT CARD ─────────────────────────────────────────── */
.event-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-title { font-size: 1rem; margin-bottom: 0.3rem; color: var(--text-primary); font-weight: 700; }

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.event-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }

.event-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.85rem; flex-grow: 1; }

/* ─── STAT MINI GRID (inside event card) ─────────────────── */
.mini-stat-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 0.5rem;
    background: #f7f8fd;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    margin-bottom: 0.85rem;
}
.mini-stat { text-align: center; }
.mini-stat .val { font-size: 1.15rem; font-weight: 800; }
.mini-stat .lbl { font-size: 0.63rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mini-stat + .mini-stat { border-left: 1px solid var(--border); }

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.progress-container { margin-bottom: 0.85rem; }
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}
.progress-bar-bg { background: #e8eaf2; height: 6px; border-radius: 10px; overflow: hidden; }
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c8b400, #a89800);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

/* ─── RSVP RADIO CARDS ──────────────────────────────────── */
.rsvp-options {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    margin-top: 0.35rem;
}

.rsvp-option-card {
    cursor: pointer;
    position: relative;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 1.1rem 0.75rem;
    text-align: center;
    transition: var(--transition);
    user-select: none;
}

.rsvp-option-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.rsvp-option-content { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.rsvp-option-content .icon {
    font-size: 1.4rem; font-weight: 800;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #f0f2fa;
    transition: var(--transition);
}
.rsvp-option-content .label { font-weight: 700; font-size: 0.88rem; color: var(--text-muted); transition: var(--transition); }
.rsvp-option-card:hover { border-color: #b8bde8; background: #f7f8fd; }
.rsvp-option-card.hadir input[type="radio"]:checked + .rsvp-option-content .icon { background: var(--success); color: white; }
.rsvp-option-card.hadir input[type="radio"]:checked + .rsvp-option-content .label { color: #0d7a58; }
.rsvp-option-card.tidak-hadir input[type="radio"]:checked + .rsvp-option-content .icon { background: var(--danger); color: white; }
.rsvp-option-card.tidak-hadir input[type="radio"]:checked + .rsvp-option-content .label { color: #b93636; }
.rsvp-option-card.active-checked.hadir { border-color: var(--success); background: #edfaf5; }
.rsvp-option-card.active-checked.tidak-hadir { border-color: var(--danger); background: #fef2f2; }

/* ─── GUEST ROWS ──────────────────────────────────────────── */
.guest-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    align-items: flex-end;
    background: #f7f8fd;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    animation: slideDown 0.25s ease-out;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── ALERTS ─────────────────────────────────────────────── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.88rem;
}
.alert-success { background: #d1faed; border: 1px solid #a3f0d0; color: #0d7a58; }
.alert-danger  { background: #fde8e8; border: 1px solid #f8b8b8; color: #b93636; }

/* ─── LANGUAGE SWITCHER ──────────────────────────────────── */
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    background: #f0f2fa;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}
.lang-switch-btn:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-1px); }

/* ─── USER PROFILE BADGE (legacy compat) ─────────────────── */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f0f2fa;
    border: 1px solid var(--border);
    padding: 0.35rem 0.85rem;
    border-radius: 25px;
}

.user-avatar-initial {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

/* ─── LOGIN PAGE (MODERN GLASSMORPHIC WITH 3D MOAC BG) ─── */
.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.50) 0%, rgba(6, 78, 59, 0.55) 50%, rgba(4, 47, 38, 0.65) 100%),
                url('../images/moac_bg.png') center/cover no-repeat fixed;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.22) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.login-box {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 28px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38), 0 0 35px rgba(16, 185, 129, 0.2) !important;
    padding: 2.5rem 2.2rem !important;
    width: 100% !important;
    max-width: 440px !important;
    position: relative !important;
    z-index: 10 !important;
    animation: loginCardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

.btn-login-submit {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-login-submit:hover svg {
    transform: translateX(4px);
}

.btn-login-submit svg {
    transition: transform 0.25s ease;
}

.btn-login-submit:active {
    transform: translateY(1px);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 0.85rem 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* ─── MODALS ─────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30,35,70,0.4);
    backdrop-filter: blur(6px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
    opacity: 0; pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 90%; max-width: 520px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(30,35,70,0.15);
    transform: scale(0.92);
    transition: var(--transition);
}
.modal-overlay.active .modal-content { transform: scale(1); }

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

.modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    padding: 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}
.modal-close:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #059669;
    color: #ffffff;
    transform: translateY(-3px) scale(1.14) rotate(-12deg);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.38);
}
.modal-close:active {
    transform: translateY(0) scale(0.9) rotate(0deg);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
.modal-close svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}
.modal-close:hover svg {
    transform: scale(1.15);
}

/* ─── PRINT ──────────────────────────────────────────────── */
@media print {
    body { background: white !important; }
    .sidebar, .top-bar, .btn, .no-print, .badge { display: none !important; }
    .main-content-wrapper { margin-left: 0 !important; width: 100% !important; }
    .page-content { padding: 0 !important; }
    .glass-card, .card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .table { color: black !important; }
    .table th { background: #e8eaf2 !important; color: black !important; border-bottom: 2px solid black !important; }
    .table td { color: black !important; border-bottom: 1px solid #d0d4e8 !important; }
    h1, h2, h3, .gradient-text { color: black !important; background: none !important; -webkit-text-fill-color: initial !important; }
}

/* ─── MISC HELPERS ───────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* navbar legacy compat */
.navbar {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(30,35,70,0.04);
}
.navbar-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 1.5rem;
}
.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800; font-size: 1.2rem;
    text-decoration: none; color: var(--text-primary);
    display: flex; align-items: center; gap: 0.5rem;
}
.navbar-menu { display: flex; gap: 1rem; align-items: center; }
.navbar-link {
    color: var(--text-muted); text-decoration: none;
    font-weight: 500; font-size: 0.88rem;
    padding: 0.4rem 0.8rem; border-radius: var(--radius-xs);
    transition: var(--transition);
}
.navbar-link:hover, .navbar-link.active { color: var(--primary); background: rgba(59,63,124,0.07); }

/* stat-card legacy compat */
.stat-card { display: flex; align-items: center; gap: 1rem; }
.stat-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
}
.stat-icon.primary { background: var(--card-blue-bg); color: var(--card-blue); }
.stat-icon.success { background: var(--card-teal-bg); color: var(--card-teal); }
.stat-icon.danger  { background: var(--card-coral-bg); color: var(--card-coral); }
.stat-icon.warning { background: #fff7e6; color: var(--warning); }
.stat-value { font-size: 1.55rem; font-weight: 800; line-height: 1.1; color: var(--text-primary); }
.stat-label { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── DASHBOARD CAROUSEL SLIDER ───────────────────────────── */
.dashboard-carousel-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    height: 265px;
    max-height: 265px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 265px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    max-height: 265px;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    max-height: 265px;
    flex-shrink: 0;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 265px;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem 1.25rem 1rem 1.25rem;
    background: linear-gradient(to top, rgba(6, 40, 25, 0.88) 0%, rgba(6, 40, 25, 0.45) 60%, transparent 100%);
    color: #ffffff;
    z-index: 3;
}

.carousel-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.35rem;
    backdrop-filter: blur(4px);
}

.carousel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.15rem 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.carousel-subtitle {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* Dots Navigation */
.carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    display: flex;
    gap: 0.4rem;
    z-index: 4;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: #10b981;
    width: 22px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(16,185,129,0.8);
}

/* Prev/Next Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    opacity: 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dashboard-carousel-card:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: #ffffff;
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev { left: 0.75rem; }
.carousel-btn-next { right: 0.75rem; }

/* ─── MOBILE BOTTOM NAVIGATION DOCK (NATIVE APP DOCK) ─────── */
/* ─── MOBILE BOTTOM NAVIGATION DOCK (UNIVERSAL PHONE ADAPTATION) ─── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    z-index: 9999;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 4px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0px;
    min-width: 0;
    color: #64748b;
    text-decoration: none;
    padding: 4px 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    border-radius: 12px;
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-item.active {
    color: #10b981;
}

.mobile-nav-item.active svg {
    transform: scale(1.18);
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

.mobile-nav-item span {
    font-size: clamp(0.60rem, 2.3vw, 0.68rem);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin-top: 3px;
    display: block;
}

/* ─── MOBILE PHONE VIEWPORT (MAX-WIDTH: 768PX) ─────────────── */
@media (max-width: 768px) {
    /* Mobile Login Page Optimization (Full Screen Edge-to-Edge Cover like PC) */
    .login-wrapper {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        padding: 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .login-box {
        padding: 1.75rem 1.25rem !important;
        border-radius: 24px !important;
        background: rgba(255, 255, 255, 0.90) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45) !important;
    }

    /* Hide desktop sidebar on mobile */
    .sidebar {
        display: none !important;
    }
    
    /* Reset main content wrapper margin & add space at bottom for mobile nav dock */
    .main-content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        padding-bottom: 90px !important;
    }
    
    /* Show mobile bottom nav dock */
    .mobile-bottom-nav {
        display: block !important;
    }

    /* Page container padding on phone */
    .page-content, .container {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        padding-top: 0.85rem !important;
    }

    /* Stat Cards 2-column grid layout for smartphones */
    .stat-grid, .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
    
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    /* Prevent mobile browser auto-zoom on input focus */
    .form-control, select.form-control, input.form-control {
        font-size: 16px !important;
        min-height: 44px !important;
    }

    /* Topbar compact design for mobile */
    .top-bar {
        padding: 0.65rem 0.85rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 16px !important;
    }

    /* Dashboard welcome banner responsiveness */
    .page-content > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        padding: 1rem 1.1rem !important;
    }

    /* Carousel height tuning for mobile phone screens */
    .dashboard-carousel-card, .carousel-container, .carousel-slide, .carousel-slide img {
        height: 200px !important;
        max-height: 200px !important;
    }
    .carousel-overlay {
        padding: 0.85rem !important;
    }
    .carousel-title {
        font-size: 0.9rem !important;
    }
    .carousel-subtitle {
        font-size: 0.72rem !important;
    }

    /* Mobile Optimized Floating Sheet Modals (Pushed up above bottom dock) */
    .modal-overlay {
        z-index: 2500 !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0.5rem 0.65rem 80px 0.65rem !important;
    }
    
    .modal-content {
        width: 100% !important;
        max-width: 520px !important;
        border-radius: 24px !important;
        max-height: calc(100vh - 105px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translateY(30px) scale(0.96) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
        box-shadow: 0 15px 45px rgba(15, 23, 42, 0.3) !important;
        padding: 1.25rem 1.1rem 1.5rem 1.1rem !important;
        margin-bottom: 0 !important;
    }

    .modal-header {
        position: sticky !important;
        top: -1.25rem !important;
        background: #ffffff !important;
        z-index: 10 !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.75rem !important;
        margin-top: -0.25rem !important;
        border-bottom: 1px solid var(--border) !important;
    }

    .modal-content::before {
        content: '';
        display: block;
        width: 38px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 4px;
        margin: 0 auto 0.75rem auto;
    }
    
    .modal-overlay.active .modal-content {
        transform: translateY(0) scale(1) !important;
    }

    /* Modal Footer Buttons Equal Flex Alignment on All Phone Screens */
    .modal-content div[style*="justify-content:flex-end"],
    .modal-content div[style*="justify-content: flex-end"],
    .modal-content form > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 0.5rem !important;
        margin-top: 1.25rem !important;
        justify-content: space-between !important;
    }

    .modal-content div[style*="justify-content:flex-end"] .btn,
    .modal-content div[style*="justify-content: flex-end"] .btn,
    .modal-content form > div:last-child .btn,
    .modal-content form > div:last-child a.btn {
        flex: 1 1 0px !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        text-align: center !important;
        justify-content: center !important;
        font-size: clamp(0.75rem, 3vw, 0.85rem) !important;
        padding: 0.65rem 0.4rem !important;
        box-sizing: border-box !important;
    }

    /* Guest Rows Responsive Stacking on Mobile */
    .guest-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
        background: #f8fafc !important;
        padding: 0.75rem !important;
        border-radius: 12px !important;
        border: 1px solid var(--border) !important;
        margin-bottom: 0.65rem !important;
    }

    .guest-row .remove-guest-btn {
        width: 100% !important;
        height: 38px !important;
        margin-top: 0.25rem !important;
    }

    /* Table horizontal touch scrolling */
    .table-responsive, div[style*="overflow-x:auto"], div[style*="overflow-x: auto"] {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 14px !important;
    }

    .table {
        min-width: 560px !important;
    }

    /* Action buttons touch target size (44px min touch target) */
    .btn-sm, .btn-xs {
        min-height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.82rem !important;
        padding: 0.4rem 0.85rem !important;
    }
}

