/* =====================================================
   EVENT PHOTO DELIVERY - ADMIN PANEL STYLES
   Clean, consolidated CSS with global text visibility
   ===================================================== */

:root {
    --bg: #f0f4f8;
    --bg-gradient: linear-gradient(145deg, #0f2b3d 0%, #1b4f6e 100%);
    --panel: rgba(255, 255, 255, 0.98);
    --panel-solid: #ffffff;
    --line: rgba(0, 0, 0, 0.08);
    --text: #0f172a;
    --text-secondary: #334155;
    --muted: #475569;
    --accent: #2c7da0;
    --accent-strong: #1f5068;
    --accent-soft: rgba(44, 125, 160, 0.08);
    --success: #2e7d64;
    --danger: #c94f4f;
    --shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 32px -12px rgba(27, 79, 110, 0.2);
    --sidebar-bg: linear-gradient(165deg, #0b2b38 0%, #123e4e 100%);
}

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

/* =====================================================
   GLOBAL TEXT VISIBILITY - FORCES READABLE COLORS
   ===================================================== */
body {
    background: #f1f5f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.5;
}

.main-content {
    background: transparent;
    padding: 0;
}

h1, h2, h3 {
    color: #0f172a !important;
    font-weight: 700;
}

h4, h5, h6 {
    color: #0f172a !important;
    font-weight: 700;
}

/* ====================================================
   LOGOUT BUTTON FIX
   ==================================================== */
#logoutBtn {
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    padding: 10px 20px !important;
    border-radius: 10px !important;
    border: none !important;

    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure text inside is visible */
#logoutBtn::before,
#logoutBtn::after {
    display: none !important;
}

#logoutBtn:hover {
    background: #dc2626 !important;
}

body, p, span, label {
    color: #1e293b !important;
}

/* =====================================================
   TABLE FIX (CLEAR VISIBILITY)
   ===================================================== */
table {
    background: white;
}

thead {
    background: #f8fafc;
}

th {
    color: #475569;
    font-weight: 600;
}

td {
    color: #1e293b;
}

/* remove transparency */
tr {
    background: white !important;
}

tr:hover {
    background: #f1f5f9;
}

/* =====================================================
   BUTTON FIX (EDIT BUTTON ISSUE)
   ===================================================== */
.edit-btn,
.btn-outline,
button {
    background: white !important;
    color: #2563eb !important;
    border: 1px solid #2563eb !important;
    opacity: 1 !important;
}

/* HOVER */
.edit-btn:hover,
.btn-outline:hover {
    background: #2563eb !important;
    color: white !important;
}

/* IF STILL ISSUE → FORCE TEXT */
.edit-btn span {
    color: inherit !important;
}

/* PRIMARY BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    border: none;
}

/* FIX LOGOUT BUTTON */
#logoutBtn,
.logout-btn,
button.logout-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626); /* red gradient */
    color: white !important;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover effect */
#logoutBtn:hover,
.logout-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* FIX EMPTY BUTTON ISSUE */
#logoutBtn *,
.logout-btn * {
    color: white !important;
}

/* If button still looks blank */
button {
    color: inherit;
}

/* =====================================================
   INPUT BOX FIX
   ===================================================== */
input, select {
    background: white;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

/* =====================================================
   CLEAN WHITE CARDS (NO GLASS)
   ===================================================== */
.card,
.glass-card {
    background: #ffffff !important;
    opacity: 1 !important;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

small,
.helper-text,
.field-hint,
.form-label,
.section-label {
    color: var(--muted) !important;
}

/* =====================================================
   LAYOUT STRUCTURE
   ===================================================== */
.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 20px;
    transition: all 0.25s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 20px 12px;
    position: sticky;
    top: 0;
    align-self: start;
    border-radius: 0;
    box-shadow: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 1.5rem;
}

.sidebar-brand strong {
    display: block;
    color: white;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
}

.sidebar-brand span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

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

.nav-link {
    display: block;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 12px;
    color: #334155;
    font-weight: 600;
    background: transparent;
    transition: all 0.25s ease;
    text-decoration: none;
}

/* HOVER EFFECT (soft 3D) */
.nav-link:hover {
    background: linear-gradient(145deg, #e2e8f0, #f8fafc);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.08),
                -2px -2px 6px rgba(255,255,255,0.6);
    transform: translateY(-1px);
}

/* ACTIVE BUTTON */
.nav-link.active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */
.admin-main {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 20px;
    background: transparent;
    padding: 20px 24px 24px 24px;
    overflow-x: hidden;
}

/* =====================================================
   HEADER CARD (KEEP GLASS BUT IMPROVE)
   ===================================================== */
.header-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* =====================================================
   TOP HEADER (KEEP GLASS ONLY HERE)
   ===================================================== */
.topbar {
    border-radius: 18px;
    padding: 20px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    color: #1e293b !important;
    margin: 0;
}

.user-chip {
    padding: 8px 20px;
    border-radius: 40px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    font-size: 0.85rem;
}

/* =====================================================
   HERO PANEL
   ===================================================== */
.hero-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 32px 36px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: "✨";
    position: absolute;
    right: -20px;
    top: -20px;
    font-size: 120px;
    opacity: 0.04;
    pointer-events: none;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-strong);
    margin-bottom: 12px;
}

.hero-panel h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.hero-copy {
    color: #475569;
    max-width: 520px;
    line-height: 1.5;
}

.hero-assets img {
    max-width: 190px;
    max-height: 75px;
    object-fit: contain;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 28px;
    border: 1px solid #e2edf2;
    box-shadow: 0 6px 14px rgba(0,0,0,0.02);
}

/* =====================================================
   STATS GRID
   ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.stat-card {
    padding: 26px 22px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.stat-card span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-strong);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.stat-card strong {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin: 12px 0 8px 0;
    color: #0b2b38;
    letter-spacing: -1px;
    line-height: 1.2;
}

.stat-card p {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 450;
}

.stat-card:hover {
    transform: translateY(-6px);
}

/* =====================================================
   CONTENT GRID & PANELS
   ===================================================== */
.content-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 24px;
}

.panel-card {
    padding: 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.panel-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 4px;
    color: white;
}

canvas {
    max-height: 260px;
    width: 100%;
    height: 260px;
    margin-top: 8px;
    display: block;
}

/* =====================================================
   ASSET PREVIEW GRID
   ===================================================== */
.asset-preview-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-asset {
    background: #fafcff;
    border-radius: 24px;
    padding: 16px;
    border: 1px solid #eef2f8;
    transition: all 0.2s;
}

.mini-asset span {
    font-weight: 600;
    color: #1f5068;
    display: block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    letter-spacing: -0.2px;
}

.mini-asset img {
    width: 100%;
    max-height: 110px;
    object-fit: contain;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2edf2;
    padding: 8px;
    transition: transform 0.2s;
}

.mini-asset img:hover {
    transform: scale(1.02);
}

.mini-asset.empty {
    background: #f8fafc;
    border: 2px dashed #cbdde6;
    color: #5a6e7c;
    text-align: center;
    padding: 28px;
    border-radius: 24px;
}

small {
    display: block;
    margin-top: 12px;
    color: var(--accent-strong);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

/* =====================================================
   INPUT FIELDS - ENSURES VISIBILITY
   ===================================================== */
input, select, textarea {
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 12px 18px;
    font-family: inherit;
    transition: all 0.2s;
    font-size: 14px;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(44,125,160,0.1);
}

input[type="file"] {
    padding: 10px 14px;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--accent);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--accent-strong);
}

input[type="file"]::-moz-file-upload-button {
    background: var(--accent);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.primary-btn,
.secondary-btn,
button,
.btn {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border: none;
    color: white;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 14px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -10px rgba(37, 99, 235, 0.3);
}

.secondary-btn {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white !important;
}

/* =====================================================
   FORMS & UPLOADS
   ===================================================== */
.upload-card .upload-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
}

.upload-form,
.field-group {
    display: grid;
    gap: 12px;
}

.upload-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.field-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted) !important;
    margin-bottom: 6px;
}

.field-hint {
    color: var(--muted) !important;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.5;
}

.field-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    position: relative;
}

.field-divider::before,
.field-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.divider-text {
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   FLASH MESSAGES
   ===================================================== */
.flash-stack {
    display: grid;
    gap: 12px;
}

.flash-message {
    padding: 16px 20px;
    border-radius: 24px;
    font-weight: 500;
}

.flash-message.success {
    background: #e6f4ef;
    border-left: 5px solid var(--success);
    color: #1e5a4a;
}

.flash-message.error {
    background: #fef2f2;
    border-left: 5px solid var(--danger);
    color: #9b2c2c;
}

/* =====================================================
   RESPONSE BOX & CODE BLOCKS
   ===================================================== */
.response-box,
.code-box,
pre {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-radius: 20px;
    border: 1px solid #e2edf2;
    padding: 18px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    overflow-x: auto;
}

.response-box.compact {
    min-height: 180px;
}

/* =====================================================
   USER CARDS
   ===================================================== */
.user-card {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: #f7fafc;
    border: 2px solid var(--line);
}

.user-card-media img {
    height: 110px;
    border-radius: 12px;
}

.user-card-body {
    display: grid;
    gap: 6px;
    align-content: center;
    font-weight: 500;
}

.user-card-body strong {
    font-size: 1.1rem;
    color: var(--text);
}

.user-card-body span {
    color: var(--muted);
    font-size: 0.9rem;
}

/* =====================================================
   MISC UTILITIES
   ===================================================== */
.hidden {
    display: none !important;
}

.pill {
    padding: 8px 20px;
    border-radius: 40px;
    background: #f7fafc;
    color: var(--muted);
    border: 1.5px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.85rem;
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trigger-card {
    max-width: 860px;
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-body-shell {
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--bg);
}

.login-page {
    width: 100%;
    max-width: 480px;
}

.login-card {
    padding: 32px;
    border-radius: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.login-card .eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.login-card h1 {
    margin: 12px 0 8px;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a !important;
}

.hero-copy {
    color: var(--muted);
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

/* =====================================================
   MODAL STYLES
   ===================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    place-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: grid;
}

.modal-content {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid var(--line);
}

.modal-header h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
    color: #0f172a !important;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-soft);
}

.modal-body {
    padding: 24px;
}

.editor-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.editor-preview {
    background: #f7fafc;
    border-radius: 16px;
    border: 2px solid var(--line);
    overflow: hidden;
}

.editor-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.editor-controls {
    display: grid;
    gap: 16px;
}

.control-group {
    display: grid;
    gap: 6px;
}

.control-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--muted);
}

.size-display {
    padding: 12px 14px;
    background: #f7fafc;
    border: 2px solid var(--line);
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--accent-strong);
    font-weight: 600;
}

.editor-actions {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 2px solid var(--line);
    display: flex;
    justify-content: flex-end;
}

/* =====================================================
   HAMBURGER MENU BUTTON
   ===================================================== */
.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: var(--accent-soft);
}

.icon-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =====================================================
   DESKTOP SAFETY - ENSURE ORIGINAL LAYOUT PRESERVED
   ===================================================== */
@media (min-width: 769px) {
    .sidebar {
        position: sticky !important;
        left: 0 !important;
        top: 24px !important;
        height: calc(100vh - 48px) !important;
        width: auto !important;
        z-index: auto !important;
    }

    .sidebar-overlay {
        display: none !important;
    }

    .icon-btn.hamburger {
        display: none !important;
    }
}

/* =====================================================
   BASIC RESPONSIVE (Safe - No Layout Breaking)
   ===================================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }

    /* Layout changes */
    .admin-shell {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }

    .admin-main {
        padding: 12px 14px 20px 14px;
        gap: 14px;
    }

    /* Show hamburger on mobile */
    .icon-btn.hamburger {
        display: flex;
    }

    /* Sidebar hidden by default on mobile */
    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        border-radius: 0;
        transition: left 0.3s ease;
        box-shadow: none;
    }

    .sidebar.open {
        left: 0;
        box-shadow: 0 25px 40px -18px rgba(0, 0, 0, 0.35);
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

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

    /* Content area */
    .admin-main {
        gap: 16px;
    }

    .topbar {
        border-radius: 20px;
        padding: 16px 20px;
        flex-wrap: wrap;
    }

    .topbar > div:nth-child(2) {
        width: 100%;
        order: 3;
        margin-top: 8px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .user-chip {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    /* Stats grid - stack vertically */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .stat-card strong {
        font-size: 2.2rem;
    }

    /* Content grid - stack vertically */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .panel-card {
        padding: 20px;
        border-radius: 20px;
    }

    .panel-header h3 {
        font-size: 1.3rem;
    }

    /* Hero panel */
    .hero-panel {
        flex-direction: column;
        padding: 24px 20px;
        border-radius: 20px;
        gap: 20px;
    }

    .hero-panel h2 {
        font-size: 1.6rem;
    }

    .hero-assets img {
        max-width: 150px;
        max-height: 60px;
    }

    /* Glass cards */
    .glass-card {
        border-radius: 20px;
    }

    /* Upload layout */
    .upload-card .upload-layout {
        grid-template-columns: 1fr;
    }

    /* Modal adjustments */
    .modal-content {
        max-width: 100%;
        margin: 10px;
    }

    .editor-layout {
        grid-template-columns: 1fr;
    }

    /* Buttons */
    .primary-btn,
    .secondary-btn {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Canvas chart */
    canvas {
        max-height: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .admin-shell {
        padding: 0;
        gap: 10px;
    }

    .topbar {
        border-radius: 16px;
        padding: 14px 16px;
    }

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

    .hero-panel {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .hero-panel h2 {
        font-size: 1.4rem;
    }

    .hero-kicker {
        font-size: 10px;
    }

    .stat-card {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .stat-card strong {
        font-size: 1.8rem;
    }

    .panel-card {
        padding: 16px;
        border-radius: 16px;
    }

    .panel-header h3 {
        font-size: 1.1rem;
    }

    .glass-card {
        border-radius: 16px;
    }

    canvas {
        max-height: 200px;
        height: 200px;
    }
}

img {
    max-width: 100%;
    height: auto;
}

/* Day Events Styles */
.day-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.day-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.day-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.day-box h3 {
    margin: 0 0 16px 0;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.day-box .event-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.day-box .event-list li {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #4a9eff;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.day-box .event-list li:last-child {
    margin-bottom: 0;
}

.day-box .secondary-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
    margin-top: 12px;
}

.primary-btn {
    margin-bottom: 8px;
}