/* ===================================
   LAMIA CMS - Modern Admin Panel 2026
   Premium Design System
   =================================== */

/* CSS Custom Properties - Design Tokens */
:root {
    /* Primary Palette - Elegant Gold/Amber */
    --primary-50: #fef7ed;
    --primary-100: #fcecd3;
    --primary-200: #f8d5a5;
    --primary-300: #f3b86d;
    --primary-400: #ed9333;
    --primary-500: #e67e22;
    --primary-600: #d35f11;
    --primary-700: #af4711;
    --primary-800: #8c3916;
    --primary-900: #733115;

    /* Secondary - Deep Purple/Indigo */
    --secondary-50: #f5f3ff;
    --secondary-100: #ede9fe;
    --secondary-200: #ddd6fe;
    --secondary-300: #c4b5fd;
    --secondary-400: #a78bfa;
    --secondary-500: #8b5cf6;
    --secondary-600: #7c3aed;
    --secondary-700: #6d28d9;
    --secondary-800: #5b21b6;
    --secondary-900: #4c1d95;

    /* Neutral Slate */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    /* Semantic Colors */
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;

    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;

    --info-50: #eff6ff;
    --info-100: #dbeafe;
    --info-500: #3b82f6;
    --info-600: #2563eb;

    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --header-height: 70px;

    /* Shadows - Layered depth system */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Colored shadows for depth */
    --shadow-primary: 0 4px 14px 0 rgb(230 126 34 / 0.25);
    --shadow-secondary: 0 4px 14px 0 rgb(139 92 246 / 0.25);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 250ms var(--ease-out);
    --transition-slow: 350ms var(--ease-out);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
}

/* ===================================
   CSS RESET & BASE
   =================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--slate-800);
    background: linear-gradient(135deg, var(--slate-100) 0%, var(--slate-50) 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

.hidden {
    display: none !important;
}

/* ===================================
   LOGIN SCREEN
   =================================== */

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/lamia/assets/img/hero.jpg') center center / cover no-repeat;
    filter: blur(6px) brightness(0.35);
    transform: scale(1.05);
    z-index: 0;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 48px 40px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(255,255,255,0.1);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s var(--ease-out);
}

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

.login-logo {
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.login-logo img {
    max-width: 100px;
    height: auto;
}

.login-subtitle {
    text-align: center;
    color: var(--slate-500);
    font-size: 0.95rem;
    margin-bottom: 32px;
    font-weight: 500;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--slate-700);
}

.login-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--slate-50);
}

.login-form input:hover {
    border-color: var(--slate-300);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-50);
}

.error-message {
    color: var(--danger-600);
    font-size: 0.875rem;
    margin-top: 16px;
    text-align: center;
    padding: 12px;
    background: var(--danger-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--danger-100);
}

/* Login mobile responsive */
@media (max-width: 480px) {
    .login-screen {
        padding: 16px;
    }

    .login-container {
        padding: 32px 24px;
        border-radius: var(--radius-xl);
    }

    .login-logo img {
        max-width: 80px;
    }

    .login-subtitle {
        font-size: 0.875rem;
        margin-bottom: 24px;
    }

    .login-form input {
        padding: 12px 14px;
        font-size: 1rem;
    }

    .login-form .btn {
        padding: 14px;
    }
}

.error-message:empty {
    display: none;
}

.success-message {
    color: var(--success-700);
    font-size: 0.875rem;
    margin-top: 16px;
    text-align: center;
    padding: 12px;
    background: var(--success-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--success-100);
}

.success-message:empty {
    display: none;
}

.forgot-password-link {
    text-align: center;
    margin-top: 20px;
}

.forgot-password-link a {
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.forgot-password-link a:hover {
    color: var(--primary-500);
}

.form-info {
    color: var(--slate-400);
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    box-shadow: var(--shadow-sm), var(--shadow-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 100%);
    box-shadow: var(--shadow-md), 0 6px 20px rgb(230 126 34 / 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-700) 100%);
    color: white;
    box-shadow: var(--shadow-sm), var(--shadow-secondary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
    box-shadow: var(--shadow-md), 0 6px 20px rgb(139 92 246 / 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    border: 2px solid var(--slate-200);
    color: var(--slate-700);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    box-shadow: var(--shadow-sm);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-500) 0%, var(--danger-600) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-400) 0%, var(--danger-500) 100%);
    box-shadow: var(--shadow-md), 0 6px 20px rgb(239 68 68 / 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-500) 100%);
    box-shadow: var(--shadow-md), 0 6px 20px rgb(16 185 129 / 0.3);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
    border-radius: var(--radius-md);
}

.btn-xs {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
    width: 34px;
    height: 34px;
}

/* Ghost buttons */
.btn-ghost {
    background: transparent;
    color: var(--slate-600);
    border: none;
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--slate-100);
    color: var(--slate-800);
}

/* ===================================
   ADMIN PANEL LAYOUT
   =================================== */

.admin-panel {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--slate-900) 0%, var(--slate-950) 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), width var(--transition-base);
    box-shadow: var(--shadow-xl);
}

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

.sidebar-header i {
    font-size: 32px;
    color: var(--primary-400);
    filter: drop-shadow(0 2px 8px rgb(230 126 34 / 0.4));
}

.sidebar-header span {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, white 0%, var(--slate-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--slate-700) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--slate-700);
    border-radius: var(--radius-full);
}

.nav-group-label {
    padding: 20px 24px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    margin-top: 8px;
}

.sidebar-nav .nav-group-label:first-child {
    margin-top: 0;
    padding-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--slate-400);
    transition: all var(--transition-fast);
    position: relative;
    margin: 2px 12px;
    border-radius: var(--radius-lg);
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-400);
    border-radius: var(--radius-full);
    transition: height var(--transition-fast);
}

.nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: white;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    box-shadow: 0 4px 12px rgb(230 126 34 / 0.3);
}

.nav-item.active::before {
    height: 60%;
    background: white;
}

.nav-item i {
    width: 22px;
    text-align: center;
    font-size: 1.125rem;
    opacity: 0.9;
}

.nav-item span {
    font-weight: 500;
    font-size: 0.9375rem;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.2);
}

.sidebar-footer .nav-item {
    color: var(--slate-500);
    margin: 0;
}

.sidebar-footer .nav-item:hover {
    color: var(--danger-400);
    background: rgba(239, 68, 68, 0.1);
}

/* Hidden on desktop */
.sidebar-close,
.sidebar-overlay {
    display: none;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-base);
}

.content-header {
    height: var(--header-height);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--slate-600);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background: var(--slate-100);
    color: var(--slate-800);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--slate-100);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--slate-600);
    font-weight: 500;
}

.user-info i {
    color: var(--primary-500);
}

.content-wrapper {
    flex: 1;
    padding: 32px;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s var(--ease-out);
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   DASHBOARD
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0.05;
    transform: translate(30%, -30%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
    position: relative;
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%);
    box-shadow: 0 4px 14px rgb(230 126 34 / 0.35);
}

.stat-icon.bg-secondary {
    background: linear-gradient(135deg, var(--secondary-400) 0%, var(--secondary-600) 100%);
    box-shadow: 0 4px 14px rgb(139 92 246 / 0.35);
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-700) 100%);
    box-shadow: 0 4px 14px rgb(16 185 129 / 0.35);
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning-500) 0%, var(--warning-600) 100%);
    box-shadow: 0 4px 14px rgb(245 158 11 / 0.35);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-500);
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 24px;
}

/* ===================================
   CARDS
   =================================== */

.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--slate-50);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--primary-500);
    font-size: 1.125rem;
}

.card-body {
    padding: 24px;
}

.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

/* ===================================
   TABLES - Modern Data Grid
   =================================== */

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    background: var(--slate-50);
    border-bottom: 2px solid var(--slate-200);
    position: sticky;
    top: 0;
    white-space: nowrap;
}

.data-table th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.data-table tbody tr {
    transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--primary-50);
}

.data-table tbody td {
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-700);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--radius-lg);
}

.data-table tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--radius-lg) 0;
}

.data-table img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.table-actions .btn-icon {
    width: 36px;
    height: 36px;
    background: var(--slate-100);
    color: var(--slate-600);
    border: none;
}

.table-actions .btn-icon:hover {
    background: var(--primary-100);
    color: var(--primary-600);
}

.table-actions .btn-danger.btn-icon:hover {
    background: var(--danger-100);
    color: var(--danger-600);
}

/* Table thumbnails */
.table-thumbnail {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.no-image {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--slate-100) 0%, var(--slate-200) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
}

.no-image i {
    font-size: 1.5rem;
}

/* Sort input in tables */
.sort-input {
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 8px 12px !important;
    width: 70px !important;
    text-align: center;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.sort-input:focus {
    border-color: var(--primary-500);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-50);
}

.td-status { text-align: center; }
.td-sort { text-align: center; }
.td-price { font-weight: 700; white-space: nowrap; color: var(--success-600); }
.td-ingredients { max-width: 220px; color: var(--slate-500); font-size: 0.875rem; }
.td-image { width: 90px; }

/* ===================================
   FORMS
   =================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--slate-700);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    background: white;
    color: var(--slate-800);
}

.form-control:hover {
    border-color: var(--slate-300);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px var(--primary-50);
}

.form-control::placeholder {
    color: var(--slate-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-select {
    padding: 12px 16px;
    padding-right: 44px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-select:hover {
    border-color: var(--slate-300);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px var(--primary-50);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row .col-md-6 {
    flex: 0 0 calc(50% - 10px);
}

.form-actions {
    padding-top: 24px;
    border-top: 2px solid var(--slate-100);
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-actions .btn {
    min-width: 160px;
}

.form-section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--slate-800);
    margin: 32px 0 20px;
    padding-top: 24px;
    border-top: 2px solid var(--slate-100);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--primary-500);
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: 6px;
    font-weight: 500;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}

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

.form-control-sm {
    padding: 8px 12px;
    font-size: 0.875rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.checkbox-group .form-check {
    margin-bottom: 0;
}

.text-muted {
    color: var(--slate-500);
    font-size: 0.8125rem;
    margin-top: 6px;
    display: block;
}

/* ===================================
   SECTION HEADER
   =================================== */

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

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--primary-500);
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--slate-100);
    padding: 6px;
    border-radius: var(--radius-lg);
}

.filter-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--slate-800);
}

.filter-tab.active {
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

/* ===================================
   SEO SECTION
   =================================== */

.seo-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    background: var(--slate-100);
    padding: 6px;
    border-radius: var(--radius-lg);
    width: fit-content;
}

.seo-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.seo-tab:hover {
    color: var(--slate-800);
}

.seo-tab.active {
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.seo-form {
    max-width: 800px;
}

/* ===================================
   GALLERY
   =================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: all var(--transition-fast);
    cursor: grab;
}

.gallery-item:active {
    cursor: grabbing;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-item.drag-over {
    border: 2px dashed var(--primary);
    transform: scale(1.02);
}

.gallery-item .drag-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    cursor: grab;
}

.gallery-item:hover .drag-handle {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-info {
    padding: 16px;
}

.gallery-item-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--slate-800);
}

.gallery-item-actions {
    display: flex;
    gap: 8px;
}

/* Gallery upload grid */
.gallery-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.gallery-upload-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-preview.small {
    width: 100%;
    height: 100px;
    border-radius: var(--radius-md);
}

/* Image Upload Area */
.image-upload-area {
    border: 2px dashed var(--slate-300);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--slate-50);
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(31, 160, 90, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--slate-500);
}

.upload-placeholder i {
    font-size: 48px;
    color: var(--slate-400);
}

.upload-placeholder p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.upload-hint {
    font-size: 0.8125rem;
    color: var(--slate-400);
}

.upload-preview {
    position: relative;
    display: flex;
    justify-content: center;
}

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

.upload-preview .remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
}

.current-image-preview {
    margin-bottom: 16px;
    text-align: center;
}

.current-image-preview img {
    max-width: 100%;
    max-height: 180px;
    border-radius: var(--radius-md);
    object-fit: contain;
    border: 1px solid var(--slate-200);
}

/* Page Gallery Grid */
.page-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    min-height: 60px;
}

.page-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: grab;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.page-gallery-item:active {
    cursor: grabbing;
}

.page-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-gallery-item .drag-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.page-gallery-item:hover .drag-handle {
    opacity: 1;
}

.page-gallery-item .remove-gallery-img {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.page-gallery-item:hover .remove-gallery-img {
    opacity: 1;
}

.page-gallery-item.dragging {
    opacity: 0.5;
    border-color: var(--primary);
}

.page-gallery-item.drag-over {
    border-color: var(--primary);
    transform: scale(1.05);
}

.page-gallery-add {
    margin-top: 12px;
}

.page-gallery-add .image-upload-area {
    padding: 20px;
}

.page-gallery-add .upload-placeholder i {
    font-size: 24px;
}

.page-gallery-add .upload-placeholder p {
    font-size: 0.875rem;
}

/* ===================================
   HOURS LIST
   =================================== */

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.hours-item:hover {
    background: var(--slate-100);
}

.hours-item .day {
    font-weight: 600;
    color: var(--slate-800);
}

.hours-item .time {
    color: var(--slate-600);
    font-weight: 500;
}

.hours-editor .form-group {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.hours-editor label {
    margin-bottom: 0;
    font-weight: 600;
}

/* ===================================
   TOPPINGS
   =================================== */

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

.topping-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: all var(--transition-fast);
}

.topping-item:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.topping-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topping-name {
    font-weight: 600;
    color: var(--slate-800);
}

.topping-price {
    font-size: 0.875rem;
    color: var(--success-600);
    font-weight: 600;
}

.topping-category {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-600);
    background: var(--primary-50);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* ===================================
   REVIEWS LIST
   =================================== */

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: all var(--transition-fast);
}

.review-item:hover {
    box-shadow: var(--shadow-md);
}

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

.review-author {
    font-weight: 700;
    color: var(--slate-800);
}

.review-rating {
    color: var(--warning-500);
    font-size: 1rem;
}

.review-content {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.7;
}

/* ===================================
   STATUS BADGES
   =================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-600);
}

.badge-success {
    background: var(--success-100);
    color: var(--success-700);
}

.badge-danger {
    background: var(--danger-100);
    color: var(--danger-700);
}

.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge-warning {
    background: var(--warning-100);
    color: var(--warning-600);
}

.badge-info {
    background: var(--info-100);
    color: var(--info-600);
}

/* Link type badges */
.badge-controller {
    background: var(--info-100);
    color: var(--info-600);
}

.badge-page {
    background: var(--success-100);
    color: var(--success-700);
}

.badge-section,
.badge-anchor {
    background: var(--warning-100);
    color: var(--warning-600);
}

.badge-external {
    background: var(--secondary-100);
    color: var(--secondary-700);
}

/* Status dots */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 0 3px currentColor;
    opacity: 0.3;
}

.status-dot.published {
    background: var(--success-500);
    box-shadow: 0 0 0 3px var(--success-100);
    opacity: 1;
}

.status-dot.draft {
    background: var(--warning-500);
    box-shadow: 0 0 0 3px var(--warning-100);
    opacity: 1;
}

/* ===================================
   MODAL
   =================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideIn 0.3s var(--ease-out);
}

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

.modal-content.modal-lg {
    max-width: 900px;
}

.modal-content.modal-xl {
    max-width: 1100px;
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--slate-50);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    color: var(--primary-500);
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--slate-100);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--slate-500);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--slate-200);
    color: var(--slate-700);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--slate-50);
}

/* ===================================
   TOAST NOTIFICATIONS
   =================================== */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    padding: 18px 24px;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--slate-100);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
    animation: toastSlideIn 0.4s var(--spring);
    pointer-events: auto;
}

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

.toast.success {
    border-left: 4px solid var(--success-500);
}

.toast.error {
    border-left: 4px solid var(--danger-500);
}

.toast.info {
    border-left: 4px solid var(--info-500);
}

.toast i {
    font-size: 1.375rem;
}

.toast.success i { color: var(--success-500); }
.toast.error i { color: var(--danger-500); }
.toast.info i { color: var(--info-500); }

.toast span {
    font-weight: 500;
    color: var(--slate-700);
}

/* ===================================
   SETTINGS GRID
   =================================== */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

.social-editor .form-group {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center;
}

.social-editor label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* ===================================
   SECTIONS LIST (Homepage sections)
   =================================== */

.sections-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.section-card:hover {
    box-shadow: var(--shadow-md);
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--slate-50) 0%, white 100%);
    border-bottom: 1px solid var(--slate-100);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.section-card-header:hover {
    background: linear-gradient(135deg, var(--slate-100) 0%, var(--slate-50) 100%);
}

.section-card-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-card-title i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgb(230 126 34 / 0.25);
}

.section-card-title h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-800);
}

.section-card-title small {
    display: block;
    color: var(--slate-500);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 2px;
}

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

.section-card-body {
    padding: 28px;
    display: none;
    background: white;
}

.section-card.expanded .section-card-body {
    display: block;
    animation: expandIn 0.3s var(--ease-out);
}

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

.section-card .expand-icon {
    transition: transform var(--transition-base);
    color: var(--slate-400);
}

.section-card.expanded .expand-icon {
    transform: rotate(180deg);
    color: var(--primary-500);
}

.section-card-body textarea {
    resize: vertical;
    min-height: 100px;
}

.section-card-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===================================
   PAGE FORM TABS
   =================================== */

.page-form-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    background: var(--slate-100);
    padding: 6px;
    border-radius: var(--radius-lg);
    width: fit-content;
}

.page-form-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.page-form-tab:hover {
    color: var(--slate-800);
}

.page-form-tab.active {
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.page-form-panel {
    display: none;
    animation: fadeIn 0.25s var(--ease-out);
}

.page-form-panel.active {
    display: block;
}

/* ===================================
   IMAGE UPLOAD
   =================================== */

.image-upload-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.image-preview {
    width: 180px;
    height: 180px;
    border: 2px dashed var(--slate-300);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-50) 0%, var(--slate-100) 100%);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.image-preview:hover {
    border-color: var(--primary-400);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .no-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--slate-400);
    text-align: center;
    padding: 16px;
}

.image-preview .no-preview i {
    font-size: 2.5rem;
    color: var(--slate-300);
}

.image-preview .no-preview span {
    font-size: 0.8125rem;
    font-weight: 500;
}

.image-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.image-upload-controls .file-name {
    font-size: 0.8125rem;
    color: var(--slate-500);
    word-break: break-all;
    font-weight: 500;
}

/* ===================================
   INFO BOX
   =================================== */

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--info-50);
    border: 1px solid var(--info-100);
    border-radius: var(--radius-lg);
    color: var(--info-600);
    font-size: 0.9375rem;
    margin-top: 16px;
    line-height: 1.6;
}

.info-box i {
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===================================
   BLOCKED DATES LIST (Reservation)
   =================================== */

.blocked-dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.blocked-date-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff0f3;
    border: 1px solid #e8879b;
    border-radius: 6px;
    font-size: 0.875rem;
}

.blocked-date-label {
    font-weight: 600;
    color: #c0273f;
}

.blocked-date-value {
    color: #999;
    font-size: 0.8rem;
}

.blocked-date-item .btn-xs {
    padding: 2px 6px;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 4px;
}

/* ===================================
   TOGGLE SWITCH
   =================================== */

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--slate-300);
    transition: all var(--transition-fast);
    border-radius: var(--radius-full);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all var(--transition-fast);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 4px var(--success-100);
}

/* ===================================
   SUMMERNOTE CUSTOMIZATION
   =================================== */

.note-editor.note-frame {
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.note-editor .note-toolbar {
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    padding: 8px;
}

.note-editor .note-editing-area {
    min-height: 220px;
}

.note-editor .note-editing-area .note-editable {
    padding: 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===================================
   LOADING STATES
   =================================== */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--primary-500);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

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

/* ===================================
   EMPTY STATES
   =================================== */

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--slate-400);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--slate-300);
}

.empty-state p {
    font-size: 1rem;
    font-weight: 500;
}

/* ===================================
   RESERVATION MODULE
   =================================== */

/* Nav badge (new reservations count) */
.nav-badge {
    background: var(--danger-500);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-left: auto;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Stats grid */
.res-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.res-stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: all var(--transition-fast);
}

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

.res-stat-card .res-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.res-stat-card .res-stat-info {
    flex: 1;
    min-width: 0;
}

.res-stat-card .res-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--slate-900);
}

.res-stat-card .res-stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--slate-500);
    margin-top: 2px;
}

/* Stat card color variants */
.res-stat-new .res-stat-icon {
    background: var(--info-100);
    color: var(--info-600);
}

.res-stat-confirmed .res-stat-icon {
    background: var(--success-100);
    color: var(--success-600);
}

.res-stat-today .res-stat-icon {
    background: var(--primary-100);
    color: var(--primary-600);
}

.res-stat-guests .res-stat-icon {
    background: var(--secondary-100);
    color: var(--secondary-600);
}

/* Filters card */
.res-filters-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
}

.res-filters {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.res-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.res-filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.res-filter-group select,
.res-filter-group input {
    padding: 10px 14px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--slate-700);
    background: white;
    transition: all var(--transition-fast);
}

.res-filter-group select:focus,
.res-filter-group input:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px var(--primary-50);
}

/* Status badges */
.res-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.res-status-badge i {
    font-size: 0.625rem;
}

.res-status-badge.status-new {
    background: var(--info-100);
    color: var(--info-600);
}

.res-status-badge.status-confirmed {
    background: var(--success-100);
    color: var(--success-700);
}

.res-status-badge.status-rejected {
    background: var(--danger-100);
    color: var(--danger-700);
}

.res-status-badge.status-cancelled {
    background: var(--slate-100);
    color: var(--slate-600);
}

.res-status-badge.status-completed {
    background: var(--secondary-100);
    color: var(--secondary-700);
}

/* Large status badge (detail view) */
.res-status-large {
    padding: 6px 16px;
    font-size: 0.875rem;
}

/* Table row highlighting */
.res-row-today {
    background: var(--primary-50) !important;
    border-left: 3px solid var(--primary-500);
}

.res-row-past {
    opacity: 0.6;
}

.res-row-past:hover {
    opacity: 1;
}

/* Action buttons in table */
.res-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.res-actions .btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    padding: 0;
}

.res-actions .btn-icon:hover {
    transform: scale(1.1);
}

.btn-confirm-res {
    background: var(--success-100);
    color: var(--success-700);
}

.btn-confirm-res:hover {
    background: var(--success-500);
    color: white;
}

.btn-reject-res {
    background: var(--danger-100);
    color: var(--danger-600);
}

.btn-reject-res:hover {
    background: var(--danger-500);
    color: white;
}

.btn-complete-res {
    background: var(--secondary-100);
    color: var(--secondary-600);
}

.btn-complete-res:hover {
    background: var(--secondary-500);
    color: white;
}

.btn-detail-res {
    background: var(--slate-100);
    color: var(--slate-600);
}

.btn-detail-res:hover {
    background: var(--slate-700);
    color: white;
}

.btn-delete-res {
    background: var(--danger-50);
    color: var(--danger-400);
}

.btn-delete-res:hover {
    background: var(--danger-500);
    color: white;
}

/* Source badges */
.res-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.res-source-badge.source-website {
    background: var(--info-50);
    color: var(--info-600);
}

.res-source-badge.source-phone {
    background: var(--success-50);
    color: var(--success-600);
}

.res-source-badge.source-walkin {
    background: var(--warning-50);
    color: var(--warning-600);
}

.res-source-badge.source-other {
    background: var(--slate-100);
    color: var(--slate-500);
}

/* Reservation detail modal */
.res-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.res-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-100);
}

.res-detail-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
}

.res-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.res-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.res-detail-item label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-400);
}

.res-detail-item span,
.res-detail-item a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-800);
}

.res-detail-item a {
    color: var(--primary-600);
    text-decoration: none;
}

.res-detail-item a:hover {
    text-decoration: underline;
}

.res-detail-message {
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.res-detail-message label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-400);
    display: block;
    margin-bottom: 8px;
}

.res-detail-message p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--slate-700);
}

/* Detail modal admin controls */
.res-detail-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-100);
}

.res-detail-controls .form-group {
    margin-bottom: 0;
}

.res-detail-controls label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.res-detail-controls select,
.res-detail-controls textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--slate-700);
    background: white;
    transition: all var(--transition-fast);
}

.res-detail-controls select:focus,
.res-detail-controls textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px var(--primary-50);
}

.res-detail-controls textarea {
    resize: vertical;
    min-height: 80px;
}

.res-detail-notes {
    grid-column: 1 / -1;
}

/* Reservation table guest name styling */
.res-guest-name {
    font-weight: 600;
    color: var(--slate-800);
}

.res-guest-phone {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

.res-guest-phone a {
    color: var(--slate-500);
    text-decoration: none;
}

.res-guest-phone a:hover {
    color: var(--primary-600);
}

.res-date-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.res-date {
    font-weight: 600;
    color: var(--slate-800);
}

.res-time {
    font-size: 0.8125rem;
    color: var(--primary-600);
    font-weight: 600;
}

.res-guests-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--slate-700);
}

.res-guests-count i {
    color: var(--slate-400);
    font-size: 0.875rem;
}

/* Add reservation form */
.res-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.res-form-grid .form-group {
    margin-bottom: 0;
}

.res-form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

/* Clear filters button */
.btn-clear-filters {
    background: var(--slate-100);
    color: var(--slate-600);
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    align-self: flex-end;
}

.btn-clear-filters:hover {
    background: var(--slate-200);
    color: var(--slate-800);
}

/* Responsive: reservation stats */
@media (max-width: 1024px) {
    .res-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .res-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .res-stat-card .res-stat-value {
        font-size: 1.375rem;
    }

    .res-stat-card .res-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .res-filters {
        flex-direction: column;
        gap: 12px;
    }

    .res-filter-group {
        width: 100%;
    }

    .res-detail-info {
        grid-template-columns: 1fr;
    }

    .res-detail-controls {
        grid-template-columns: 1fr;
    }

    .res-form-grid {
        grid-template-columns: 1fr;
    }

    .res-actions {
        gap: 4px;
    }

    .res-actions .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .res-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .res-stat-card {
        padding: 12px 14px;
    }

    .res-stat-card .res-stat-value {
        font-size: 1.25rem;
    }
}

/* Reservation tabs */
.res-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--slate-100);
    padding: 6px;
    border-radius: var(--radius-lg);
    width: fit-content;
}

.res-tab {
    padding: 10px 24px;
    background: none;
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.res-tab:hover {
    color: var(--slate-800);
}

.res-tab.active {
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.res-tab i {
    font-size: 0.875rem;
}

.res-tab-content {
    display: none;
}

.res-tab-content.active {
    display: block;
    animation: fadeIn 0.25s var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 480px) {
    .res-tabs {
        width: 100%;
    }

    .res-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
}

/* ===================================
   HELP / INSTRUKCJA PAGE
   =================================== */

.help-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.help-toc-card .card-body {
    padding: 16px 24px;
}

.help-toc {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.help-toc a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: var(--slate-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.help-toc a:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    border-color: var(--primary-100);
}

.help-card {
    scroll-margin-top: 100px;
    transition: box-shadow 0.3s ease;
}

.help-card-highlight {
    box-shadow: 0 0 0 3px var(--primary-400), var(--shadow-lg) !important;
}

.help-card .card-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-card .card-header h3 i {
    color: var(--primary-500);
}

.help-card .card-body {
    line-height: 1.8;
    color: var(--slate-700);
    font-size: 0.9375rem;
}

.help-card .card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-800);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--slate-100);
}

.help-card .card-body h4:first-child {
    margin-top: 0;
}

.help-card .card-body p {
    margin: 0 0 12px;
}

.help-card .card-body ul,
.help-card .card-body ol.help-steps {
    margin: 0 0 16px;
}

.help-card .card-body ul {
    padding-left: 24px;
}

.help-card .card-body li {
    margin-bottom: 6px;
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 0.875rem;
}

.help-table thead th {
    background: var(--slate-50);
    color: var(--slate-600);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--slate-200);
}

.help-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: top;
    color: var(--slate-700);
}

.help-table tbody tr:hover {
    background: var(--slate-50);
}

.help-table code {
    background: var(--slate-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8125rem;
    color: var(--primary-700);
}

.help-steps {
    counter-reset: help-step;
    list-style: none;
    padding-left: 0;
    margin: 12px 0 20px;
}

.help-steps li {
    counter-increment: help-step;
    position: relative;
    padding: 10px 16px 10px 48px;
    margin-bottom: 8px;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-100);
}

.help-steps li::before {
    content: counter(help-step);
    position: absolute;
    left: 12px;
    top: 10px;
    width: 24px;
    height: 24px;
    background: var(--primary-500);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-tip {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    background: var(--success-50);
    border: 1px solid var(--success-100);
    border-radius: var(--radius-lg);
    margin-top: 16px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.help-tip i {
    color: var(--success-600);
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.help-tip-warning {
    background: var(--warning-50);
    border-color: var(--warning-100);
}

.help-tip-warning i {
    color: var(--warning-600);
}

@media (max-width: 768px) {
    .help-toc {
        grid-template-columns: 1fr;
    }

    .help-table {
        font-size: 0.8125rem;
    }

    .help-table thead th,
    .help-table tbody td {
        padding: 8px 10px;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 50%;
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all var(--transition-fast);
    }

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

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }

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

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

    .sidebar-toggle {
        display: block;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* Header responsive */
    .content-header {
        flex-wrap: wrap;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    /* Cards grid */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Form rows */
    .form-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hide some columns on tablet */
    .hide-tablet {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 16px;
    }

    .content-header {
        padding: 0 16px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .header-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-actions .btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .filter-tab {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    /* Mobile-friendly tables */
    .table-responsive {
        margin: 0 -16px;
        padding: 0 16px;
        border-radius: 0;
    }

    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 12px 10px;
    }

    .data-table th {
        font-size: 0.7rem;
    }

    .data-table img,
    .table-thumbnail {
        width: 48px;
        height: 48px;
    }

    .no-image {
        width: 48px;
        height: 48px;
    }

    .no-image i {
        font-size: 1.2rem;
    }

    .td-image {
        width: 60px;
    }

    .td-ingredients {
        max-width: 150px;
        font-size: 0.75rem;
    }

    .table-actions {
        flex-direction: row;
        gap: 6px;
        justify-content: flex-end;
    }

    .table-actions .btn-icon {
        width: 32px;
        height: 32px;
    }

    .sort-input {
        width: 55px !important;
        padding: 6px 8px !important;
        font-size: 0.875rem;
    }

    /* Cards */
    .card {
        border-radius: var(--radius-md);
    }

    .card-header {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .card-header h3 {
        font-size: 1rem;
    }

    .card-body {
        padding: 16px;
    }

    /* Section cards */
    .section-card {
        margin-bottom: 16px;
    }

    .section-card-header {
        padding: 16px;
    }

    .section-card-body {
        padding: 16px;
    }

    /* Modal */
    .modal-content {
        max-width: 100%;
        margin: 8px;
        max-height: calc(100vh - 16px);
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: 16px;
    }

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

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
    }

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

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .hours-editor .form-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group,
    .form-row .col-md-6 {
        flex: none;
        width: 100%;
    }

    .section-card-body .form-row {
        grid-template-columns: 1fr;
    }

    .image-upload-container {
        flex-direction: column;
        align-items: center;
    }

    /* Form elements */
    .form-group label {
        font-size: 0.8rem;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .form-control-lg {
        padding: 12px 14px;
    }

    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 12px 20px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .btn-group {
        flex-wrap: wrap;
    }

    /* Image upload */
    .image-preview {
        max-width: 150px;
        max-height: 150px;
    }

    .upload-dropzone {
        padding: 24px 16px;
    }

    .upload-dropzone i {
        font-size: 2rem;
    }

    .upload-dropzone p {
        font-size: 0.875rem;
    }

    /* Status badges */
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    /* Quick actions */
    .quick-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .quick-action-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    /* Alerts */
    .alert {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    /* Top bar */
    .top-bar {
        padding: 12px 16px;
    }

    .top-bar-right {
        gap: 8px;
    }

    /* Breadcrumbs */
    .breadcrumb {
        font-size: 0.8rem;
    }

    /* Search in header */
    .search-input {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 12px;
    }

    .content-header {
        padding: 0 12px;
    }

    .content-header h1 {
        font-size: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }

    .stat-icon {
        margin-bottom: 0;
    }

    .stat-content {
        text-align: left;
    }

    /* Responsive table - card layout on very small screens */
    .data-table thead {
        display: none;
    }

    .data-table tbody tr {
        display: block;
        background: #fff;
        margin-bottom: 12px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        padding: 12px;
    }

    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--slate-100);
    }

    .data-table tbody td:last-child {
        border-bottom: none;
    }

    .data-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--slate-500);
        margin-right: 10px;
    }

    .data-table tbody tr:last-child td:first-child,
    .data-table tbody tr:last-child td:last-child {
        border-radius: 0;
    }

    .table-actions {
        flex-direction: row;
        justify-content: flex-end;
        gap: 6px;
    }

    .td-image {
        width: auto;
        justify-content: flex-start;
    }

    .td-image img,
    .td-image .table-thumbnail,
    .td-image .no-image {
        width: 60px;
        height: 60px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-upload-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        aspect-ratio: 1;
    }

    /* Tabs */
    .seo-tabs,
    .page-form-tabs {
        flex-direction: column;
        width: 100%;
    }

    .seo-tab,
    .page-form-tab {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .filter-tabs {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .filter-tab {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    /* Toast notifications */
    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .toast {
        min-width: auto;
        width: 100%;
        padding: 12px 16px;
    }

    /* User info in header */
    .user-info {
        display: none;
    }

    .user-menu {
        padding: 8px;
    }

    /* Modal */
    .modal-content {
        margin: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 90vh;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .modal-header {
        padding: 14px;
    }

    .modal-body {
        padding: 14px;
        max-height: calc(90vh - 140px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 14px;
    }

    /* Cards */
    .card-header {
        padding: 14px;
    }

    .card-body {
        padding: 14px;
    }

    .section-card-header {
        padding: 14px;
    }

    .section-card-body {
        padding: 14px;
    }

    /* Buttons */
    .btn {
        padding: 10px 14px;
    }

    .header-actions .btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .header-actions .btn i {
        margin-right: 4px;
    }

    /* Hide some button text on very small screens */
    .header-actions .btn-text-hide {
        display: none;
    }

    /* Forms */
    .form-control {
        padding: 10px;
    }

    textarea.form-control {
        min-height: 100px;
    }

    /* Image upload */
    .image-preview {
        max-width: 120px;
        max-height: 120px;
    }

    .upload-dropzone {
        padding: 20px 12px;
    }

    /* Empty state */
    .empty-state {
        padding: 40px 16px;
    }

    .empty-state i {
        font-size: 3rem;
    }

    /* Top bar */
    .top-bar {
        padding: 10px 12px;
    }

    .sidebar-toggle {
        padding: 8px;
    }

    /* Loading overlay */
    .loading-overlay::after {
        width: 28px;
        height: 28px;
    }

    /* Breadcrumbs - hide on very small */
    .breadcrumb {
        display: none;
    }
}

/* ===================================
   RESPONSIVE UTILITY CLASSES
   =================================== */

/* Hide on mobile (< 768px) */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 768px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* Hide on small screens (< 480px) */
@media (max-width: 479px) {
    .hide-xs {
        display: none !important;
    }
}

/* Text alignment responsive */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
}

/* Flex utilities for responsive */
@media (max-width: 768px) {
    .flex-column-mobile {
        flex-direction: column !important;
    }

    .flex-wrap-mobile {
        flex-wrap: wrap !important;
    }

    .gap-sm-mobile {
        gap: 8px !important;
    }

    .w-100-mobile {
        width: 100% !important;
    }
}

/* Spacing utilities for mobile */
@media (max-width: 768px) {
    .mb-sm-mobile {
        margin-bottom: 8px !important;
    }

    .p-sm-mobile {
        padding: 12px !important;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .sidebar,
    .content-header,
    .btn,
    .modal {
        display: none !important;
    }

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

    .content-wrapper {
        padding: 0;
    }
}

/* ===================================
   SCROLLBAR STYLING
   =================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--slate-100);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: var(--radius-full);
    border: 2px solid var(--slate-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--slate-300) var(--slate-100);
}

/* ===================================
   SELECTION STYLING
   =================================== */

::selection {
    background: var(--primary-200);
    color: var(--primary-900);
}

/* YouTube icon styling */
.fab.fa-youtube {
    color: #ff0000;
}

/* ===================================
   FOCUS VISIBLE FOR ACCESSIBILITY
   =================================== */

:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}
