/**
 * Core CSS Bundle
 * Auto-generated - DO NOT EDIT
 * Generated: 2026-01-20T14:26:33.812Z
 * Source files: 5
 *
 * Contains: barvy.css, rotation-guard.css, profile-modal.css,
 *           feedback-modal.css, main.css
 */

/* ========== barvy.css ========== */
/**
 * BARVY - Základní barevná paleta aplikace
 *
 * České názvy bez diakritiky
 * Pouze barvy které skutečně používáme
 *
 * Poslední update: 2025-10-01
 */

:root {
    /* ============================================
       IVT BRAND BARVY
       Hlavní firemní barvy - NEMĚNIT!
       ============================================ */

    --cervena-hlavni: #c41e1e;      /* IVT primární červená */
    --cervena-svetla: #ef4444;      /* Světlejší červená - hover efekty */
    --cervena-tmava: #a01818;       /* Tmavší červená - active stavy */

    --modra-hlavni: #1e40af;        /* IVT modrá - sekundární brand */
    --modra-svetla: #2563eb;        /* Světlejší modrá */

    /* ============================================
       NEUTRALNÍ BARVY
       Bílá, černá a 5 odstínů šedé
       ============================================ */

    --bila: #ffffff;                /* Čistá bílá */
    --cerna: #1f2937;               /* Hlavní barva textu */

    /* Šedá paleta - kompletní odstíny */
    --seda-50: #f9fafb;             /* Nejsvětlejší - pozadí stránky */
    --seda-100: #f3f4f6;            /* Světlá - pozadí karet */
    --seda-200: #e5e7eb;            /* Světlá - bordery, oddělovače */
    --seda-300: #d1d5db;            /* Střední - bordery, separátory */
    --seda-400: #9ca3af;            /* Střední - neaktivní prvky */
    --seda-500: #6b7280;            /* Tmavá - muted text, ikony */
    --seda-600: #4b5563;            /* Tmavší - secondary text */
    --seda-900: #111827;            /* Skoro černá - footer, tmavé prvky */

    /* ============================================
       SÉMANTICKÉ BARVY - Úspěch (Success/Zelená)
       Pro úspěšné operace, potvrzení, akceptace
       ============================================ */

    --uspech: #10b981;              /* Základní zelená */
    --uspech-50: #dcfce7;           /* Nejsvětlejší - pozadí */
    --uspech-100: #bbf7d0;          /* Velmi světlá */
    --uspech-200: #86efac;          /* Světlá - bordery */
    --uspech-500: #10b981;          /* Základní (stejná jako --uspech) */
    --uspech-600: #059669;          /* Tmavší - hover */
    --uspech-700: #047857;          /* Tmavá */
    --uspech-800: #14532d;          /* Velmi tmavá - text */

    /* ============================================
       SÉMANTICKÉ BARVY - Informace (Info/Modrá)
       Pro informační hlášky, pomocné texty
       ============================================ */

    --info: #3b82f6;                /* Základní modrá */
    --info-50: #dbeafe;             /* Nejsvětlejší - pozadí */
    --info-100: #bfdbfe;            /* Velmi světlá */
    --info-200: #93c5fd;            /* Světlá - bordery */
    --info-500: #3b82f6;            /* Základní (stejná jako --info) */
    --info-600: #2563eb;            /* Tmavší - hover */
    --info-700: #1d4ed8;            /* Tmavá */
    --info-800: #1e3a8a;            /* Velmi tmavá - text */

    /* ============================================
       SÉMANTICKÉ BARVY - Varování (Warning/Oranžová)
       Pro varování, upozornění
       ============================================ */

    --varovani: #f59e0b;            /* Základní oranžová */
    --varovani-50: #fef3c7;         /* Nejsvětlejší - pozadí */
    --varovani-100: #fde68a;        /* Velmi světlá */
    --varovani-200: #fcd34d;        /* Světlá - bordery */
    --varovani-500: #f59e0b;        /* Základní (stejná jako --varovani) */
    --varovani-600: #d97706;        /* Tmavší - hover */
    --varovani-700: #b45309;        /* Tmavá */
    --varovani-800: #713f12;        /* Velmi tmavá - text */

    /* ============================================
       SÉMANTICKÉ BARVY - Chyba (Danger/Červená)
       Pro chyby, nebezpečné operace, smazání
       ============================================ */

    --chyba: #ef4444;               /* Základní červená */
    --chyba-50: #fee2e2;            /* Nejsvětlejší - pozadí */
    --chyba-100: #fecaca;           /* Velmi světlá */
    --chyba-200: #fca5a5;           /* Světlá - bordery */
    --chyba-500: #ef4444;           /* Základní (stejná jako --chyba) */
    --chyba-600: #dc2626;           /* Tmavší - hover */
    --chyba-700: #b91c1c;           /* Tmavá */
    --chyba-800: #7f1d1d;           /* Velmi tmavá - text */
}

/* ============================================
   POZNÁMKY PRO POUŽITÍ
   ============================================ */

/*
SPRÁVNÉ POUŽITÍ:
✅ background: var(--cervena-hlavni);
✅ color: var(--seda-500);

ŠPATNÉ POUŽITÍ:
❌ background: #c41e1e;
❌ color: #6b7280;

MAPOVÁNÍ STARÝCH NÁZVŮ (pro referenci):
--ivt-primary           → --cervena-hlavni
--ivt-gray-100          → --seda-100
--ivt-white             → --bila
--ivt-black             → --cerna

SÉMANTICKÉ BARVY - mapování:
--ivt-success-*         → --uspech-* (50, 100, 200, 500, 600, 700, 800)
--ivt-info-*            → --info-* (50, 100, 200, 500, 600, 700, 800)
--ivt-warning-*         → --varovani-* (50, 100, 200, 500, 600, 700, 800)
--ivt-danger-*          → --chyba-* (50, 100, 200, 500, 600, 700, 800)
*/


/* ========== foundation/rotation-guard.css ========== */
/**
 * Rotation Guard - Mobile Rotation Overlay
 *
 * Zobrazí overlay s výzvou k otočení zařízení na šířku.
 * Aktivuje se JavaScriptem pomocí třídy 'active'.
 */

.rotation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: linear-gradient(135deg, var(--cervena-hlavni) 0%, var(--cervena-tmava) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show overlay when active */
.rotation-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    align-items: center;
    justify-content: center;
}

/* Close button */
.rotation-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--bila);
    font-size: 1.75rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 100000;
}

.rotation-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
}

.rotation-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Content container */
.rotation-content {
    text-align: center;
    color: var(--bila);
    padding: 2rem;
    max-width: 400px;
}

/* Icon container */
.rotation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 4rem;
}

/* Animated arrow */
.rotation-arrow {
    font-size: 3rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Rotated phone icon */
.rotate-90 {
    transform: rotate(90deg);
    animation: rotatePhone 2s ease-in-out infinite;
}

@keyframes rotatePhone {
    0%, 100% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(90deg) scale(1.1);
    }
}

/* Text styling */
.rotation-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--bila);
}

.rotation-content p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Responsive */
@media (min-width: 768px) {
    /* Hide on desktop/landscape */
    .rotation-overlay {
        display: none !important;
    }
}

/* Portrait mode - show only in portrait */
@media (orientation: landscape) {
    .rotation-overlay {
        display: none !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) and (orientation: portrait) {
    .rotation-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .rotation-icon {
        font-size: 3rem;
        gap: 1rem;
    }

    .rotation-arrow {
        font-size: 2rem;
    }

    .rotation-content h2 {
        font-size: 1.5rem;
    }

    .rotation-content p {
        font-size: 1rem;
    }
}

/* ========== components/profile-modal.css ========== */
/**
 * Profile Modal Styles
 *
 * Self-contained modal component with section-based layout.
 * Uses CSS variables from main.css and barvy.css
 */

/* ============================================
   BASE OVERLAY
   ============================================ */

.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.profile-modal.open {
    opacity: 1;
    visibility: visible;
}

.profile-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* ============================================
   MODAL CONTAINER
   ============================================ */

.profile-modal-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: var(--zaobleni-lg, 12px);
    box-shadow: var(--stiny-xl, 0 15px 50px rgba(0, 0, 0, 0.2));
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.profile-modal.open .profile-modal-container {
    transform: scale(1) translateY(0);
}

/* ============================================
   HEADER
   ============================================ */

.profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--seda-100, #f3f4f6);
    background: var(--seda-50, #f9fafb);
}

.profile-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cerna, #1f2937);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-modal-title i {
    color: var(--cervena-hlavni, #c41e1e);
}

.profile-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--seda-500, #6b7280);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.profile-modal-close:hover {
    background: var(--seda-200, #e5e7eb);
    color: var(--cerna, #1f2937);
}

/* ============================================
   BODY
   ============================================ */

.profile-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* ============================================
   EMAIL INFO ROW
   ============================================ */

.profile-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--seda-50, #f9fafb);
    border-radius: var(--zaobleni-md, 8px);
    margin-bottom: 1.5rem;
}

.profile-info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--seda-500, #6b7280);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.profile-info-label i {
    font-size: 0.9rem;
}

.profile-info-value {
    font-size: 0.95rem;
    color: var(--cerna, #1f2937);
    font-weight: 500;
}

.profile-email-note {
    font-size: 0.8rem;
    color: var(--seda-500, #6b7280);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.profile-email-note a {
    color: var(--cervena-hlavni, #c41e1e);
    text-decoration: none;
}

.profile-email-note a:hover {
    text-decoration: underline;
}

/* ============================================
   SECTIONS
   ============================================ */

.profile-section {
    border: 1px solid var(--seda-200, #e5e7eb);
    border-radius: var(--zaobleni-md, 8px);
    margin-bottom: 1rem;
    overflow: hidden;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--seda-50, #f9fafb);
    border-bottom: 1px solid var(--seda-200, #e5e7eb);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--seda-700, #374151);
}

.profile-section-title i {
    color: var(--seda-500, #6b7280);
    font-size: 0.85rem;
}

.profile-section-content {
    padding: 1rem;
}

/* Disabled section (password mockup) */
.profile-section-disabled {
    opacity: 0.6;
}

.profile-section-disabled .profile-section-content {
    pointer-events: none;
}

.profile-coming-soon {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--seda-200, #e5e7eb);
    color: var(--seda-600, #4b5563);
    border-radius: 9999px;
    font-weight: 500;
}

/* ============================================
   INLINE GROUP (fields + button)
   ============================================ */

.profile-inline-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-inline-fields {
    display: flex;
    gap: 0.75rem;
}

/* Button always below fields - default behavior */
.profile-inline-group .profile-section-btn {
    align-self: flex-start;
}

/* ============================================
   FORM FIELDS
   ============================================ */

.profile-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-field-wide {
    flex: 2;
}

.profile-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--seda-600, #4b5563);
}

.profile-input {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--seda-300, #d1d5db);
    border-radius: var(--zaobleni-sm, 5px);
    font-size: 0.9rem;
    color: var(--cerna, #1f2937);
    background: white;
    transition: all 0.15s ease;
}

.profile-input:focus {
    outline: none;
    border-color: var(--cervena-hlavni, #c41e1e);
    box-shadow: 0 0 0 2px rgba(196, 30, 30, 0.1);
}

.profile-input:disabled {
    background: var(--seda-100, #f3f4f6);
    color: var(--seda-500, #6b7280);
    cursor: not-allowed;
}

.profile-input.has-error {
    border-color: var(--chyba, #dc2626);
}

.profile-input::placeholder {
    color: var(--seda-400, #9ca3af);
}

.profile-field-error {
    font-size: 0.75rem;
    color: var(--chyba, #dc2626);
    min-height: 1rem;
}

.profile-field-error:empty {
    display: none;
}

/* ============================================
   SECTION BUTTON
   ============================================ */

.profile-section-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--cervena-hlavni, #c41e1e);
    color: white;
    border: none;
    border-radius: var(--zaobleni-sm, 5px);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.profile-section-btn:hover:not(:disabled) {
    background: var(--cervena-tmava, #a31919);
}

.profile-section-btn:disabled {
    background: var(--seda-400, #9ca3af);
    cursor: not-allowed;
}

.profile-section-btn.loading {
    position: relative;
    color: transparent;
}

.profile-section-btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: profile-spin 0.8s linear infinite;
}

@keyframes profile-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SECTION MESSAGE
   ============================================ */

.profile-section-message {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--zaobleni-sm, 5px);
    font-size: 0.85rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.profile-section-message.success {
    display: flex;
    background: rgba(16, 185, 129, 0.1);
    color: var(--uspech, #10b981);
}

.profile-section-message.error {
    display: flex;
    background: rgba(220, 38, 38, 0.1);
    color: var(--chyba, #dc2626);
}

/* ============================================
   HEADER BUTTON
   ============================================ */

.profile-btn-header {
    color: var(--cerna, #1f2937);
    text-decoration: none;
    padding: var(--mezera-sm, 0.5rem) var(--mezera-lg, 1rem);
    border-radius: var(--zaobleni-md, 8px);
    transition: background 0.2s;
    white-space: nowrap;
    background: transparent;
    border: none;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-btn-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.profile-btn-header i {
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Lock body scroll when modal is open */
body.profile-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
}

/* Mobile */
@media (max-width: 640px) {
    .profile-modal-container {
        width: 95%;
        max-width: none;
        margin: 0.5rem;
    }

    .profile-modal-body {
        padding: 1rem;
    }

    .profile-inline-fields {
        flex-direction: column;
    }

    .profile-inline-group .profile-section-btn {
        width: 100%;
        align-self: stretch;
    }

    .profile-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Mobile navigation - profile button */
@media (max-width: 1470px) {
    .profile-btn-header {
        display: flex;
        align-items: center;
        gap: var(--mezera-md, 0.75rem);
        width: 100%;
        padding: var(--mezera-md, 0.75rem) var(--mezera-xl, 1.5rem);
        color: var(--cerna, #1f2937);
        font-size: 1rem;
        font-weight: 500;
        text-align: left;
        border-radius: 0;
        background: transparent;
        transition: all 0.2s ease;
    }

    .profile-btn-header:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    .profile-btn-header i {
        width: 20px;
        text-align: center;
        opacity: 0.7;
    }
}


/* ========== components/feedback-modal.css ========== */
/**
 * App Feedback Modal Styles
 *
 * Simple feedback modal for testing/development.
 * Uses CSS variables from barvy.css
 */

/* ============================================
   FLOATING BUTTON
   ============================================ */

.app-feedback-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cervena-hlavni, #c41e1e);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(196, 30, 30, 0.3);
    cursor: pointer;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.app-feedback-btn:hover {
    background: var(--cervena-tmava, #a31919);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(196, 30, 30, 0.4);
}

.app-feedback-btn:active {
    transform: scale(0.98);
}

/* Mobile - move higher to avoid overlapping action buttons */
@media (max-width: 767px) {
    .app-feedback-btn {
        bottom: 80px;
        right: 16px;
    }
}

/* Very small screens - even smaller button */
@media (max-width: 360px) {
    .app-feedback-btn {
        width: 44px;
        height: 44px;
        bottom: 80px;
        right: 12px;
        font-size: 0.95rem;
    }
}

/* ============================================
   MODAL OVERLAY
   ============================================ */

.app-feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.app-feedback-modal.open {
    opacity: 1;
    visibility: visible;
}

.app-feedback-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* ============================================
   MODAL CONTAINER
   ============================================ */

.app-feedback-container {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: white;
    border-radius: var(--zaobleni-lg, 12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.25s ease;
}

.app-feedback-modal.open .app-feedback-container {
    transform: scale(1) translateY(0);
}

/* ============================================
   HEADER
   ============================================ */

.app-feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--seda-50, #f9fafb);
    border-bottom: 1px solid var(--seda-200, #e5e7eb);
}

.app-feedback-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cerna, #1f2937);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.app-feedback-header h3 i {
    color: var(--cervena-hlavni, #c41e1e);
}

.app-feedback-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--seda-500, #6b7280);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.app-feedback-close:hover {
    background: var(--seda-200, #e5e7eb);
    color: var(--cerna, #1f2937);
}

/* ============================================
   BODY
   ============================================ */

.app-feedback-body {
    padding: 1.25rem;
}

.app-feedback-intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--seda-600, #4b5563);
    line-height: 1.5;
}

/* ============================================
   FEEDBACK TYPE SELECTOR
   ============================================ */

.app-feedback-type {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.app-feedback-type .type-option {
    flex: 1;
    cursor: pointer;
}

.app-feedback-type .type-option input {
    display: none;
}

.app-feedback-type .type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    background: var(--seda-50, #f9fafb);
    border: 2px solid var(--seda-200, #e5e7eb);
    border-radius: var(--zaobleni-md, 8px);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--seda-600, #4b5563);
    transition: all 0.15s ease;
}

.app-feedback-type .type-label i {
    font-size: 1.1rem;
}

.app-feedback-type .type-option:hover .type-label {
    border-color: var(--seda-400, #9ca3af);
}

.app-feedback-type .type-option input:checked + .type-label {
    background: rgba(196, 30, 30, 0.05);
    border-color: var(--cervena-hlavni, #c41e1e);
    color: var(--cervena-hlavni, #c41e1e);
}

/* ============================================
   MESSAGE TEXTAREA
   ============================================ */

.app-feedback-message {
    margin-bottom: 1rem;
}

.app-feedback-message textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--seda-300, #d1d5db);
    border-radius: var(--zaobleni-md, 8px);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--cerna, #1f2937);
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-feedback-message textarea:focus {
    outline: none;
    border-color: var(--cervena-hlavni, #c41e1e);
    box-shadow: 0 0 0 3px rgba(196, 30, 30, 0.1);
}

.app-feedback-message textarea::placeholder {
    color: var(--seda-400, #9ca3af);
}

.app-feedback-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--seda-500, #6b7280);
    margin-top: 0.35rem;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */

.app-feedback-actions {
    display: flex;
    justify-content: flex-end;
}

.app-feedback-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--cervena-hlavni, #c41e1e);
    color: white;
    border: none;
    border-radius: var(--zaobleni-md, 8px);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.app-feedback-submit:hover:not(:disabled) {
    background: var(--cervena-tmava, #a31919);
}

.app-feedback-submit:disabled {
    background: var(--seda-400, #9ca3af);
    cursor: not-allowed;
}

.app-feedback-submit.loading {
    position: relative;
    color: transparent;
}

.app-feedback-submit.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: feedback-spin 0.7s linear infinite;
}

@keyframes feedback-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.app-feedback-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
}

.app-feedback-success.show {
    display: flex;
}

.app-feedback-success i {
    font-size: 2.5rem;
    color: var(--uspech, #10b981);
}

.app-feedback-success span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cerna, #1f2937);
}

/* Hide form when success is shown */
.app-feedback-body.success .app-feedback-intro,
.app-feedback-body.success .app-feedback-type,
.app-feedback-body.success .app-feedback-message,
.app-feedback-body.success .app-feedback-actions {
    display: none;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .app-feedback-container {
        width: 95%;
        margin: 0 auto;
    }

    .app-feedback-type {
        flex-direction: column;
    }

    .app-feedback-type .type-label {
        flex-direction: row;
        justify-content: center;
        padding: 0.6rem 0.75rem;
    }

    .app-feedback-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   BODY SCROLL LOCK
   ============================================ */

body.app-feedback-open {
    overflow: hidden;
}

/* ========== main.css ========== */
/**
 * MAIN.CSS - Hlavní globální styly aplikace
 *
 * Struktura:
 * 1. Import barev
 * 2. Design systém (mezery, zaoblení, stíny, přechody)
 * 3. Reset CSS
 * 4. Typografie
 * 5. Komponenty (tlačítka, karty, formuláře)
 *
 * Poslední update: 2025-10-01
 */

/* ============================================
   1. IMPORT BAREV & UTILITIES
   ============================================ */

/* ============================================
   2. DESIGN SYSTÉM
   CSS Custom Properties pro konzistentní design
   ============================================ */

:root {
    /* === MEZERY === */
    --mezera-xs: 0.25rem;       /* 4px */
    --mezera-sm: 0.5rem;        /* 8px */
    --mezera-md: 0.75rem;       /* 12px */
    --mezera-lg: 1rem;          /* 16px */
    --mezera-xl: 1.5rem;        /* 24px */
    --mezera-2xl: 2rem;         /* 32px */
    --mezera-3xl: 3rem;         /* 48px */

    /* === ZAOBLENÍ === */
    --zaobleni-sm: 5px;
    --zaobleni-md: 8px;
    --zaobleni-lg: 12px;
    --zaobleni-xl: 15px;
    --zaobleni-full: 999px;

    /* === STÍNY === */
    --stiny-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --stiny-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --stiny-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --stiny-xl: 0 15px 50px rgba(0, 0, 0, 0.2);

    /* === PŘECHODY === */
    --prechod-rychly: 0.15s ease;
    --prechod-normalni: 0.3s ease;
    --prechod-pomaly: 0.5s ease;

    /* === GRADIENTY === */
    --gradient-cerveny: linear-gradient(135deg, var(--cervena-hlavni), #e11d48);
    --gradient-hero: linear-gradient(135deg, var(--cervena-hlavni) 0%, var(--modra-hlavni) 50%, #dc2626 100%);

    /* Sémantické gradienty */
    --gradient-uspech: linear-gradient(135deg, var(--uspech), var(--uspech-600));
    --gradient-uspech-light: linear-gradient(135deg, var(--uspech-50), var(--uspech-100));
    --gradient-chyba: linear-gradient(135deg, var(--chyba-600), var(--chyba-700));
    --gradient-cerveny-light: linear-gradient(135deg, var(--chyba-50), var(--chyba-50));
    --gradient-varovani: linear-gradient(135deg, var(--varovani), var(--varovani-600));
    --gradient-sedy: linear-gradient(135deg, var(--seda-50), var(--seda-200));
    --gradient-sedy-medium: linear-gradient(135deg, var(--seda-100), var(--seda-300));

    /* Specifické gradienty */
    --gradient-coverage: linear-gradient(90deg, var(--chyba) 0%, var(--varovani) 50%, var(--uspech) 100%);
}

/* ============================================
   3. RESET CSS
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    /* overflow-x: clip místo hidden - Safari bug fix pro horizontální scroll v tabulkách */
    overflow-x: clip !important;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* ============================================
   4. TYPOGRAFIE
   ============================================ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--cerna);
    background-color: var(--seda-50);
    transition: background-color var(--prechod-normalni), color var(--prechod-normalni);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--cerna);
    margin-bottom: var(--mezera-lg);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--mezera-lg);
}

a {
    color: var(--cervena-hlavni);
    text-decoration: none;
    transition: var(--prechod-normalni);
}

a:hover {
    color: var(--cervena-tmava);
    text-decoration: underline;
}

/* ============================================
   5. CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--mezera-xl);
}

main {
    padding: var(--mezera-2xl) 0;
    min-height: 80vh;
}

/* ============================================
   5a. HEADER & NAVIGATION
   ============================================ */

.header-modern {
    background: linear-gradient(180deg,
        rgba(230, 230, 230, 0.98) 0%,
        rgba(210, 210, 210, 0.95) 50%,
        rgba(200, 200, 200, 0.92) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--cerna);
    padding: var(--mezera-sm) 0;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 -1px 0 rgba(0, 0, 0, 0.1) inset,
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 16px 48px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transition: all var(--prechod-normalni);
    transform: translateZ(0);
    will-change: transform;
}

.header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: 0;
}

.header-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 60%
    );
    animation: shimmer 8s infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes shimmer {
    0% {
        left: -200%;
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        left: 200%;
        opacity: 0;
    }
}

.header-content-modern {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--mezera-2xl);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 53px;
    position: relative;
}

.header-content-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
}

.logo-modern {
    display: flex;
    align-items: center;
    gap: var(--mezera-lg);
    color: var(--cerna);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    min-width: 250px;
}

.logo-modern a {
    display: flex;
    align-items: center;
}

.logo-modern img {
    height: 50px;
    width: auto;
    background: var(--bila);
    padding: 8px;
    border-radius: var(--zaobleni-md);
}

.nav-modern {
    display: flex;
    align-items: center;
    gap: var(--mezera-lg);
    flex-wrap: wrap;
    margin-left: auto;
}

.nav-modern a {
    color: var(--cerna);
    text-decoration: none;
    padding: var(--mezera-sm) var(--mezera-lg);
    border-radius: var(--zaobleni-sm);
    transition: var(--prechod-normalni);
    white-space: nowrap;
}

.nav-modern a:hover {
    background-color: rgba(0,0,0,0.05);
}

.nav-modern a.active {
    background: var(--cervena-hlavni) !important;
    color: var(--bila) !important;
    opacity: 1 !important;
    border-color: var(--cervena-hlavni) !important;
}

/* User info section */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--mezera-lg);
    margin-left: auto;
    position: relative;
}

.user-email {
    color: var(--cerna);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--mezera-sm);
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--bila);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: var(--mezera-md) var(--mezera-xl);
    border-radius: var(--zaobleni-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--mezera-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--prechod-normalni);
    backdrop-filter: blur(10px);
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--stiny-md);
}

.dropdown-btn i.dropdown-arrow {
    transition: transform var(--prechod-normalni);
}

.dropdown-btn.active i.dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--mezera-sm);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--zaobleni-xl);
    box-shadow: var(--stiny-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    min-width: 220px;
    animation: dropdownSlideIn var(--prechod-normalni);
    overflow: hidden;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--mezera-md);
    padding: var(--mezera-lg) var(--mezera-xl);
    color: var(--cerna);
    text-decoration: none;
    transition: var(--prechod-normalni);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--gradient-cerveny);
    color: var(--bila);
    transform: translateX(5px);
}

.dropdown-item.active {
    background: var(--gradient-cerveny);
    color: var(--bila);
    font-weight: 600;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    opacity: 0.8;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: var(--mezera-sm) 0;
}

/* Logout button special styling */
.dropdown-item.logout {
    color: var(--chyba);
    font-weight: 600;
}

.dropdown-item.logout:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--bila);
}

/* ============================================
   6. TLAČÍTKA (BUTTONS)
   ============================================ */

.btn {
    padding: var(--mezera-md) var(--mezera-xl);
    border: none;
    border-radius: var(--zaobleni-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--prechod-normalni);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background: var(--cervena-hlavni);
    color: var(--bila);
}

.btn-primary:hover {
    background: var(--cervena-tmava);
    color: var(--bila);
    transform: translateY(-2px);
    box-shadow: var(--stiny-md);
    text-decoration: none;
}

.btn-secondary {
    background: var(--seda-500);
    color: var(--bila);
}

.btn-secondary:hover {
    background: var(--seda-900);
    color: var(--bila);
    transform: translateY(-2px);
    box-shadow: var(--stiny-md);
    text-decoration: none;
}

.btn-success {
    background: var(--uspech);
    color: var(--bila);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--stiny-md);
    text-decoration: none;
}

.btn-danger {
    background: var(--chyba);
    color: var(--bila);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--stiny-md);
    text-decoration: none;
}

/* Disabled state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   7. KARTY (CARDS)
   ============================================ */

.card {
    background: var(--bila);
    border-radius: var(--zaobleni-lg);
    padding: var(--mezera-2xl);
    margin-bottom: var(--mezera-2xl);
    box-shadow: var(--stiny-md);
    border: 1px solid var(--seda-200);
    transition: var(--prechod-normalni);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--stiny-lg);
}

.card h2,
.card h3 {
    color: var(--cervena-hlavni);
    margin-bottom: var(--mezera-lg);
}

.card p {
    color: var(--seda-500);
    line-height: 1.6;
}

/* ============================================
   8. FORMULÁŘE (FORMS)
   ============================================ */

.form-group {
    margin-bottom: var(--mezera-xl);
}

.form-group label {
    display: block;
    margin-bottom: var(--mezera-sm);
    font-weight: 600;
    color: var(--cerna);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--cerna);
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:hover {
    border-color: var(--cervena-hlavni);
    box-shadow: 0 2px 8px rgba(196, 30, 30, 0.08);
    transform: translateY(-1px);
}

.form-control:focus {
    outline: none;
    border-color: var(--cervena-hlavni);
    box-shadow: 0 0 0 4px rgba(196, 30, 30, 0.1), 0 2px 8px rgba(196, 30, 30, 0.15);
    transform: translateY(-1px);
}

/* Select specific */
select.form-control {
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%236b7280" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right var(--mezera-md) center;
    background-size: 20px;
    padding-right: 2.5rem;
}

/* Textarea specific */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Form help text */
.form-help {
    font-size: 0.875rem;
    color: var(--seda-500);
    margin-top: var(--mezera-xs);
}

/* Form validation states */
.form-control.is-invalid {
    border-color: var(--chyba);
}

.form-control.is-valid {
    border-color: var(--uspech);
}

.invalid-feedback {
    color: var(--chyba);
    font-size: 0.875rem;
    margin-top: var(--mezera-xs);
}

.valid-feedback {
    color: var(--uspech);
    font-size: 0.875rem;
    margin-top: var(--mezera-xs);
}

/* ============================================
   9. NOTIFIKACE (ALERTS)
   ============================================ */

.alert {
    padding: var(--mezera-lg);
    margin: var(--mezera-lg) 0;
    border-radius: var(--zaobleni-md);
    border-left: 5px solid;
    font-weight: 500;
}

.alert-success {
    background: #f0fdf4;
    border-left-color: var(--uspech);
    color: #15803d;
}

.alert-error {
    background: #fef2f2;
    border-left-color: var(--chyba);
    color: #dc2626;
}

.alert-warning {
    background: #fffbeb;
    border-left-color: var(--varovani);
    color: #d97706;
}

.alert-info {
    background: #eff6ff;
    border-left-color: var(--info);
    color: #1d4ed8;
}

/* ============================================
   10. FOOTER
   ============================================ */

footer,
.footer-modern {
    background: #f8f9fa;
    padding: var(--mezera-lg) 0;
    margin-top: var(--mezera-2xl);
    text-align: center;
    color: var(--cerna);
    border-top: 1px solid var(--seda-200);
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--mezera-xl);
}

.company-description {
    margin: 0;
    font-size: 0.9rem;
}

.company-description a {
    color: var(--cervena-hlavni);
    text-decoration: none;
}

.company-description a:hover {
    text-decoration: underline;
}

/* ============================================
   11. UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--seda-500);
    font-size: 0.875rem;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--mezera-sm); }
.mt-md { margin-top: var(--mezera-md); }
.mt-lg { margin-top: var(--mezera-lg); }
.mt-xl { margin-top: var(--mezera-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--mezera-sm); }
.mb-md { margin-bottom: var(--mezera-md); }
.mb-lg { margin-bottom: var(--mezera-lg); }
.mb-xl { margin-bottom: var(--mezera-xl); }

/* ============================================
   11b. HAMBURGER MENU & MOBILE NAV
   ============================================ */

/* Header User Badge - hidden on desktop, visible on tablet/mobile */
.header-user-badge {
    display: none;
    align-items: center;
    margin-left: auto;
    order: 2;
}

.user-badge-link,
.user-badge-text {
    display: flex;
    align-items: center;
    gap: var(--mezera-sm);
    padding: var(--mezera-sm) var(--mezera-md);
    border-radius: var(--zaobleni-md);
    font-size: 0.85rem;
    color: var(--cerna);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    max-width: 350px;
}

.user-badge-link {
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.user-badge-link:hover {
    background: rgba(0, 0, 0, 0.1);
}

.user-badge-link.active {
    background: var(--cervena-hlavni);
    color: var(--bila);
}

.user-badge-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-badge-admin {
    font-weight: 600;
    opacity: 0.8;
}

.user-badge-guest {
    opacity: 0.6;
    font-style: italic;
}

.user-badge-text i,
.user-badge-link i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Hamburger Button - hidden on desktop (>1470px) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    border-radius: var(--zaobleni-sm);
    transition: background-color 0.2s ease;
    order: 3;
}

.hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.hamburger-btn:active {
    background: rgba(0, 0, 0, 0.12);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cerna);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger animation to X */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Body scroll lock when menu open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   12. RESPONSIVE
   ============================================ */

/* Tablet & Mobile - Hamburger menu (max 1590px) */
@media (max-width: 1590px) {
    /* Show user badge in header */
    .header-user-badge {
        display: flex;
    }

    /* Hide only user name/email in nav (shown in header badge instead) */
    .nav-modern .user-info .user-email,
    .nav-modern .user-info > a[href="/admin"] {
        display: none;
    }

    /* Show hamburger button */
    .hamburger-btn {
        display: flex;
    }

    /* Show overlay */
    .mobile-menu-overlay {
        display: block;
    }

    /* Navigation - slide-down menu from top edge, positioned right */
    .nav-modern {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 380px;
        max-width: 90vw;
        height: auto;
        max-height: 80vh;
        background: linear-gradient(180deg,
            rgb(255, 255, 255) 0%,
            rgb(248, 248, 248) 100%);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 13px 90px var(--mezera-md) 0; /* Top aligned with hamburger */
        margin: 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                    0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 0 var(--zaobleni-xl);
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-modern.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Nav links in mobile menu */
    .nav-modern a {
        display: flex;
        align-items: center;
        gap: var(--mezera-md);
        padding: var(--mezera-md) var(--mezera-lg);
        margin: 0 var(--mezera-sm);
        margin-right: 10px; /* Extra space from hamburger */
        border-radius: var(--zaobleni-md);
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--cerna);
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .nav-modern a:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    .nav-modern a.active {
        background: var(--cervena-hlavni) !important;
        color: var(--bila) !important;
    }

    .nav-modern a i {
        width: 20px;
        text-align: center;
        opacity: 0.7;
    }

    /* User info section in mobile menu */
    .user-info {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: var(--mezera-sm) 0 0 0;
        margin-top: var(--mezera-sm);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .user-info a,
    .user-info .user-email {
        display: flex;
        align-items: center;
        gap: var(--mezera-md);
        padding: var(--mezera-md) var(--mezera-lg);
        margin: 0 var(--mezera-sm);
        margin-right: 10px; /* Extra space from hamburger */
        border-radius: var(--zaobleni-md);
        font-size: 0.95rem;
    }

    .user-email {
        color: var(--cerna);
        opacity: 0.7;
        font-size: 0.9rem !important;
    }

    /* Logout button styling in mobile */
    .user-info .logout-btn {
        color: var(--cervena-hlavni);
        margin-top: var(--mezera-sm);
    }

    .user-info .logout-btn:hover {
        background: rgba(200, 16, 46, 0.08);
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--mezera-md);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .card {
        padding: var(--mezera-xl);
    }

    /* Header adjustments for smaller screens */
    .header-modern {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: linear-gradient(180deg,
            rgba(230, 230, 230, 1) 0%,
            rgba(210, 210, 210, 1) 50%,
            rgba(200, 200, 200, 1) 100%);
    }

    .header-modern::after {
        display: none;
    }

    .header-content-modern {
        padding: 0 var(--mezera-lg);
        flex-wrap: wrap;
    }

    /* User badge on second row on mobile */
    .header-user-badge {
        order: 4;
        width: 100%;
        justify-content: center;
        margin: var(--mezera-sm) 0 0 0;
        padding-top: var(--mezera-sm);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .user-badge-link,
    .user-badge-text {
        max-width: none;
    }

    /* Logo smaller on mobile */
    .logo-modern {
        min-width: auto;
        gap: var(--mezera-md);
        order: 1;
    }

    /* Hamburger stays on first row */
    .hamburger-btn {
        order: 2;
        margin-left: auto;
    }

    .logo-modern img {
        height: 40px;
        padding: 6px;
    }

    .logo-modern span {
        font-size: 1.2rem;
    }

    /* Narrower mobile menu */
    .nav-modern {
        width: 280px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--mezera-sm);
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: var(--mezera-lg);
    }

    .btn {
        width: 100%;
        display: block;
    }

    /* Even smaller header on phones */
    .header-content-modern {
        padding: 0 var(--mezera-md);
        min-height: 48px;
    }

    .logo-modern img {
        height: 36px;
        padding: 5px;
    }

    .logo-modern span {
        font-size: 1.1rem;
    }

    /* Adjust menu on small phones */
    .nav-modern {
        right: 0;
        width: calc(100vw - 20px);
        max-width: none;
        padding: 13px 50px var(--mezera-md) 0; /* Top aligned + hamburger space */
    }
}

/* ============================================
   SESSION WARNING MODAL
   Proactive warning before session expires
   ============================================ */

.session-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.session-warning-modal.visible {
    opacity: 1;
    visibility: visible;
}

.session-warning-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.session-warning-content {
    position: relative;
    background: white;
    border-radius: var(--zaobleni-lg);
    padding: var(--mezera-2xl);
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: var(--stiny-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.session-warning-modal.visible .session-warning-content {
    transform: scale(1);
}

.session-warning-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--mezera-lg);
    background: var(--varovani-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-warning-icon i {
    font-size: 28px;
    color: var(--varovani-600);
}

.session-warning-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--seda-900);
    margin-bottom: var(--mezera-sm);
}

.session-warning-message {
    font-size: 0.95rem;
    color: var(--seda-600);
    margin-bottom: var(--mezera-xl);
    line-height: 1.5;
}

.session-warning-message #session-countdown {
    font-weight: 700;
    color: var(--varovani-600);
    font-size: 1.1rem;
}

.session-warning-buttons {
    display: flex;
    gap: var(--mezera-md);
    justify-content: center;
}

.btn-session-continue,
.btn-session-logout {
    padding: var(--mezera-md) var(--mezera-xl);
    border-radius: var(--zaobleni-md);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: var(--mezera-sm);
    transition: all var(--prechod-rychly);
}

.btn-session-continue {
    background: var(--cervena-hlavni);
    color: white;
}

.btn-session-continue:hover {
    background: var(--cervena-tmava);
    color: white;
}

.btn-session-continue:active,
.btn-session-continue:focus {
    background: var(--cervena-tmava);
    color: white;
    outline: none;
}

.btn-session-continue:disabled {
    background: var(--cervena-hlavni) !important;
    color: white !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-session-continue:disabled:hover {
    background: var(--cervena-hlavni) !important;
}

.btn-session-logout {
    background: var(--seda-100);
    color: var(--seda-700);
}

.btn-session-logout:hover {
    background: var(--seda-200);
}

@media (max-width: 480px) {
    .session-warning-content {
        padding: var(--mezera-xl);
    }

    .session-warning-buttons {
        flex-direction: column;
    }

    .btn-session-continue,
    .btn-session-logout {
        width: 100%;
        justify-content: center;
    }
}


