/* ================================================================
   CMS-Template — Admin Dashboard Styles
   Premium dark theme with glassmorphism elements
   ================================================================ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
    --bg-primary: #f0ede2;
    --bg-secondary: #ece8d9;
    --bg-card: #fffdf5;
    --bg-card-hover: #fffefc;
    --bg-input: #ffffff;
    --bg-input-focus: #f6fdff;

    --border-color: #d4c4a0;
    --border-focus: #81a9e6;
    --border-subtle: #ebddbc;

    --text-primary: #363738;
    --text-secondary: #393b42;
    --text-muted: #34394d;
    --text-heading: #242525;

    --accent: #81a9e6;
    --accent-hover: #9dc4ff;
    --accent-glow: rgba(99, 184, 241, 0.25);

    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-hover: #dc2626;
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.12);

    --sidebar-width: 260px;
    --navbar-height: 60px;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #fffdf5 0%, #f5fbff 50%, #fffdf5 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}
.login-header p { color: var(--text-secondary); font-size: 0.9rem; }

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ================================================================
   TOP NAVBAR
   ================================================================ */
.top-navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.418);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 100;
    transition: left var(--transition);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.75rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.sidebar-toggle:hover { background: var(--bg-card); }

.navbar-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
    flex: 1;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-user {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.btn-logout {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-logout:hover {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger);
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
    overflow-y: auto;
}

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

.sidebar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0.3rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
}

.nav-section-title {
    padding: 1rem 1.5rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    border-left: 3px solid transparent;
    transition: all var(--transition);
}
.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}
.nav-link.active {
    color: var(--accent);
    background: var(--accent-glow);
    border-left-color: var(--accent);
    font-weight: 500;
}
.nav-link i { width: 20px; text-align: center; font-size: 0.95rem; }

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    padding: 2rem;
    min-height: calc(100vh - var(--navbar-height));
    transition: margin-left var(--transition);
}

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.5;
    border: 1px solid transparent;
}
.alert-error {
    background: var(--danger-bg);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.25);
}
.alert-info {
    background: var(--info-bg);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.25);
}
.alert-success {
    background: var(--success-bg);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.25);
}
.alert-warning {
    background: var(--warning-bg);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.25);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
    color: #fff;
    transform: translateY(-1px);
}

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

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
}

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

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
}

.btn-full { width: 100%; justify-content: center; }

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* ================================================================
   FORMS
   ================================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group label small {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--border-focus);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    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='%239ca3b4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.new-category-input {
    display: none;
    margin-top: 0.5rem;
}

.new-category-input.visible {
    display: flex;
    gap: 0.5rem;
}

/* ================================================================
   CARDS / PANELS
   ================================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-md);
}

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

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

/* ================================================================
   OVERVIEW DASHBOARD
   ================================================================ */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-heading);
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Analytics section */
.analytics-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.analytics-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
}

.analytics-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.range-selector {
    display: flex;
    gap: 0.35rem;
}

.range-btn {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
}

.range-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.range-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.chart-container {
    position: relative;
    height: 200px;
}

/* ================================================================
   IMAGE UPLOAD
   ================================================================ */
.image-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
}

.image-upload-zone:hover,
.image-upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.image-upload-zone input[type="file"] {
    display: none;
}

.image-upload-zone .upload-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.image-upload-zone .upload-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-secondary);
}

.image-upload-zone .preview-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.image-upload-zone .upload-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.3rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.image-upload-zone:hover .upload-actions {
    opacity: 1;
}

.upload-actions .btn-icon {
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
}

.upload-actions .btn-icon:hover {
    background: var(--danger);
}

/* Multi-image grid */
.multi-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.multi-image-grid .image-upload-zone {
    min-height: 120px;
    padding: 1rem;
}

.multi-image-grid .upload-placeholder i {
    font-size: 1.5rem;
}

/* ================================================================
   ENTRY LIST (existing entries)
   ================================================================ */
.entry-list {
    margin-top: 1.5rem;
}

.entry-list h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.entry-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    transition: all var(--transition);
}

.entry-item:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.entry-item .entry-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-input);
}

.entry-item .entry-info {
    flex: 1;
    min-width: 0;
}

.entry-item .entry-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-item .entry-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.entry-item .entry-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* ================================================================
   OPENING HOURS TABLE
   ================================================================ */
.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table th,
.hours-table td {
    padding: 0.75rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.hours-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hours-table td .day-name {
    font-weight: 500;
    color: var(--text-heading);
    min-width: 100px;
}

.hours-table input[type="time"] {
    width: 120px;
    padding: 0.4rem 0.6rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.hours-table input[type="time"]:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.hours-table input[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

.break-row {
    display: none;
}

.break-row.visible {
    display: table-row;
}

.break-toggle {
    font-size: 0.78rem;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    padding: 0.2rem 0;
}

.break-toggle:hover {
    color: var(--accent-hover);
}

/* ================================================================
   MODAL / DIALOG
   ================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem;
    max-width: 440px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
}

.modal-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.85rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }

/* ================================================================
   SECTION HEADER
   ================================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
}

/* Sorting controls */
.sort-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.sort-controls label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sort-controls select {
    padding: 0.35rem 0.7rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.82rem;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ================================================================
   BRAND PREVIEW BOX (Admin list)
   ================================================================ */
.entry-item--brand {
    align-items: stretch;
}

.brand-preview-box {
    position: relative;
    width: 120px;
    min-height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.brand-preview-banner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-input);
}

.brand-preview-banner--empty {
    background: linear-gradient(135deg, var(--bg-input) 0%, var(--border-color) 100%);
}

.brand-preview-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    padding: 4px;
}

.brand-preview-logo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.15);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-toggle {
        display: block;
    }
    .sidebar-close {
        display: block;
    }
    .top-navbar {
        left: 0;
    }
    .main-content {
        margin-left: 0;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .multi-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 1.25rem;
    }
    .card {
        padding: 1.1rem;
    }
    .overview-grid {
        grid-template-columns: 1fr 1fr;
    }
    .multi-image-grid {
        grid-template-columns: 1fr 1fr;
    }
    .entry-item {
        flex-wrap: wrap;
    }
    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .navbar-user {
        display: none;
    }
    .login-card {
        padding: 1.75rem;
    }
}
