/* ═══════════════════════════════════════════════════════════
   Rezervační systém – Admin panel CSS (Podhaiský Digital)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700;800&display=swap');

:root {
    --adm-primary: #007e34;
    --adm-primary-hover: #05d15a;
    --adm-primary-light: rgba(5,209,90,.12);
    --adm-sidebar-bg: #1a1a1a;
    --adm-sidebar-text: rgba(255,255,255,.6);
    --adm-sidebar-active: #007e34;
    --adm-bg: #2b2b2b;
    --adm-white: rgba(38,50,56,0.45);
    --adm-gray-100: rgba(255,255,255,.04);
    --adm-gray-200: rgba(255,255,255,.08);
    --adm-gray-300: rgba(255,255,255,.15);
    --adm-gray-400: rgba(255,255,255,.4);
    --adm-gray-500: rgba(255,255,255,.55);
    --adm-gray-700: rgba(255,255,255,.75);
    --adm-gray-900: #ffffff;
    --adm-success: #05d15a;
    --adm-success-light: rgba(5,209,90,.15);
    --adm-warning: #f59e0b;
    --adm-warning-light: rgba(245,158,11,.15);
    --adm-danger: #ef4444;
    --adm-danger-light: rgba(239,68,68,.15);
    --adm-info: #3b82f6;
    --adm-info-light: rgba(59,130,246,.15);
    --adm-radius: .5rem;
    --adm-radius-lg: .85rem;
    --adm-shadow: 0 2px 8px rgba(0,0,0,.2);
    --adm-shadow-lg: 0 10px 25px rgba(0,0,0,.3);
    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--adm-bg); color: var(--adm-gray-900); min-height: 100vh; font-size: .9375rem; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', var(--font); }

/* ── Layout ────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 250px;
    background: var(--adm-sidebar-bg);
    color: var(--adm-sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform .3s ease;
}
.sidebar-brand {
    padding: 1.35rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: .6rem;
    letter-spacing: -.01em;
}
.sidebar-brand i { color: #05d15a; font-size: 1.1rem; }
.sidebar-nav { flex: 1; padding: .5rem 0; overflow-y: auto; }
.nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.25rem;
    color: var(--adm-sidebar-text);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all .15s ease;
    cursor: pointer;
}
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active {
    background: rgba(5,209,90,.12);
    color: #fff;
    border-left-color: #05d15a;
}
.nav-link .icon { width: 1.25rem; text-align: center; font-size: .95rem; opacity: .85; }
.nav-link.active .icon { opacity: 1; }
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .82rem;
}
.sidebar-footer a {
    color: var(--adm-sidebar-text);
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: color .15s;
}
.sidebar-footer a:hover { color: #fff; }

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 1.75rem 2rem;
    min-height: 100vh;
}

/* ── Top bar (mobile) ──────────────────────────────────────── */
.topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1rem;
    background: var(--adm-sidebar-bg);
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: sticky;
    top: 0;
    z-index: 51;
}
.topbar-brand {
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.topbar-brand i { color: #05d15a; }
.topbar-logout {
    color: var(--adm-sidebar-text);
    font-size: .95rem;
    padding: .35rem;
    border-radius: var(--adm-radius);
    transition: color .15s, background .15s;
    text-decoration: none;
}
.topbar-logout:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ── Mobile nav (bottom tab bar) ───────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--adm-sidebar-bg);
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 100;
    justify-content: space-around;
    padding: .25rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: .4rem .25rem .3rem;
    color: var(--adm-sidebar-text);
    text-decoration: none;
    font-size: .6rem;
    font-weight: 500;
    transition: color .15s;
    flex: 1;
    position: relative;
    min-width: 0;
}
.mob-nav-item i { font-size: .95rem; }
.mob-nav-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mob-nav-item:hover { color: #fff; }
.mob-nav-item.active {
    color: #05d15a;
}
.mob-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #05d15a;
    border-radius: 0 0 2px 2px;
}

/* ── Custom Select ─────────────────────────────────────────── */
.custom-select-wrap {
    position: relative;
    width: 100%;
}
.custom-select-wrap select { display: none; }
.cs-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .55rem .75rem;
    border: 1.5px solid var(--adm-gray-300);
    border-radius: var(--adm-radius);
    font-size: .875rem;
    font-family: var(--font);
    background: rgba(255,255,255,.06);
    color: var(--adm-gray-900);
    cursor: pointer;
    transition: border .2s, box-shadow .2s;
    gap: .5rem;
    user-select: none;
    line-height: 1.4;
}
.cs-trigger:hover { border-color: var(--adm-gray-400); }
.cs-trigger.open {
    border-color: var(--adm-primary);
    box-shadow: 0 0 0 3px rgba(5,209,90,.15);
}
.cs-arrow {
    font-size: .65rem;
    transition: transform .2s;
    color: var(--adm-gray-400);
    flex-shrink: 0;
}
.cs-trigger.open .cs-arrow { transform: rotate(180deg); }
.cs-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--adm-sidebar-bg);
    border: 1.5px solid var(--adm-gray-300);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow-lg);
    z-index: 60;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    scrollbar-width: thin;
}
.cs-dropdown.open { display: block; animation: csIn .15s ease-out; }
@keyframes csIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.cs-option {
    padding: .5rem .75rem;
    font-size: .875rem;
    cursor: pointer;
    transition: background .1s, color .1s;
    color: var(--adm-gray-700);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.cs-option:hover { background: var(--adm-primary-light); color: var(--adm-primary-hover); }
.cs-option.selected {
    background: var(--adm-primary-light);
    color: var(--adm-primary-hover);
    font-weight: 600;
}
.cs-option.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .7rem;
}

/* ── Headings ──────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.page-header h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.page-header .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: rgba(38,50,56,0.45);
    border-radius: var(--adm-radius-lg);
    box-shadow: var(--adm-shadow);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1.5px solid rgba(255,255,255,.08);
}
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { text-align: center; padding: 1.5rem 1rem; }
.stat-card .number { font-size: 2rem; font-weight: 800; color: #05d15a; letter-spacing: -.03em; font-family: 'Space Grotesk', var(--font); }
.stat-card .label { font-size: .8rem; color: var(--adm-gray-500); margin-top: .35rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.stat-card .stat-link { margin-top: .75rem; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
    background: rgba(255,255,255,.04);
    padding: .7rem .75rem;
    text-align: left;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--adm-gray-500);
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
tbody td {
    padding: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    vertical-align: middle;
}
tbody tr:hover { background: rgba(255,255,255,.04); }
tbody tr:last-child td { border-bottom: none; }

/* ── Status badges ─────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-new { background: var(--adm-info-light); color: var(--adm-info); }
.badge-confirmed { background: var(--adm-success-light); color: var(--adm-success); }
.badge-cancelled { background: var(--adm-danger-light); color: var(--adm-danger); }
.badge-completed { background: var(--adm-gray-100); color: var(--adm-gray-500); }
.badge-active { background: var(--adm-success-light); color: var(--adm-success); }
.badge-inactive { background: var(--adm-gray-100); color: var(--adm-gray-400); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border: none;
    border-radius: var(--adm-radius);
    font-size: .875rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn i { font-size: .8rem; }
.btn-primary { background: var(--adm-primary); color: #fff; }
.btn-primary:hover { background: var(--adm-primary-hover); box-shadow: 0 2px 8px rgba(5,209,90,.3); }
.btn-success { background: var(--adm-success); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-danger { background: var(--adm-danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-warning { background: var(--adm-warning); color: #fff; }
.btn-warning:hover { background: #B45309; }
.btn-outline {
    background: transparent;
    color: var(--adm-gray-700);
    border: 1.5px solid var(--adm-gray-300);
}
.btn-outline:hover { background: var(--adm-gray-100); border-color: var(--adm-gray-400); }
.btn-sm { padding: .35rem .65rem; font-size: .8rem; }
.btn-xs { padding: .25rem .5rem; font-size: .75rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-group { display: inline-flex; gap: .35rem; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: .3rem; color: var(--adm-gray-700); }
.form-group .hint { font-size: .75rem; color: var(--adm-gray-400); margin-top: .2rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }

input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=date], input[type=time], input[type=url],
input[type=color], select, textarea {
    width: 100%;
    padding: .55rem .75rem;
    border: 1.5px solid var(--adm-gray-300);
    border-radius: var(--adm-radius);
    font-size: .875rem;
    font-family: var(--font);
    transition: border .2s, box-shadow .2s;
    background: rgba(255,255,255,.06);
    color: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--adm-primary);
    box-shadow: 0 0 0 3px rgba(5,209,90,.15);
}
textarea { resize: vertical; min-height: 60px; }
select { cursor: pointer; }
input[type=color] { padding: .25rem; height: 2.5rem; cursor: pointer; }

.toggle-wrap { display: flex; align-items: center; gap: .5rem; }
.toggle {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    appearance: none;
    background: var(--adm-gray-300);
    border-radius: 9999px;
    cursor: pointer;
    transition: background .2s;
    border: none;
}
.toggle:checked { background: #05d15a; }
.toggle::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: calc(1.5rem - 4px);
    height: calc(1.5rem - 4px);
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.toggle:checked::before { transform: translateX(1.25rem); }

/* ── Filters bar ───────────────────────────────────────────── */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: flex-end;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(38,50,56,0.45);
    border-radius: var(--adm-radius-lg);
    box-shadow: var(--adm-shadow);
    border: 1.5px solid rgba(255,255,255,.08);
}
.filters-bar .form-group { margin-bottom: 0; min-width: 140px; }
.filters-bar .form-group label { font-size: .75rem; }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--adm-bg);
    border-radius: 1rem;
    box-shadow: var(--adm-shadow-lg);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn .2s ease-out;
    border: 1.5px solid rgba(255,255,255,.08);
}
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--adm-gray-400); line-height: 1; padding: .25rem; border-radius: var(--adm-radius); transition: all .15s; }
.modal-close:hover { color: var(--adm-gray-900); background: var(--adm-gray-100); }
.modal-body { padding: 1.25rem; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* ── Toast notifications ───────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.toast {
    padding: .75rem 1.25rem;
    border-radius: var(--adm-radius);
    font-size: .875rem;
    font-weight: 500;
    box-shadow: var(--adm-shadow-lg);
    animation: toastIn .3s ease-out;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: .5rem;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
.toast-success { background: var(--adm-success); color: #fff; }
.toast-error { background: var(--adm-danger); color: #fff; }
.toast-info { background: var(--adm-info); color: #fff; }

/* ── Business hours table ──────────────────────────────────── */
.hours-table { width: 100%; }
.hours-table .day-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
}
.hours-table .day-row:last-child { border-bottom: none; }
.hours-table .day-name { width: 80px; font-weight: 600; font-size: .875rem; flex-shrink: 0; }
.hours-table .day-inputs { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hours-table .day-inputs input[type=time] { width: 120px; }
.hours-table .day-inputs .sep { color: var(--adm-gray-400); font-size: .85rem; }
.hours-table .day-inputs input[type=number] { width: 80px; }

/* ── Embed code display ────────────────────────────────────── */
.embed-code {
    background: var(--adm-gray-900);
    color: #93C5FD;
    padding: 1rem;
    border-radius: var(--adm-radius);
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
    font-size: .82rem;
    white-space: pre-wrap;
    word-break: break-all;
    position: relative;
    margin-bottom: .75rem;
    line-height: 1.5;
}
.embed-code .copy-btn {
    position: absolute;
    top: .5rem; right: .5rem;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    border-radius: .25rem;
    padding: .3rem .6rem;
    font-size: .72rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}
.embed-code .copy-btn:hover { background: rgba(255,255,255,.22); }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--adm-gray-400);
}
.empty-state .icon { font-size: 2rem; margin-bottom: .75rem; color: var(--adm-gray-300); }
.empty-state p { font-size: .9rem; }

/* ── Loading ───────────────────────────────────────────────── */
.loading { text-align: center; padding: 2rem; color: var(--adm-gray-400); }
.spinner {
    display: inline-block;
    width: 1.25rem; height: 1.25rem;
    border: 2.5px solid var(--adm-gray-200);
    border-top-color: var(--adm-primary);
    border-radius: 50%;
    animation: spin .6s linear infinite;
    vertical-align: middle;
    margin-right: .5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Login page ────────────────────────────────────────────── */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #333333, #0f2027);
    padding: 1rem;
}
.login-card {
    background: rgba(38,50,56,0.55);
    border-radius: 1.2rem;
    box-shadow: var(--adm-shadow-lg);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    border: 1.5px solid rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
}
.login-card h1 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: .5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.login-card h1 i { color: #05d15a; }
.login-card .subtitle { text-align: center; color: rgba(255,255,255,.5); margin-bottom: 1.75rem; font-size: .875rem; }
.login-card .error-msg {
    background: var(--adm-danger-light);
    color: var(--adm-danger);
    padding: .65rem .85rem;
    border-radius: var(--adm-radius);
    margin-bottom: 1rem;
    font-size: .82rem;
    display: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .sidebar { display: none !important; }
    .main-content { margin-left: 0; padding: .75rem 1rem calc(1.5rem + 3.5rem); }
    .topbar { display: flex; }
    .mobile-nav { display: flex; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header .actions { width: 100%; }
    .page-header .actions .btn { flex: 1; justify-content: center; }
    .form-row { flex-direction: column; gap: 0; }
    .filters-bar { flex-direction: column; }
    .filters-bar .form-group { width: 100%; }
    .hours-table .day-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .hours-table .day-name { width: auto; }
    .btn-group { flex-wrap: wrap; }
    .modal-overlay { padding: .5rem; }
    .modal { max-width: 100%; border-radius: .75rem; }
    .fc-cell { min-height: 60px; }
    .fc-event { display: none; }
    .fc-more { display: none; }
    .fc-mobile-badge { display: flex !important; align-items: center; justify-content: center; }
    .cal-toolbar { flex-direction: column; align-items: stretch; }
    .cal-nav { justify-content: center; }
    .cal-view-btns { justify-content: center; }
    .cal-month-label { font-size: .95rem; min-width: auto; text-align: center; }
    .wv-event { flex-wrap: wrap; gap: .35rem; }
    .wv-event-time { min-width: 70px; font-size: .72rem; }
    .wv-event-status { display: none; }
    .dv-list-phone { display: none; }
    .toast { max-width: 300px; font-size: .82rem; }
    .toast-container { left: 1rem; right: 1rem; }
    .card { padding: 1rem; }
}
@media (max-width: 480px) {
    .stat-cards { grid-template-columns: 1fr; }
    .stat-card { padding: 1rem; }
    .stat-card .number { font-size: 1.5rem; }
    .main-content { padding: .5rem .75rem 1.5rem; }
    .card { padding: .85rem; }
    .modal-overlay { padding: 0; }
    .modal { border-radius: 0; max-height: 100vh; height: 100%; }
    .page-header h1 { font-size: 1.2rem; }
    .fc-cell { min-height: 45px; padding: .2rem; }
    .fc-event { display: none; }
    .fc-more { display: none; }
    .fc-mobile-badge { display: flex !important; align-items: center; justify-content: center; }
    .fc-day-num { font-size: .7rem; }
    .embed-code { font-size: .72rem; }
    .login-card { padding: 1.75rem 1.25rem; }
}
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 99;
}

/* ── Info button ───────────────────────────────────────────── */
.btn-info { background: var(--adm-info); color: #fff; }
.btn-info:hover { background: #2563EB; }

/* ═══════════════════ CALENDAR VIEW ═══════════════════════ */
.cal-card { padding: 1rem !important; overflow: hidden; }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.cal-view-btns { display: flex; gap: .25rem; }
.cal-month-label {
    font-size: 1.1rem; font-weight: 700; font-family: 'Space Grotesk', var(--font);
    min-width: 140px; padding: 0 .5rem;
}

/* ── Month grid ── */
.full-calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 1px; background: rgba(255,255,255,.06);
    border-radius: var(--adm-radius); overflow: hidden;
}
.fc-head { padding: .5rem; text-align: center; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--adm-gray-500); background: rgba(255,255,255,.03); }
.fc-head:nth-child(6), .fc-head:nth-child(7) { color: var(--adm-gray-400); opacity: .7; }
.fc-cell { background: rgba(38,50,56,0.3); min-height: 90px; padding: .35rem; cursor: pointer; transition: background .15s; position: relative; }
.fc-cell:hover { background: rgba(255,255,255,.06); }
.fc-cell.fc-empty { cursor: default; background: rgba(38,50,56,.15); }
.fc-cell.fc-today { background: rgba(5,209,90,.08); box-shadow: inset 0 0 0 2px rgba(5,209,90,.35); }
.fc-cell.fc-weekend { background: rgba(255,255,255,.02); }
.fc-cell.fc-other-month { opacity: .4; }
.fc-cell.fc-has-events { cursor: pointer; }
.fc-day-num { font-size: .8rem; font-weight: 600; margin-bottom: .25rem; color: var(--adm-gray-700); }
.fc-weekend .fc-day-num { opacity: .65; }
.fc-today .fc-day-num { color: #05d15a; font-weight: 800; }
.fc-event { font-size: .65rem; padding: .15rem .3rem; border-radius: .2rem; margin-bottom: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; cursor: pointer; }
.fc-event:hover { filter: brightness(1.2); }
.fc-event-new { background: var(--adm-info-light); color: var(--adm-info); }
.fc-event-confirmed { background: var(--adm-success-light); color: var(--adm-success); }
.fc-event-completed { background: var(--adm-gray-100); color: var(--adm-gray-500); }
.fc-time { font-weight: 600; }
.fc-more { font-size: .6rem; color: var(--adm-gray-400); margin-top: .1rem; }
/* Mobile badge — hidden by default, shown via media queries */
.fc-mobile-badge {
    display: none; position: absolute; bottom: .2rem; left: 50%; transform: translateX(-50%);
    background: var(--adm-primary); color: #fff; font-size: .55rem; font-weight: 700;
    min-width: 16px; height: 16px; padding: 0 .25rem; border-radius: 1rem;
    line-height: 16px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* ── Week view ── */
.week-view { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,.06); border-radius: var(--adm-radius); overflow: hidden; }
.wv-day { background: rgba(38,50,56,0.3); }
.wv-day.wv-today { background: rgba(5,209,90,.06); }
.wv-day.wv-weekend { background: rgba(255,255,255,.02); }
.wv-day-header { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.06); }
.wv-day-header:hover { background: rgba(255,255,255,.04); }
.wv-day-name { font-weight: 700; font-size: .8rem; color: var(--adm-gray-500); text-transform: uppercase; min-width: 2rem; }
.wv-day-num { font-size: 1.1rem; font-weight: 800; color: var(--adm-gray-700); }
.wv-today-num { color: #fff; background: #05d15a; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.wv-day-month { font-size: .7rem; color: var(--adm-gray-400); margin-left: auto; }
.wv-events { padding: .25rem .75rem .5rem; }
.wv-empty { font-size: .75rem; color: var(--adm-gray-400); padding: .25rem 0; }
.wv-event { display: flex; align-items: center; gap: .75rem; padding: .5rem .65rem; margin-bottom: .25rem; border-radius: .35rem; cursor: pointer; transition: background .15s; border-left: 3px solid transparent; }
.wv-event:hover { background: rgba(255,255,255,.05); }
.wv-event-new { border-left-color: var(--adm-info); }
.wv-event-confirmed { border-left-color: var(--adm-success); }
.wv-event-completed { border-left-color: var(--adm-gray-400); }
.wv-event-time { font-size: .78rem; font-weight: 600; color: var(--adm-gray-500); min-width: 80px; white-space: nowrap; }
.wv-event-info { flex: 1; min-width: 0; }
.wv-event-info strong { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-event-info span { font-size: .72rem; color: var(--adm-gray-400); }
.wv-event-status { flex-shrink: 0; }

/* ── Day view ── */
.day-view { }
.dv-header { display: flex; align-items: center; gap: .75rem; padding: .75rem 0 1rem; flex-wrap: wrap; }
.dv-day-name { font-size: 1rem; font-weight: 700; text-transform: uppercase; color: var(--adm-gray-500); }
.dv-date { font-size: 1.2rem; font-weight: 800; font-family: 'Space Grotesk', var(--font); }
.dv-today .dv-date { color: #05d15a; }
.dv-today-badge { background: #05d15a; color: #fff; font-size: .65rem; font-weight: 700; padding: .15rem .5rem; border-radius: 1rem; }
.dv-grid { border-radius: var(--adm-radius); overflow: hidden; background: rgba(255,255,255,.04); }
.dv-row { display: flex; border-bottom: 1px solid rgba(255,255,255,.06); min-height: 48px; }
.dv-time { width: 55px; flex-shrink: 0; padding: .4rem .5rem; font-size: .72rem; font-weight: 600; color: var(--adm-gray-400); text-align: right; border-right: 1px solid rgba(255,255,255,.06); }
.dv-slot { flex: 1; padding: .25rem .5rem; display: flex; flex-direction: column; gap: .2rem; }
.dv-event { display: flex; gap: .5rem; align-items: center; padding: .4rem .6rem; border-radius: .3rem; cursor: pointer; transition: background .15s; }
.dv-event:hover { filter: brightness(1.15); }
.dv-event-new { background: var(--adm-info-light); border-left: 3px solid var(--adm-info); }
.dv-event-confirmed { background: var(--adm-success-light); border-left: 3px solid var(--adm-success); }
.dv-event-completed { background: var(--adm-gray-100); border-left: 3px solid var(--adm-gray-400); }
.dv-event-time { font-size: .75rem; font-weight: 700; min-width: 85px; white-space: nowrap; }
.dv-event-name { font-size: .82rem; font-weight: 600; }
.dv-event-svc { font-size: .72rem; color: var(--adm-gray-400); }
.dv-summary { margin-top: 1.25rem; }
.dv-summary h4 { margin-bottom: .75rem; font-size: .9rem; }
.dv-list { display: flex; flex-direction: column; gap: .25rem; }
.dv-list-item { display: flex; align-items: center; gap: .75rem; padding: .55rem .65rem; background: rgba(255,255,255,.03); border-radius: .35rem; cursor: pointer; transition: background .15s; }
.dv-list-item:hover { background: rgba(255,255,255,.07); }
.dv-list-time { font-size: .78rem; font-weight: 600; min-width: 80px; white-space: nowrap; color: var(--adm-gray-500); }
.dv-list-info { flex: 1; min-width: 0; }
.dv-list-info strong { display: block; font-size: .82rem; }
.dv-list-info span { font-size: .72rem; color: var(--adm-gray-400); }
.dv-list-phone { font-size: .75rem; color: var(--adm-gray-400); flex-shrink: 0; }
.dv-list-status { flex-shrink: 0; }

/* ═══════════════════ LIGHT THEME ═══════════════════════ */
body.theme-light {
    --adm-primary: #007e34;
    --adm-primary-hover: #009940;
    --adm-primary-light: rgba(0,126,52,.1);
    --adm-sidebar-bg: #ffffff;
    --adm-sidebar-text: #6B7280;
    --adm-sidebar-active: #007e34;
    --adm-bg: #f3f4f6;
    --adm-white: #ffffff;
    --adm-gray-100: #f9fafb;
    --adm-gray-200: #e5e7eb;
    --adm-gray-300: #d1d5db;
    --adm-gray-400: #9ca3af;
    --adm-gray-500: #6b7280;
    --adm-gray-700: #374151;
    --adm-gray-900: #111827;
    --adm-success: #059669;
    --adm-success-light: rgba(5,150,105,.1);
    --adm-warning: #d97706;
    --adm-warning-light: rgba(217,119,6,.1);
    --adm-danger: #dc2626;
    --adm-danger-light: rgba(220,38,38,.1);
    --adm-info: #2563eb;
    --adm-info-light: rgba(37,99,235,.1);
    --adm-shadow: 0 1px 3px rgba(0,0,0,.08);
    --adm-shadow-lg: 0 4px 12px rgba(0,0,0,.10);
    background: var(--adm-bg);
    color: var(--adm-gray-900);
}
body.theme-light .sidebar {
    border-right: 1px solid #e5e7eb;
}
body.theme-light .sidebar-brand {
    color: #111827;
    border-bottom-color: #e5e7eb;
}
body.theme-light .nav-link:hover {
    background: rgba(0,0,0,.04);
    color: #111827;
}
body.theme-light .nav-link.active {
    background: rgba(0,126,52,.08);
    color: #007e34;
    border-left-color: #007e34;
}
body.theme-light .sidebar-footer {
    border-top-color: #e5e7eb;
}
body.theme-light .sidebar-footer a { color: #6b7280; }
body.theme-light .sidebar-footer a:hover { color: #111827; }
body.theme-light .topbar {
    background: #ffffff;
    border-bottom-color: #e5e7eb;
}
body.theme-light .topbar-brand { color: #111827; }
body.theme-light .topbar-brand i { color: #007e34; }
body.theme-light .topbar-logout { color: #6b7280; }
body.theme-light .topbar-logout:hover { color: #111827; background: #f3f4f6; }
body.theme-light .mobile-nav { background: #ffffff; border-bottom-color: #e5e7eb; }
body.theme-light .mob-nav-item { color: #6b7280; }
body.theme-light .mob-nav-item:hover { color: #111827; }
body.theme-light .mob-nav-item.active { color: #007e34; }
body.theme-light .mob-nav-item.active::after { background: #007e34; }
body.theme-light .topbar-toggle { color: #6b7280; }
body.theme-light .card {
    background: #ffffff;
    border-color: #e5e7eb;
}
body.theme-light .stat-card .number { color: #007e34; }
body.theme-light thead th {
    background: #f9fafb;
    border-bottom-color: #e5e7eb;
    color: #6b7280;
}
body.theme-light tbody td { border-bottom-color: #f3f4f6; }
body.theme-light tbody tr:hover { background: #f9fafb; }
body.theme-light input[type=text], body.theme-light input[type=email],
body.theme-light input[type=tel], body.theme-light input[type=password],
body.theme-light input[type=number], body.theme-light input[type=date],
body.theme-light input[type=time], body.theme-light input[type=url],
body.theme-light input[type=color], body.theme-light select,
body.theme-light textarea {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}
body.theme-light input:focus, body.theme-light select:focus,
body.theme-light textarea:focus {
    border-color: #007e34;
    box-shadow: 0 0 0 3px rgba(0,126,52,.12);
}
body.theme-light .btn-outline {
    color: #374151;
    border-color: #d1d5db;
}
body.theme-light .btn-outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}
body.theme-light .modal {
    background: #ffffff;
    border-color: #e5e7eb;
}
body.theme-light .modal-header { border-bottom-color: #e5e7eb; }
body.theme-light .modal-footer { border-top-color: #e5e7eb; }
body.theme-light .modal-close { color: #9ca3af; }
body.theme-light .modal-close:hover { color: #111827; background: #f3f4f6; }
body.theme-light .filters-bar {
    background: #ffffff;
    border-color: #e5e7eb;
}
body.theme-light .toggle { background: #d1d5db; }
body.theme-light .toggle:checked { background: #007e34; }
body.theme-light .embed-code {
    background: #1e293b;
}
body.theme-light .hours-table .day-row { border-bottom-color: #f3f4f6; }
body.theme-light .fc-cell { background: #fafafa; }
body.theme-light .fc-cell:hover { background: #f0fdf4; }
body.theme-light .fc-cell.fc-empty { background: #f3f4f6; }
body.theme-light .fc-cell.fc-today { background: #ecfdf5; box-shadow: inset 0 0 0 2px rgba(0,126,52,.25); }
body.theme-light .fc-cell.fc-weekend { background: #f5f5f5; }
body.theme-light .full-calendar-grid { background: #e5e7eb; }
body.theme-light .fc-head { background: #f3f4f6; }
body.theme-light .fc-day-num { color: #374151; }
body.theme-light .fc-today .fc-day-num { color: #007e34; }
body.theme-light .wv-day { background: #fff; }
body.theme-light .wv-day.wv-today { background: #f0fdf4; }
body.theme-light .wv-day.wv-weekend { background: #fafafa; }
body.theme-light .wv-day-header { border-bottom-color: #e5e7eb; }
body.theme-light .wv-day-header:hover { background: #f9fafb; }
body.theme-light .wv-day-num { color: #111827; }
body.theme-light .wv-today-num { color: #fff; background: #007e34; }
body.theme-light .week-view { background: #e5e7eb; }
body.theme-light .wv-event:hover { background: rgba(0,0,0,.03); }
body.theme-light .dv-grid { background: #fafafa; }
body.theme-light .dv-row { border-bottom-color: #e5e7eb; }
body.theme-light .dv-time { border-right-color: #e5e7eb; color: #9ca3af; }
body.theme-light .dv-event:hover { filter: brightness(1.05); }
body.theme-light .dv-list-item { background: #f9fafb; }
body.theme-light .dv-list-item:hover { background: #f3f4f6; }
body.theme-light .dv-today .dv-date { color: #007e34; }
body.theme-light .dv-today-badge { background: #007e34; }
body.theme-light .sidebar-brand i { color: #007e34; }
body.theme-light .cs-trigger { background: #ffffff; border-color: #d1d5db; color: #111827; }
body.theme-light .cs-trigger:hover { border-color: #9ca3af; }
body.theme-light .cs-trigger.open { border-color: #007e34; box-shadow: 0 0 0 3px rgba(0,126,52,.12); }
body.theme-light .cs-arrow { color: #9ca3af; }
body.theme-light .cs-dropdown { background: #ffffff; border-color: #d1d5db; }
body.theme-light .cs-option { color: #374151; }
body.theme-light .cs-option:hover { background: rgba(0,126,52,.06); color: #007e34; }
body.theme-light .cs-option.selected { background: rgba(0,126,52,.08); color: #007e34; }
body.theme-light .login-page { background: linear-gradient(135deg, #f3f4f6, #e2e8f0); }
body.theme-light .login-card { background: #ffffff; border-color: #e5e7eb; backdrop-filter: none; }
body.theme-light .login-card h1 { color: #111827; }
body.theme-light .login-card h1 i { color: #007e34; }
body.theme-light .login-card .subtitle { color: #6b7280; }
body.theme-light .login-card .error-msg { background: rgba(220,38,38,.08); }
body.theme-light .empty-state { color: #9ca3af; }
body.theme-light .empty-state .icon { color: #d1d5db; }
body.theme-light .sidebar-backdrop { background: rgba(0,0,0,.15); }
