/* Moderní CSS styl pro Panda Letenky */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #e0f2fe;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;

    /* Light theme */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --bg-body: #090d16;
    --bg-card: #111827;
    --bg-glass: rgba(17, 24, 39, 0.85);
    --border-color: #1f2937;
    --border-subtle: #192231;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --primary-light: rgba(2, 132, 199, 0.15);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* Header & Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 24px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-icon {
    font-size: 28px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.brand-info h1 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sync {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
}

.btn-sync:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

.btn-sync.spinning .sync-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Layout container */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 80px 20px;
}

/* Hero Stats Section */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #6366f1);
    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(2, 132, 199, 0.3);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.stat-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab-btn * {
    pointer-events: none;
}

.tab-btn:hover {
    color: var(--text-main);
    background: var(--border-subtle);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.tab-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.tab-btn:not(.active) .tab-badge {
    background: var(--border-color);
    color: var(--text-muted);
}

/* Filter Controls Toolbar */
.toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    min-width: 240px;
}

.search-box input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.select-control {
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.price-filter input[type="range"] {
    accent-color: var(--primary);
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-body);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.view-btn {
    border: none;
    background: transparent;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.view-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Flight Cards Grid */
.flights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.flight-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
}

.flight-card-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(2, 132, 199, 0.4);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.airline-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-body);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.badge-roundtrip {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.28);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.2px;
}

[data-theme="dark"] .badge-roundtrip {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}

.trip-duration-pill {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .trip-duration-pill {
    background: rgba(52, 211, 153, 0.16);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

.flight-schedule {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.schedule-item .schedule-icon {
    font-size: 14px;
}

.schedule-item .schedule-lbl {
    color: var(--text-muted);
    font-size: 12px;
    min-width: 50px;
}

.duration-subtext {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

.card-deal-banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.deal-tag {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.flight-card-item.is-top-deal {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}

.flight-card-item.is-top-deal:hover {
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.16);
}

.route-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 14px;
    background: var(--bg-body);
    border-radius: 12px;
}

.airport {
    text-align: left;
}

.airport.right {
    text-align: right;
}

.iata {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.city-name {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 0 12px;
}

.route-line {
    width: 100%;
    height: 2px;
    background: var(--border-color);
    position: relative;
}

.route-line::after {
    content: '✈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    font-size: 12px;
    color: var(--primary);
    background: var(--bg-body);
    padding: 0 4px;
}

.stops-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.stops-label.direct {
    color: var(--success);
}

.details-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-color);
}

.card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.price-dropped {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.booking-links {
    display: flex;
    align-items: center;
}

.btn-link {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-link.google {
    background: linear-gradient(135deg, #4285f4, #2563eb);
    color: white;
    box-shadow: 0 3px 10px rgba(66, 133, 244, 0.3);
}

.btn-link.google:hover {
    background: linear-gradient(135deg, #3367d6, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(66, 133, 244, 0.45);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Settings & Email View */
.settings-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.settings-panel h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.settings-panel p.desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.sub-box {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.sub-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; align-items: stretch; }
    .nav-actions { justify-content: space-between; }
    .flights-grid { grid-template-columns: 1fr; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .filter-group { flex-direction: column; align-items: stretch; }
}

/* Japonsko Trip Styles & Dva sloupce */
.japan-trip-banner {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.12) 0%, rgba(219, 39, 119, 0.08) 100%);
    border: 1px solid rgba(244, 114, 182, 0.35);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.japan-trip-banner h2 {
    font-size: 22px;
    font-weight: 800;
    color: #db2777;
    display: flex;
    align-items: center;
    gap: 10px;
}

.japan-trip-banner p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.trip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.trip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.trip-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dva sloupce: Aktuální cena vs Historie cen */
.trip-two-cols {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
}

.trip-col-current {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trip-col-history {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
}

.col-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trip-price-display {
    margin: 16px 0;
}

.trip-price-main {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.trip-price-pending {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #fde68a;
    line-height: 1.5;
}

[data-theme="dark"] .trip-price-pending {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.trip-meta-list {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th {
    text-align: left;
    padding: 8px 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
    .trip-two-cols {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Hamburger Menu & Drawer Navigation
   ========================================================================== */
.hamburger-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    border-color: var(--primary);
    background: var(--bg-body);
}

.hamburger-btn .bar {
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Drawer Menu Panel */
.drawer-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 86vw;
    background: var(--bg-card);
    z-index: 9999;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer-menu.active {
    transform: translateX(0);
}

/* Drawer Header with User Card */
.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-body);
}

.drawer-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(37, 99, 235, 0.15));
    border: 1px solid rgba(2, 132, 199, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.drawer-user-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.2;
}

.drawer-user-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.role-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.role-badge.admin {
    background: rgba(2, 132, 199, 0.15);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.3);
}

.role-badge.user {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-drawer-close:hover {
    background: var(--border-subtle);
    color: var(--text-main);
}

/* Drawer Navigation List */
.drawer-nav {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.drawer-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    padding: 12px 10px 6px 10px;
}

.drawer-section-title.admin-title {
    color: #0284c7;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.drawer-nav-item:hover {
    background: var(--bg-body);
    color: var(--primary);
}

.drawer-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.drawer-nav-item .drawer-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.drawer-badge {
    margin-left: auto;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    background: var(--border-color);
    color: var(--text-muted);
    font-weight: 700;
}

.drawer-badge.admin {
    background: rgba(2, 132, 199, 0.15);
    color: #0284c7;
}

.drawer-nav-item.logout-link {
    color: #ef4444;
    margin-top: auto;
}

.drawer-nav-item.logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   Pagination Controls (9 letů + Načíst další)
   ========================================================================== */
.pagination-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 20px 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-load-more {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: white;
    border: none;
    padding: 13px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
    transition: all 0.22s ease;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
}

.btn-load-more:active {
    transform: translateY(0);
}

/* ==========================================================================
   Správa uživatelů (Admin UI)
   ========================================================================== */
.users-management-view {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.users-admin-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

@media (max-width: 960px) {
    .users-admin-grid {
        grid-template-columns: 1fr;
    }
}

.user-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.user-form-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-form-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.form-group-user {
    margin-bottom: 14px;
}

.form-group-user label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-input-user {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input-user:focus {
    border-color: var(--primary);
}

.btn-create-user {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    margin-top: 8px;
    transition: all 0.2s;
}

.btn-create-user:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

.users-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.users-list-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.users-list-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.btn-del-user {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-del-user:hover {
    background: #ef4444;
    color: white;
}

.btn-del-user:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Seznam změn & Filtrační tlačítka
   ========================================================================== */
.btn-filter {
    background: var(--bg-body);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-filter:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

.btn-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}


