:root {
    --primary: #2563eb;
    --accent: #10b981;
    --danger: #ef4444;
    --bg-dark: #12161f;
    --panel-bg: rgba(35, 40, 52, 0.82);
    --card-bg: rgba(42, 48, 62, 0.82);
    --text-main: #eeeeee;
    --text-dim: #94a3b8;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
    overscroll-behavior: none;
    position: relative;
    min-height: 100vh;
}

/* Vaste achtergrond met twee subtiele gloedvlekken (diepblauw rechtsboven & cyaan/teal linksonder) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background: 
        /* Diepblauw rechtsboven */
        radial-gradient(circle 750px at 88% 12%, rgba(18, 62, 183, 0.5), transparent 90%),
        /* Subtiel cyaan / teal linksonder */
        radial-gradient(circle 750px at 12% 88%, rgba(14, 146, 135, 0.5), transparent 90%);
}

/* Algemene containers met moderne subtiele glassmorphism */
.card {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Formulier elementen */
input, select, textarea {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid #555;
    border-radius: 2px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
    touch-action: manipulation;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Verberg browser spin-knoppen (up/down pijltjes) bij getal-invoervelden */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Knoppen */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;          /* Ruimte tussen vinkje en tekst */
    margin-top: 1rem;   /* De marge die je eerder aangaf voor block-labels */
}

.checkbox-group input[type="checkbox"] {
    width: 20px;        /* Iets groter voor makkelijk klikken op iPad */
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-group label {
    margin: 0;          /* Reset de margin-top die je op gewone labels hebt */
    cursor: pointer;
    user-select: none;  /* Voorkomt dat tekst geselecteerd wordt bij klikken */
}

/* Inline Input Styling */
.cell-input {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main);
    padding: 4px 6px;
    font-size: 0.85rem;
    border-radius: 4px;
    box-sizing: border-box;
    transition: all 0.15s;
    font-family: inherit;
}

.cell-input:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.cell-input:focus {
    outline: none;
    background: #2a3346;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
    color: white;
}

.cell-input.number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cell-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    background-color: #1a2230;
/*         border: 1.5px solid #3d4a61;
    border-radius: 4px; */
    position: relative;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.cell-checkbox:hover {
    border-color: #60a5fa;
    background-color: #242f42;
}

.cell-checkbox:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}

.cell-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.cell-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-primary { background: var(--primary); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-outline { background: transparent; border: 1px solid #555; color: var(--text-dim); }
.btn:active { transform: scale(0.98); }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }

/* Reusable glassmorphism panel */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand logo styling */
.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* Prijsknoppen voor de kassa's */
.price-btn {
    background: var(--primary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.1s;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-btn:active {
    transform: scale(0.96);
    filter: brightness(1.2);
}

.price-btn.extra {
    background: #184ab7;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Event Tabs navigatiebalk (gebruikt in inbrengers en werklijst) */
.tabs-container {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
    scrollbar-width: thin;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-dim);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.45);
}

/* Status badge voor autosave notificaties */
#saveStatus {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    font-weight: 600;
}

#saveStatus.show {
    opacity: 1;
}

.status-saved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-saving {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-undo {
    background: rgba(167, 139, 250, 0.15);
    color: #c084fc;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

/* Toast notificatie container */
#toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #064e3b;
    border: 1px solid var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Instructiestappen en code-snippets */
.manual-step {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.manual-step h3 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.manual-step p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.code-snippet {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #93c5fd;
    font-size: 0.85rem;
}