/* ============================================================
   TIKIBAR MIĘDZYZDROJE — GŁÓWNY ARKUSZ STYLÓW
   Spójny design: czarne tło, złote akcenty, białe napisy
   ============================================================ */

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

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
}

/* ── Kolory bazowe ──────────────────────────────────────────── */
:root {
    --gold:       #ffd700;
    --gold-light: #ffea63;
    --gold-dim:   rgba(255, 215, 0, 0.25);
    --dark:       #111111;
    --dark2:      #1a1a1a;
    --dark3:      #222222;
    --text:       #ffffff;
    --text-muted: #aaaaaa;
    --danger:     #e74c3c;
    --success:    #2ecc71;
}

/* ── Tła stron ──────────────────────────────────────────────── */
body.page-bg-default {
    background: radial-gradient(circle at top, #1a1a1a 0%, #000 70%);
}
body.page-bg-home {
    background: url("/static/images/bg_home_tikibar.jpg") center/cover no-repeat fixed;
}
body.page-bg-menu-board {
    background: url("/static/images/bg_menu_board.jpg") center/cover no-repeat fixed;
}
body.page-bg-reservations {
    background: url("/static/images/bg_bar_neon.jpg") center/cover no-repeat fixed;
}
body.page-bg-reservations-add {
    background: url("/static/images/bg_reservations_add.jpg") center/cover no-repeat fixed;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.header .navbar {
    position: fixed !important;
    top: 0; width: 100%; z-index: 9999;
    backdrop-filter: blur(20px);
    background-color: rgba(0,0,0,0.92) !important;
    border-bottom: 2px solid var(--gold-dim);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

#logo {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 3px 3px 10px rgba(0,0,0,1);
    letter-spacing: 2px;
    text-decoration: none;
}
#logo:hover { color: var(--gold) !important; }

.navbar-nav .nav-link {
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 12px;
    transition: all 0.25s ease;
    text-decoration: none;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.nav-active {
    color: var(--gold) !important;
    background: rgba(255,215,0,0.1);
}

.lang-select {
    background: rgba(0,0,0,0.7) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ── Layout ─────────────────────────────────────────────────── */
.main-body {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 120px;
}

.messages-wrap {
    position: fixed;
    top: 80px;
    left: 0; right: 0;
    z-index: 9000;
    pointer-events: none;
}
.messages-wrap .alert-tiki {
    pointer-events: all;
    max-width: 700px;
    margin: 0 auto 8px;
}

/* ── Główny przycisk CTA (złoty, wszędzie taki sam) ─────────── */
.btn-tiki {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #000 !important;
    font-weight: 800;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-tiki:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,215,0,0.35);
    color: #000 !important;
    text-decoration: none;
}
.btn-tiki:disabled {
    background: #666;
    color: #aaa !important;
    transform: none;
    cursor: not-allowed;
}
.btn-tiki-lg {
    font-size: 1.1rem;
    padding: 14px 36px;
}
.btn-tiki-sm {
    font-size: 0.85rem;
    padding: 8px 20px;
}

/* ── Karty ──────────────────────────────────────────────────── */
.card {
    background: rgba(17,17,17,0.95) !important;
    border: 1px solid rgba(255,215,0,0.2) !important;
    color: #fff;
}
.card * { color: #fff; }

.content-panel {
    background: rgba(0,0,0,0.85);
    border: 1px solid var(--gold-dim);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* ── Formularze ─────────────────────────────────────────────── */
.form-control,
.form-select {
    background: rgba(0,0,0,0.75) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-radius: 10px;
    transition: border-color 0.2s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.15) !important;
    background: rgba(0,0,0,0.9) !important;
    color: #fff !important;
}
.form-control::placeholder { color: #666 !important; }
.form-label { color: #fff !important; font-weight: 700; }
.form-text, .helptext { color: var(--text-muted) !important; font-size: 0.82rem; }
.invalid-feedback { color: #ff6b6b !important; font-size: 0.82rem; }
select option { background: #111; color: #fff; }

/* ── Pasek informacji o cenie ───────────────────────────────── */
.price-info-bar {
    background: linear-gradient(135deg, #1a1a00, #2a2a00);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--gold);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.price-total {
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
}

/* ── Informacja o slotach ───────────────────────────────────── */
.slots-info {
    background: rgba(255,215,0,0.08);
    border: 1px solid var(--gold-dim);
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--gold);
    font-size: 0.88rem;
}

/* ── Overlay za duże grupy ──────────────────────────────────── */
.overlimit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.overlimit-box {
    background: var(--dark2);
    border: 2px solid var(--gold);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.overlimit-icon { font-size: 4rem; margin-bottom: 16px; }
.overlimit-title {
    color: var(--gold);
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 16px;
}
.overlimit-text {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.6;
}
.overlimit-subtext { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.overlimit-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #000 !important;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.overlimit-phone:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}
.overlimit-note { color: var(--text-muted); font-size: 0.85rem; }

/* ── Strona sukcesu ─────────────────────────────────────────── */
.success-header {
    background: linear-gradient(135deg, #0a2a0a, #1a4a1a);
    border-bottom: 3px solid var(--gold);
    color: #fff;
}
.success-icon { font-size: 3rem; }

.res-code-badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    font-size: 1.8rem;
    font-weight: 900;
    padding: 10px 28px;
    border-radius: 50px;
    letter-spacing: 4px;
}

/* ── Lista szczegółów ───────────────────────────────────────── */
.detail-list { border-radius: 12px; overflow: hidden; }
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); font-size: 0.88rem; }
.detail-value { font-weight: 700; font-size: 0.88rem; text-align: right; max-width: 60%; }

/* ── Blok płatności ─────────────────────────────────────────── */
.payment-box {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--gold);
}
.payment-box-inner {
    background: linear-gradient(135deg, #1a1a00, #2a2a00);
    padding: 24px;
    text-align: center;
}
.payment-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    margin: 8px 0;
}
.payment-pending-badge {
    display: inline-block;
    background: rgba(255,215,0,0.1);
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-size: 0.78rem;
    padding: 4px 14px;
    border-radius: 50px;
}

/* ── Lokalizacja ────────────────────────────────────────────── */
.location-box {
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
}

/* ── Alert info ─────────────────────────────────────────────── */
.alert-tiki {
    background: rgba(255,215,0,0.12);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.9rem;
}
.alert-tiki-info {
    background: rgba(100,200,255,0.08);
    border: 1px solid rgba(100,200,255,0.3);
    color: #a0d8ef;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.88rem;
}
.alert-tiki-danger {
    background: rgba(231,76,60,0.12);
    border: 1px solid rgba(231,76,60,0.4);
    color: #ff8a80;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.9rem;
}

/* ── Odznaki płatności ──────────────────────────────────────── */
.badge-paid {
    background: rgba(46,204,113,0.15);
    color: #2ecc71;
    border: 1px solid rgba(46,204,113,0.4);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge-pending {
    background: rgba(255,215,0,0.12);
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 700;
}
.badge-failed {
    background: rgba(231,76,60,0.12);
    color: #ff6b6b;
    border: 1px solid rgba(231,76,60,0.4);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ── Staff login header ─────────────────────────────────────── */
.staff-login-header {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border-bottom: 3px solid var(--gold);
    color: #fff;
}

/* ── Dashboard ──────────────────────────────────────────────── */
.stat-card {
    background: var(--dark2);
    border: 1px solid var(--gold-dim);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

.dashboard-section {
    background: rgba(17,17,17,0.95);
    border: 1px solid rgba(255,215,0,0.15);
    border-radius: 20px;
    overflow: hidden;
}
.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,215,0,0.15);
    background: rgba(255,215,0,0.04);
}
.dashboard-section-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.dashboard-table {
    color: #fff;
    margin: 0;
}
.dashboard-table thead th {
    background: rgba(255,215,0,0.06);
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    border-color: rgba(255,255,255,0.07);
    white-space: nowrap;
}
.dashboard-table tbody td {
    padding: 12px 16px;
    border-color: rgba(255,255,255,0.05);
    vertical-align: middle;
    color: #1a1a1a !important;
    font-size: 0.88rem;
}
.dashboard-table tbody tr:hover {
    background: rgba(255,215,0,0.04);
}

.res-id {
    color: #1a1a1a !important;
    font-weight: 800;
    font-size: 0.85rem;
}
.time-badge {
    background: rgba(255,215,0,0.1);
    color: #1a1a1a !important;
    border: 1px solid var(--gold-dim);
    border-radius: 50px;
    padding: 2px 10px;
    font-size: 0.82rem;
    font-weight: 700;
}
.notes-preview {
    color: #1a1a1a !important;
    font-size: 0.82rem;
    cursor: help;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-action-edit {
    background: rgba(255,215,0,0.12);
    color: #1a1a1a !important;
    border: 1px solid var(--gold-dim);
}
.btn-action-edit:hover {
    background:  #1a1a1a !important;
    color: #000 !important;
}
.btn-action-delete {
    background: rgba(231,76,60,0.12);
    color: #ff6b6b !important;
    border: 1px solid rgba(231,76,60,0.3);
}
.btn-action-delete:hover {
    background: var(--danger);
    color: #fff !important;
}

.menu-add-form {
    padding: 24px;
    border-bottom: 1px solid rgba(255,215,0,0.1);
    background: rgba(255,215,0,0.02);
}

.menu-type-badge {
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 700;
}
.menu-type-starter  { background: rgba(52,152,219,0.15); color: #3498db; border: 1px solid rgba(52,152,219,0.3); }
.menu-type-main     { background: rgba(46,204,113,0.15); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.menu-type-dessert  { background: rgba(155,89,182,0.15); color: #9b59b6; border: 1px solid rgba(155,89,182,0.3); }
.menu-type-drinks   { background: rgba(255,215,0,0.12);  color: var(--gold); border: 1px solid var(--gold-dim); }

.hours-card {
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hours-day  { color: var(--text-muted); font-size: 0.88rem; }
.hours-time { color: var(--gold); font-weight: 700; font-size: 0.88rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.95) !important;
    border-top: 1px solid rgba(255,215,0,0.2);
    backdrop-filter: blur(15px);
    z-index: 8000;
}
.footer-heading {
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.footer-table td { color: #ccc; font-size: 0.82rem; }
.footer-social { display: flex; gap: 16px; justify-content: center; }
.footer-social-link {
    color: #aaa !important;
    font-size: 1.2rem;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-social-link:hover { color: var(--gold) !important; }
.footer-addr { color: #aaa; font-size: 0.82rem; line-height: 1.7; }
.footer-phone {
    color: var(--gold) !important;
    text-decoration: none;
    font-weight: 700;
}
.footer-phone:hover { color: var(--gold-light) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero-overlay {
    background: rgba(0,0,0,0.5);
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.display-3 { font-weight: 900 !important; text-shadow: 4px 4px 12px rgba(0,0,0,0.9) !important; }
.lead { font-size: clamp(1.1rem,3vw,1.6rem) !important; }

/* ── Tekst ogólny ───────────────────────────────────────────── */
.text-muted { color: var(--text-muted) !important; }

/* ── Responsywność ──────────────────────────────────────────── */
@media (max-width: 992px) {
    .navbar-nav .nav-link { font-size: 1.2rem !important; padding: 0.7rem 1rem !important; }
    #logo { font-size: 2rem !important; }
    .main-body { padding-top: 80px; padding-bottom: 140px; }
    .footer { position: relative; }
    .main-body { padding-bottom: 40px; }
}
@media (max-width: 576px) {
    .res-code-badge { font-size: 1.3rem; letter-spacing: 2px; }
    .payment-amount { font-size: 1.7rem; }
    .overlimit-phone { font-size: 1.2rem; padding: 12px 24px; }
}
/* ── Floor Map Editor (staff_floor_map) ─────────────────────── */

.fm-map-wrapper {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: auto;
    background: radial-gradient(circle at top, #222 0%, #000 70%);
    border-top: 1px solid rgba(255,215,0,0.15);
}

.fm-map-inner {
    position: relative;
    transform-origin: 0 0;
    /* scale ustawiany w JS */
}

.fm-map-canvas {
    position: relative;
    background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.02),
        rgba(255,255,255,0.02) 20px,
        rgba(0,0,0,0.2) 20px,
        rgba(0,0,0,0.2) 21px
    ),
    repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.02),
        rgba(255,255,255,0.02) 20px,
        rgba(0,0,0,0.2) 20px,
        rgba(0,0,0,0.2) 21px
    );
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* Pojedynczy stół na mapie */
.fm-table {
    position: absolute;
    border-radius: 12px;
    border: 2px solid rgba(0,0,0,0.6);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    cursor: move;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #000;
    font-size: 0.78rem;
    user-select: none;
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}

.fm-table:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.8);
    transform: translateY(-1px);
}

.fm-table-selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(255,215,0,0.7), 0 10px 24px rgba(0,0,0,0.9);
}

.fm-table-ghost {
    border-style: dashed;
    opacity: 0.8;
}

.fm-table-name {
    font-weight: 900;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.fm-table-cap {
    font-size: 0.7rem;
}

/* Lista obszarów */
.fm-area-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.6);
    vertical-align: middle;
}

/* Stoły nieumieszczone na mapie */
.fm-unplaced-list {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,215,0,0.15);
    padding: 6px;
    background: rgba(0,0,0,0.4);
}

.fm-unplaced-item {
    width: 100%;
    text-align: left;
    padding: 6px 10px;
    margin-bottom: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(17,17,17,0.9);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.fm-unplaced-item:hover {
    background: rgba(255,215,0,0.14);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* Drobne poprawki w dashboard-section gdy używane w edytorze */
.fm-map-wrapper .dashboard-section-header {
    border-bottom: none;
}
/* Panel boczny edytora mapy – własny scroll */
.fm-side-panel {
    max-height: calc(100vh - 140px);  /* możesz skorygować offset */
    overflow-y: auto;
    padding-right: 4px;
}

/* opcjonalny ładniejszy scrollbar */
.fm-side-panel::-webkit-scrollbar {
    width: 6px;
}
.fm-side-panel::-webkit-scrollbar-track {
    background: transparent;
}
.fm-side-panel::-webkit-scrollbar-thumb {
    background: rgba(255,215,0,0.6);
    border-radius: 3px;
}
.btn-tiki-apply {
    position: relative;
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(250, 204, 21, 0.8);
    color: #0b1120;
    background: linear-gradient(135deg, #facc15, #eab308);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.9),
        0 10px 25px rgba(234, 179, 8, 0.45);
    transition:
        transform 0.05s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.btn-tiki-apply:hover {
    background: radial-gradient(circle at top left, #fbbf24, #eab308);
    color: #020617;
    box-shadow:
        0 0 0 1px rgba(250, 250, 250, 0.6),
        0 12px 30px rgba(234, 179, 8, 0.6);
    transform: translateY(-1px);
}

.btn-tiki-apply:active {
    transform: translateY(0);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 1),
        0 4px 12px rgba(15, 23, 42, 0.9);
}

.btn-tiki-apply:focus-visible {
    outline: 2px solid rgba(250, 204, 21, 0.9);
    outline-offset: 2px;
}
/* 1. Własna klasa na te inputy */
.fm-filter-input {
    background-color: #020617 !important;
    color: #e5e7eb !important;
    border-color: rgba(148, 163, 184, 0.7) !important;
}

/* 2. Ikona w WebKit (Chrome/Edge/Safari) */
.fm-filter-input::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.2) !important;
    opacity: 0.9 !important;
    cursor: pointer;
}

/* 3. Dla Firefoxa */
.fm-filter-input {
    color-scheme: dark;
}
<style>
#fm-map-wrapper {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: auto;
    background: radial-gradient(circle at top, #222 0%, #000 70%);
    border-top: 1px solid rgba(255,215,0,0.15);
}

/* ważne – kontener odniesienia dla absolutnych left/top */
#fm-map-inner {
    position: relative;
    transform-origin: 0 0;
}

#fm-map-canvas {
    position: absolute; /* <=== różnica vs editor */
    left: 0;
    top: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.02),
            rgba(255,255,255,0.02) 20px,
            rgba(0,0,0,0.2) 20px,
            rgba(0,0,0,0.2) 21px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.02),
            rgba(255,255,255,0.02) 20px,
            rgba(0,0,0,0.2) 20px,
            rgba(0,0,0,0.2) 21px
        );
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* żeby stoły / obszary wyglądały jak w edytorze */
.fm-area-rect {
    position: absolute;
    border: 2px solid;
    border-radius: 8px;
    min-width: 80px;
    min-height: 60px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.45);
    overflow: hidden;
}
.fm-area-rect-label {
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
    pointer-events: none;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    white-space: nowrap;
}
.fm-table {
    position: absolute;
    z-index: 2;
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}
.fm-table-name { font-weight: 700; }
.fm-table-cap  { font-size: 0.7rem; opacity: 0.85; }

.fm-ws-table {
    position: absolute;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    overflow: hidden;
}
.fm-ws-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    pointer-events: none;
}
.fm-img-on-map {
    position: absolute;
    z-index: 3;
}
.fm-img-on-map-inner {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.7);
    dis
}
.fm-map-wrapper {
    display: flex;
    justify-content: center;   /* centrowanie poziome */
    align-items: center;       /* opcjonalnie pionowe */
}
.fm-map-inner {
    position: relative;
    display: inline-block;     /* ważne, żeby miał własną szerokość/mapW */
}
.fm-map-inner {
    position: relative;
    width: 1200px;   /* JS i tak nadpisze */
    height: 800px;
    margin: 0 auto;  /* centrowanie w wrapperze */
}
.fm-map-wrapper {
    display: flex;
    justify-content: center;   /* centrowanie poziome */
    align-items: center;       /* opcjonalnie pionowe */
}
/* --- Floor map editor --- */
.fm-img-palette {
    width: 40px;
    height: 40px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.fm-img-palette:hover {
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(255,255,255,0.3);
}
.fm-img-palette-wrap {
    position: relative;
    display: inline-block;
}
.fm-img-palette-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
    padding: 0;
}
.fm-img-palette-delete:hover {
    background: rgba(220,53,69,0.9);
}

.fm-side-panel {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 4px;
}
.fm-side-panel::-webkit-scrollbar {
    width: 6px;
}
.fm-side-panel::-webkit-scrollbar-track {
    background: transparent;
}
.fm-side-panel::-webkit-scrollbar-thumb {
    background: rgba(255,215,0,0.6);
    border-radius: 3px;
}

/* scroll dla listy „Stoły bez pozycji” */
.fm-unplaced-wrapper {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}
.fm-unplaced-wrapper::-webkit-scrollbar {
    width: 6px;
}
.fm-unplaced-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.fm-unplaced-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,215,0,0.6);
    border-radius: 3px;
}
.fm-unplaced-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,215,0,0.6) transparent;
}
/* --- Floor map editor: wrapper + canvas --- */
.fm-map-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: radial-gradient(circle at top left, #333 0, #111 50%, #000 100%);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    overflow: hidden;
}

.fm-map-inner {
    position: relative;
    width: 100%;
    height: 600px;
    cursor: grab;
    background: transparent;
}

/* właściwa mapa: jasna siatka + tło */
.fm-map-canvas {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1200px;      /* fallback, JS i tak skaluje */
    height: 800px;      /* fallback */
    background-color: #111;
    background-image:
        linear-gradient(#222 1px, transparent 1px),
        linear-gradient(90deg, #222 1px, transparent 1px);
    background-size: 40px 40px;
    border: 1px solid #444;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    transform-origin: center center;
}

/* obszary sali (prostokąty) */
.fm-area-rect {
    position: absolute;
    border-radius: 8px;
    border: 2px dashed rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.35);
    box-shadow: 0 0 8px rgba(0,0,0,0.8);
    overflow: hidden;
}

.fm-area-rect-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 2px 6px;
    font-size: 11px;
    color: #000;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(255,255,255,0.7);
    background: rgba(255,215,0,0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.fm-area-rect-body {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    bottom: 0;
}

/* uchwyty do zmiany rozmiaru obszaru */
.fm-resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    border-radius: 50%;
    border: 1px solid #000;
    box-shadow: 0 0 4px rgba(0,0,0,0.8);
}
.fm-resize-handle.br { right: -5px; bottom: -5px; cursor: se-resize; }
.fm-resize-handle.bl { left: -5px; bottom: -5px; cursor: sw-resize; }
.fm-resize-handle.tr { right: -5px; top: -5px; cursor: ne-resize; }
.fm-resize-handle.tl { left: -5px; top: -5px; cursor: nw-resize; }

/* --- Stoły na mapie --- */
.fm-table {
    position: absolute;
    width: 80px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
    cursor: move;
    transition: box-shadow 0.1s ease, transform 0.1s ease;
}

.fm-table:hover {
    box-shadow: 0 0 12px rgba(255,215,0,0.7);
}

.fm-table-selected {
    box-shadow: 0 0 16px rgba(0,255,255,0.9);
    transform: translateZ(0) scale(1.03);
}

.fm-table-hidden {
    opacity: 0.2;
    border-style: dashed;
}

/* etykiety na stole */
.fm-table-name {
    font-weight: 700;
    font-size: 12px;
}
.fm-table-capacity {
    font-size: 10px;
    color: #ffd700;
}

/* ghost tables (tylko walk-in) */
.fm-table-ghost {
    border-color: #888;
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 6px rgba(128,128,128,0.7);
}

/* --- Stanowiska (Bar, DJ itd.) --- */
.fm-workstation {
    position: absolute;
    min-width: 60px;
    min-height: 40px;
    padding: 4px 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #006064, #004d40);
    border: 2px solid #26c6da;
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: move;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
    transition: box-shadow 0.1s ease, transform 0.1s ease;
}
.fm-map-wrapper { position: relative; width:100%; min-height:500px; overflow:hidden; background:#000; }
.fm-map-inner { position: relative; width:100%; height:600px; cursor:grab; }
.fm-map-canvas {
    position:absolute; inset:0; margin:auto;
    width:1200px; height:800px;
    background-color:#111;
    background-image:
        linear-gradient(#222 1px, transparent 1px),
        linear-gradient(90deg, #222 1px, transparent 1px);
    background-size:40px 40px;
    border:1px solid #444;
    box-shadow:0 0 20px rgba(0,0,0,0.8);
    transform-origin:center center;
}
/* Layout ogólny */
.fm-map-wrapper {
  position: relative;
  overflow: auto;
  background-color: #0b0b10;
  border: 1px solid #333;
  border-radius: 8px;
}

.fm-map-inner {
  position: relative;
}

.fm-map-canvas {
  position: relative;
  background: radial-gradient(circle at 20% 20%, #222 0, #111 50%, #050509 100%);
}

/* Obszary */
.fm-area-rect {
  position: absolute;
  box-sizing: border-box;
  border-radius: 8px;
}

.fm-area-rect-label {
  position: absolute;
  top: 4px;
  left: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  pointer-events: none;
}

.fm-area-resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255,255,255,0.7);
  cursor: se-resize;
}

/* Stoły – wspólna baza */
.fm-table {
  position: absolute;
  box-sizing: border-box;
  border-radius: 6px;
  border: 2px solid #555;
  background: #2b2b2b;
  color: #f5f5f5;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: move;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s, background-color 0.15s;
}

.fm-table-inner {
  font-weight: 600;
  margin-bottom: 2px;
}

.fm-table-seats {
  font-size: 10px;
  opacity: 0.9;
}

/* Kolor wg rezerwacji */
.fm-table-free {
  background: #2c2f36;
  border-color: #555;
}

.fm-table-reserved {
  background: #145c32;
  border-color: #18a34a;
  box-shadow: 0 0 10px rgba(24,163,74,0.7);
}

/* Zaznaczenie */
.fm-table-selected {
  box-shadow: 0 0 12px rgba(255,215,0,0.9);
  border-color: #ffd700;
}

/* Ghost table */
.fm-table-ghost {
  opacity: 0.55;
  border-style: dashed;
}

/* Workstation jako stół */
.fm-ws-as-table {
  /* można ewentualnie lekko inny kolor ramki, żeby odróżnić od stołów */
  border-style: dotted;
}

/* Resize dla stołu/workstation */
.fm-table-resize-handle,
.fm-ws-resize-handle {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255,255,255,0.8);
  cursor: se-resize;
}

/* Obrazki na mapie */
.fm-img-inst {
  position: absolute;
  box-sizing: border-box;
  cursor: move;
  box-shadow: 0 0 8px rgba(0,0,0,0.7);
  border-radius: 4px;
  overflow: hidden;
}

.fm-img-inst img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.fm-img-resize-handle {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255,255,255,0.9);
  cursor: se-resize;
}

/* Lista obszarów / panel boczny */
.fm-side-panel .card {
  background: #121218;
  border-color: #2a2a3a;
}

.fm-side-panel .card-header {
  background: linear-gradient(90deg, #181824, #141420);
  border-bottom: 1px solid #33344a;
  color: #f5f5f5;
}

.fm-side-panel .card-body {
  background: #111119;
  color: #e0e0e0;
}

.fm-area-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 4px rgba(0,0,0,0.7);
}

/* Niezmapowane stoły */
.fm-unplaced-wrapper {
  max-height: 180px;
  overflow-y: auto;
}

.fm-unplaced-item {
  width: 100%;
  text-align: left;
  border-radius: 4px;
  border: 1px solid #333;
  background: #1b1e26;
  color: #f5f5f5;
  padding: 3px 6px;
  margin-bottom: 3px;
  font-size: 11px;
  cursor: pointer;
}

.fm-unplaced-item:hover {
  background: #272b36;
}

/* Paleta obrazków */
.fm-img-palette-wrap {
  position: relative;
}

.fm-img-palette {
  max-width: 72px;
  max-height: 48px;
  border-radius: 4px;
  border: 1px solid #333;
  cursor: pointer;
  object-fit: cover;
}

.fm-img-palette-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
}

/* Alert */
.alert-tiki,
.alert-tiki-danger {
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
}

.alert-tiki {
  background: #12252f;
  color: #e0f7ff;
  border: 1px solid #1f4b60;
}

.alert-tiki-danger {
  background: #3b1212;
  color: #ffe0e0;
  border: 1px solid #7a1d1d;
}
.fm-elem-actions {
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}



.fm-area-rect { position:absolute; border-radius:8px; border:2px dashed rgba(255,255,255,0.4); background:rgba(0,0,0,0.35); box-shadow:0 0 8px rgba(0,0,0,0.8); overflow:hidden; }
.fm-area-rect-label { position:absolute; top:6px; left:10px; font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; opacity:0.9; pointer-events:none; }
.fm-area-resize-handle { position:absolute; bottom:0; right:0; width:16px; height:16px; cursor:se-resize; background:rgba(255,255,255,0.3); border-top-left-radius:4px; border-bottom-right-radius:6px; }

.fm-table { position:absolute; width:80px; height:60px; background:rgba(0,0,0,0.7); border:2px solid #ffd700; border-radius:8px; color:#fff; font-size:11px; display:flex; flex-direction:column; justify-content:center; align-items:center; box-shadow:0 0 10px rgba(0,0,0,0.7); cursor:move; }
.fm-table-resize-handle { position:absolute; bottom:0; right:0; width:14px; height:14px; cursor:se-resize; background:rgba(0,0,0,0.3); border-top-left-radius:4px; border-bottom-right-radius:10px; }
.fm-table-selected { box-shadow:0 0 16px rgba(0,255,255,0.9); transform:scale(1.03); }
.fm-table-ghost { border-color:#888; background:rgba(0,0,0,0.5); box-shadow:0 0 6px rgba(128,128,128,0.7); }

/* zakładki */
.fm-area-tabs { display:flex; gap:4px; flex-wrap:wrap; border-bottom:1px solid rgba(255,215,0,0.15); padding:8px 0 0 0; margin-bottom:0; background:rgba(0,0,0,0.2); }
.fm-area-tab { background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.12); border-bottom:3px solid transparent; color:#aaa; padding:6px 14px; border-radius:6px 6px 0 0; cursor:pointer; font-size:0.8rem; font-weight:600; margin-bottom:-1px; }
.fm-area-tab-active { background:rgba(255,215,0,0.1); border-bottom-color:#ffd700; color:#ffd700; }

/* obrazki */
.fm-img-on-map { position:absolute; z-index:3; cursor:move; }
.fm-img-on-map-inner { width:100%; height:100%; object-fit:contain; pointer-events:none; }
.fm-img-resize-handle { position:absolute; bottom:0; right:0; width:14px; height:14px; cursor:se-resize; background:rgba(0,0,0,0.5); border-top-left-radius:4px; }
.fm-img-remove { position:absolute; top:-6px; right:-6px; width:16px; height:16px; font-size:10px; border-radius:50%; background:rgba(0,0,0,0.7); color:#fff; text-align:center; line-height:16px; cursor:pointer; }


.fm-workstation-icon {







