/* === GLOBAL === */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0F172A;
    color: #E5E7EB;
}

/* === LAYOUT === */
.layout {
    display: flex;
}

.sidebar {
    width: 240px;
    min-height: 100vh;
    background: #0B1220;
    padding: 20px;
}

.sidebar h2 {
    color: white;
    font-size: 18px;
    margin-bottom: 25px;
}

.sidebar a {
    display: block;
    padding: 10px 14px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #9CA3AF;
    border-radius: 8px;
    transition: 0.2s;
}

.sidebar a:hover {
    background: rgba(37, 99, 235, 0.2);
    color: white;
}

.sidebar a.active {
    background: #2563EB;
    color: white;
    box-shadow: 0 0 10px rgba(37,99,235,0.6);
}

.content {
    flex: 1;
    padding: 30px;
}

/* === TOP BAR === */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.btn-primary {
    background: #2563EB;
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 12px rgba(37,99,235,0.8);
}

.btn-danger {
    background: #EF4444;
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 0 10px rgba(239,68,68,0.8);
}

/* === CARD TABLE === */
.card {
    background: #111827;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px;
    font-size: 13px;
    color: #9CA3AF;
}

td {
    padding: 14px 12px;
    border-top: 1px solid #1F2937;
}

tr:hover {
    background: #1F2937;
}

/* === BADGES === */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.badge-guest {
    background: #F59E0B;
    color: white;
}

.badge-zone {
    background: #22C55E;
    color: white;
}

/* === TOGGLE === */
.toggle {
    position: relative;
    width: 42px;
    height: 22px;
    background: #374151;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.toggle::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle.active {
    background: #22C55E;
    box-shadow: 0 0 10px rgba(34,197,94,0.7);
}

.toggle.active::after {
    left: 22px;
}
.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #1F2937;
    background: #0B1220;
    color: #E5E7EB;
    margin-top: 6px;
}

.input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 8px rgba(37,99,235,0.6);
}
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563EB;
}
.form-label {
    font-size: 13px;
    color: #9CA3AF;
    display: block;
    margin-bottom: 6px;
}

.input-small {
    width: 140px;
}

.input-medium {
    width: 260px;
}
.toggle-switch {
    position: relative;
    width: 42px;
    height: 22px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    background-color: #374151;
    border-radius: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.2s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #22C55E;
    box-shadow: 0 0 10px rgba(34,197,94,0.7);
}

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

.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
/* === EDIT PAGE FACELIFT === */

body {
    background: #0F172A;
    color: #E5E7EB;
}

.header {
    display: none; /* skryjeme starý nadpis */
}

.nav-bar {
    background: #0B1220 !important;
}

.container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.card {
    background: #111827;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 700px;
}

/* Inputy */
input[type="text"],
input[type="datetime-local"] {
    background: #0B1220;
    border: 1px solid #1F2937;
    color: #E5E7EB;
    padding: 8px 10px;
    border-radius: 8px;
    margin-top: 6px;
}

input[type="text"]:focus,
input[type="datetime-local"]:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 8px rgba(37,99,235,0.6);
}

/* Checkboxy víc moderně */
input[type="checkbox"] {
    accent-color: #22C55E;
    transform: scale(1.1);
    margin-right: 8px;
}

/* Tlačítka */
button {
    background: #2563EB;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    box-shadow: 0 0 12px rgba(37,99,235,0.8);
}

/* Oddělovače */
hr {
    border: none;
    border-top: 1px solid #1F2937;
    margin: 30px 0;
}
/* === ZÓNY PILL STYLE === */

input[name="zones[]"] {
    display: none;
}

input[name="zones[]"] + span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: #1F2937;
    border: 1px solid #374151;
    font-size: 13px;
    margin: 4px 4px 4px 0;
    transition: 0.2s;
    cursor: pointer;
}

input[name="zones[]"]:checked + span {
    background: #2563EB;
    border-color: #2563EB;
    box-shadow: 0 0 8px rgba(37,99,235,0.6);
}
/* === FORM LAYOUT CONSISTENCY === */

.content h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.top-bar {
    margin-bottom: 30px;
}

.card form > label,
.card form > div,
.card form > h3 {
    display: block;
    margin-bottom: 18px;
}

.card form h3 {
    font-size: 16px;
    font-weight: 600;
    color: #9CA3AF;
    margin-top: 10px;
}

.card button {
    margin-top: 20px;
}

.card hr {
    margin: 30px 0;
    border-top: 1px solid #1F2937;
}
input[name="zones[]"] + span:active {
    transform: scale(0.95);
}
/* === TOGGLE SWITCH STYLE === */

input[type="checkbox"] {
    appearance: none;
    width: 42px;
    height: 22px;
    background: #374151;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
    vertical-align: middle;
    margin-right: 8px;
}

input[type="checkbox"]::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

input[type="checkbox"]:checked {
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34,197,94,0.6);
}

input[type="checkbox"]:checked::after {
    left: 22px;
}
/* === KOMPAKTNÍ FORMULÁŘ === */

.card form label {
    margin-bottom: 6px;
}

.card form br {
    display: none;
}

.card form input[type="text"],
.card form input[type="datetime-local"] {
    margin-bottom: 12px;
}

.card h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}
/* === TOGGLE ALIGN FIX === */

.card label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* Toggle už máš, jen doladíme velikost */
input[type="checkbox"] {
    flex-shrink: 0;
}

/* === PRIMARY BUTTON STYLE === */

button {
    background: #2563EB;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #1D4ED8;
    box-shadow: 0 0 12px rgba(37,99,235,0.7);
    transform: translateY(-1px);
}

/* === CARD HOVER EFFECT === */

.card {
    transition: 0.25s;
}

.card:hover {
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}
@media (max-width: 900px) {

    .layout {
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px;
    }

    .sidebar h2 {
        display: none;
    }

    .sidebar a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .content {
        padding: 15px;
    }

    .card {
        padding: 15px;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    form {
        flex-direction: column !important;
    }

    button,
    .btn {
        width: 100%;
    }

}
