:root {
    --bg-color: #e0f7fa;
    --bg-image: linear-gradient(180deg, #e0f7fa 0%, #ffe0b2 100%);
    --text-color: #333;
    --box-bg: rgba(255, 255, 255, 0.9);
    --primary-btn: #ff9800;
    --primary-hover: #e68a00;
    --vybrano-bg: #d4edda;
    --vybrano-border: #28a745;
    --log-bg: #f5f5f5;

    /* Semantic colors */
    --color-positive: #4CAF50;
    --color-negative: #f44336;
    --color-muted: #888;
    --color-info: #2196F3;
    --color-pink: #e91e63;
    --color-purple: #9c27b0;
    --color-hrdina: #4CAF50;
    --color-padouch: #ffc107;

    /* Admin specific colors */
    --admin-bg: #1e1e24;
    --admin-box: #2b2b36;
    --admin-border: #3f3f4e;
}

body.dark-theme {
    --bg-color: #1a1a1a;
    --bg-image: radial-gradient(circle, #3e1800 0%, #0a0a0a 80%);
    --text-color: #f4f4f4;
    --box-bg: rgba(30, 30, 30, 0.85);
    --primary-btn: #ff5722;
    --primary-hover: #d84315;
    --vybrano-bg: rgba(255, 87, 34, 0.2);
    --vybrano-border: #ff5722;
    --log-bg: #222;
}

body.admin-theme {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--admin-bg);
    color: #f5f5f5;
    padding: 20px;
    margin: 0;
    transition: none;
    /* No transition for admin */
}

/* Base Body Application Theme */
body.app-theme {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background: var(--bg-image);
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
    min-height: 100vh;
    margin: 0;
    transition: all 0.5s ease;
    position: relative;
}

body.app-theme h1,
body.app-theme h2,
body.app-theme h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    font-weight: normal;
    margin-bottom: 5px;
}

body.admin-theme h1,
body.admin-theme h2,
body.admin-theme h3 {
    margin-top: 0;
}

body.app-theme h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.box {
    background: var(--box-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: auto;
    backdrop-filter: blur(10px);
    position: relative;
}

body.admin-theme .box {
    background: var(--admin-box);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--admin-border);
    backdrop-filter: none;
}

button {
    background: var(--primary-btn);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

body.admin-theme button {
    font-size: 14px;
    padding: 10px;
}

button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

button:disabled {
    background: #888;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
    filter: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--box-bg);
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.5);
    border-radius: 10px;
}

body.admin-theme .custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

body.admin-theme .custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--box-bg);
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 5px solid;
}

body.admin-theme .toast {
    background: var(--admin-box);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.error {
    border-left-color: #f44336;
}

.toast.success {
    border-left-color: #4CAF50;
}

.toast.info {
    border-left-color: #2196F3;
}

/* Shared Grid */
.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}

.emoji-item {
    font-size: 26px;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: 0.2s;
    background: rgba(150, 150, 150, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-item.selected {
    border-color: var(--primary-btn);
    background: rgba(255, 152, 0, 0.2);
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ---------- INDEX SPECIFIC ---------- */
.top-btn {
    position: absolute;
    top: 20px;
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.top-btn:hover {
    background: var(--text-color);
    color: var(--box-bg);
}

.theme-toggle {
    right: 20px;
}

.pravidla-toggle {
    left: 20px;
}

.odpocet-box {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 8px;
    font-family: 'Poppins', monospace;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-color);
    border: 1px solid rgba(150, 150, 150, 0.2);
}

body.dark-theme .odpocet-box {
    background: rgba(255, 255, 255, 0.05);
    color: #ffeb3b;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.soutezici {
    padding: 15px 10px;
    border-radius: 12px;
    width: 25%;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.soutezici:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.soutezici img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: rgba(150, 150, 150, 0.2);
}

.jmeno-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-bottom: 5px;
}

.soutezici.vyrazen {
    opacity: 0.4;
    filter: grayscale(100%);
}

.soutezici.vyrazen:not(.vybrano) {
    cursor: not-allowed;
    pointer-events: none;
}

.soutezici.hrdina {
    border: 2px solid rgba(76, 175, 80, 0.3);
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.soutezici.padouch {
    border: 2px solid rgba(255, 193, 7, 0.3);
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.soutezici.hrdina.vybrano {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.25);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.soutezici.padouch.vybrano {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.25);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.kmen-badge {
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.kmen-badge.hrdina {
    background: #4CAF50;
    color: white;
}

.kmen-badge.padouch {
    background: #ffc107;
    color: #333;
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% {
        background-color: rgba(150, 150, 150, 0.1);
    }

    50% {
        background-color: rgba(150, 150, 150, 0.3);
    }

    100% {
        background-color: rgba(150, 150, 150, 0.1);
    }
}

.skeleton {
    background: rgba(150, 150, 150, 0.2);
    border-radius: 4px;
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 5px;
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-text {
    width: 80%;
    height: 16px;
    margin: 5px auto;
}

/* Badge / Trophy Animations */
@keyframes badge-entrance {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(10px);
    }

    60% {
        transform: scale(1.15) translateY(-3px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes badge-shimmer {
    0% {
        box-shadow: 0 0 0 rgba(255, 152, 0, 0);
    }

    50% {
        box-shadow: 0 0 12px rgba(255, 152, 0, 0.4);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 152, 0, 0);
    }
}

.trofej-badge {
    background: rgba(255, 152, 0, 0.12);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: help;
    white-space: nowrap;
    animation: badge-entrance 0.5s ease-out forwards, badge-shimmer 3s ease-in-out 0.5s infinite;
    opacity: 0;
}

.trofej-badge:hover {
    transform: scale(1.08);
    background: rgba(255, 152, 0, 0.22);
}

/* MVP Row Highlight */
@keyframes mvp-glow {
    0% {
        box-shadow: inset 0 0 0 rgba(255, 215, 0, 0);
    }

    50% {
        box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.15);
    }

    100% {
        box-shadow: inset 0 0 0 rgba(255, 215, 0, 0);
    }
}

.mvp-row {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, transparent 100%) !important;
    animation: mvp-glow 3s ease-in-out infinite;
}

.mvp-badge-inline {
    display: inline-block;
    font-size: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Head-to-Head Comparison */
.h2h-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.h2h-player {
    text-align: center;
    padding: 15px;
    background: rgba(150, 150, 150, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(150, 150, 150, 0.2);
}

.h2h-vs {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-muted);
    letter-spacing: 2px;
}

.h2h-stat-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(150, 150, 150, 0.1);
    align-items: center;
    font-size: 14px;
}

.h2h-stat-label {
    text-align: center;
    font-size: 12px;
    color: var(--color-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.h2h-val-left {
    text-align: right;
    font-weight: 700;
}

.h2h-val-right {
    text-align: left;
    font-weight: 700;
}

.h2h-winner {
    color: var(--color-positive);
}

.h2h-loser {
    color: var(--color-negative);
}

.soutezici.kapitan-card {
    border-color: #ff9800 !important;
    background: rgba(255, 152, 0, 0.25) !important;
    box-shadow: 0 0 15px #ff9800 !important;
}

.btn-kapitan-select {
    background: #ff9800;
    color: white;
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    display: none;
    width: 100%;
}

.vybrano .btn-kapitan-select {
    display: block;
}

.kapitan-card .btn-kapitan-select {
    background: #e65100;
    cursor: default;
}

.jmeno {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.body-souteziciho {
    font-size: 13px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 35px;
}

.tym-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tym-list li {
    padding: 15px 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 115px;
    box-sizing: border-box;
    cursor: pointer;
    transition: 0.3s;
}

.tym-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.tym-list li.hrdina {
    border: 2px solid rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.1);
}

.tym-list li.padouch {
    border: 2px solid rgba(255, 193, 7, 0.5);
    background: rgba(255, 193, 7, 0.1);
}

.tym-list img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 5px;
    object-fit: cover;
    background-color: rgba(150, 150, 150, 0.2);
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

th,
td {
    padding: 15px;
    border-bottom: 1px solid rgba(150, 150, 150, 0.2);
    text-align: center;
}

th {
    background-color: var(--primary-btn);
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
}

.zvyraznene-body {
    color: var(--primary-btn);
    font-weight: bold;
    font-size: 1.2rem;
}

.hrac-row {
    cursor: pointer;
    transition: 0.2s;
}

.hrac-row:hover {
    background: rgba(150, 150, 150, 0.1) !important;
}

.stat-row-hrdina {
    background: rgba(76, 175, 80, 0.05);
}

.stat-row-padouch {
    background: rgba(255, 193, 7, 0.05);
}

body.dark-theme .stat-row-hrdina {
    background: rgba(76, 175, 80, 0.12);
}

body.dark-theme .stat-row-padouch {
    background: rgba(255, 193, 7, 0.12);
}

.denik-box {
    background: var(--log-bg);
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    overflow-y: auto;
    font-size: 14px;
    border: 1px solid rgba(150, 150, 150, 0.3);
}

.denik-zaznam {
    margin: 5px 0;
    padding: 8px;
    border-radius: 5px;
    border-bottom: 1px dashed rgba(150, 150, 150, 0.2);
}

.log-plus {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.log-minus {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.log-neutral {
    background: transparent;
    color: inherit;
    border: 1px solid transparent;
}

body.dark-theme .log-plus {
    background: rgba(76, 175, 80, 0.15) !important;
    color: #a5d6a7 !important;
    border-color: rgba(76, 175, 80, 0.4) !important;
}

body.dark-theme .log-minus {
    background: rgba(244, 67, 54, 0.15) !important;
    color: #ef9a9a !important;
    border-color: rgba(244, 67, 54, 0.4) !important;
}

.edit-icon {
    cursor: pointer;
    opacity: 0.5;
    font-size: 16px;
    margin-left: 5px;
    transition: 0.2s;
}

.edit-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

.historie-kol-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
}

.historie-kol-table th {
    background: transparent;
    color: var(--text-color);
    border-bottom: 2px solid rgba(150, 150, 150, 0.3);
    padding: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

.historie-kol-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(150, 150, 150, 0.1);
}

body.app-theme input {
    padding: 12px;
    font-size: 16px;
    width: 80%;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border 0.3s;
}

/* ---------- ADMIN SPECIFIC ---------- */

body.admin-theme .dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

@media(max-width: 800px) {
    body.admin-theme .dashboard {
        grid-template-columns: 1fr;
    }
}

body.admin-theme #login-screen {
    display: block;
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

body.admin-theme #login-screen input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: none;
    box-sizing: border-box;
    font-size: 16px;
    background: #fff;
    color: #333;
}

body.admin-theme #login-screen button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
    background: #4CAF50;
    color: white;
}

body.admin-theme #admin-obsah {
    display: none;
}

.soutezici-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.sout-btn {
    background: #3f3f4e;
    color: #ccc;
    border: 2px solid transparent;
    padding: 10px 5px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
}

.sout-btn.hrdina {
    border-left: 4px solid #4CAF50;
}

.sout-btn.padouch {
    border-left: 4px solid #ffc107;
}

.sout-btn.selected {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #2196f3;
    font-weight: bold;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

.sout-btn.vyrazen {
    opacity: 0.3;
    filter: grayscale(100%);
    text-decoration: line-through;
}

.akce-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.akce-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    font-size: 14px;
    text-align: left;
}

.akce-btn span {
    font-weight: 900;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 5px;
}

.akce-plus {
    background: #2e7d32;
}

.akce-plus2 {
    background: #00695c;
}

.akce-yellow {
    background: #f57c00;
}

.akce-minus {
    background: #c62828;
}

.akce-death {
    background: #212121;
    border: 1px solid #c62828;
}

.omyl-toggle {
    background: rgba(244, 67, 54, 0.1);
    border: 2px dashed #f44336;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.omyl-toggle.active {
    background: #c62828;
    color: white;
    border-style: solid;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.6);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #ffeb3b;
}

input:checked+.slider:before {
    transform: translateX(26px);
    background-color: #333;
}

body.admin-theme input[type="text"],
body.admin-theme input[type="number"],
body.admin-theme select {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px;
    border-radius: 5px;
    border: none;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-family: 'Segoe UI', sans-serif;
}

.log {
    margin-top: 15px;
    background: #111;
    padding: 10px;
    border-radius: 5px;
    text-align: left;
    font-family: monospace;
    font-size: 13px;
    min-height: 150px;
    color: #4caf50;
    overflow-y: auto;
    max-height: 250px;
    border: 1px solid #333;
}

.manager-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
}

.manager-row button {
    padding: 5px 10px;
    font-size: 12px;
    margin-left: 5px;
}

/* Modal Edit Akce in Admin */
#edit-akce-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-box {
    background: #2b2b36;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    border: 1px solid #3f3f4e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-kmen-rychly {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    height: fit-content;
}

.btn-kmen-rychly:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Page transition --- */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-transition {
    animation: fadeSlideIn 0.3s ease-out;
}

/* --- Consolidated quick menu --- */
.quick-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    justify-content: center;
}

.quick-menu button {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

/* --- Last updated --- */
.last-updated {
    text-align: center;
    font-size: 11px;
    color: var(--color-muted);
    margin-top: 20px;
    padding: 8px;
    opacity: 0.7;
}

/* --- Zajímavosti cards --- */
.zajimavost-card {
    background: rgba(150, 150, 150, 0.08);
    border: 1px solid rgba(150, 150, 150, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.zajimavost-card .emoji {
    font-size: 22px;
    flex-shrink: 0;
}

.zajimavost-card .label {
    color: var(--color-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.zajimavost-card .value {
    font-weight: 700;
    font-size: 15px;
}

/* --- Mobile swipe hint --- */
.swipe-hint {
    text-align: center;
    font-size: 11px;
    color: var(--color-muted);
    margin-top: 10px;
    opacity: 0.6;
}

/* =================== ADMIN PANEL ENHANCEMENTS =================== */

/* --- Status Bar --- */
.admin-status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid #3f3f4e;
    align-items: center;
    justify-content: center;
}

.admin-status-bar .stat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
}

.admin-status-bar .stat-chip .val {
    font-weight: 700;
    color: #ffeb3b;
}

/* --- Admin Tabs --- */
.admin-tabs {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #3f3f4e;
}

.admin-tab-btn {
    flex: 1;
    padding: 14px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #aaa;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid #3f3f4e;
    text-align: center;
}

.admin-tab-btn:last-child {
    border-right: none;
}

.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-tab-btn.active {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border-bottom: 3px solid #ff9800;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeSlideIn 0.25s ease-out;
}

/* --- Selected count badge --- */
.vyber-pocet {
    display: inline-block;
    background: #ff9800;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

@media (max-width: 600px) {
    .admin-tab-btn {
        font-size: 12px;
        padding: 12px 6px;
    }

    .admin-status-bar {
        padding: 10px 12px;
        gap: 6px;
    }

    .admin-status-bar .stat-chip {
        font-size: 11px;
        padding: 4px 10px;
    }
}