  <style>
        /* --- TS ENERGY BAREVNÁ PALETA & PROMĚNNÉ --- */
        :root {
            --ts-blue: #005393;    /* Tmavě modrá z "TS" a panelu */
            --ts-green: #6eb640;   /* Světle zelená z "ENERGY" a listu */
            --ts-orange: #ffb300;  /* Oranžová ze slunce */
            --dark: #1e293b;       /* Tmavě šedá pro text */
            --light: #f0f2f5;      /* Světle šedá pro pozadí */
            --white: #ffffff;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --radius: 10px;
            --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
        }

        /* --- ZÁKLADNÍ NASTAVENÍ --- */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: var(--light);
            color: var(--dark);
            font-family: var(--font-family);
            line-height: 1.6;
        }

        /* --- HLAVIČKA --- */
        header {
            background: var(--white);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            border-bottom: 3px solid var(--ts-green); /* Zelený akcent */
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .logo-img {
            height: 50px; /* Nastavitelná výška loga */
            width: auto;
        }

        .app-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--ts-blue);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .user-panel {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
            color: var(--ts-blue);
            background: var(--light);
            padding: 0.5rem 1rem;
            border-radius: 50px;
        }

        .user-avatar {
            background: var(--ts-green);
            color: var(--white);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }

        /* --- HLAVNÍ OBSAH --- */
        main {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }

        /* --- FILTRAČNÍ LIŠTA --- */
        .filters {
            background: var(--white);
            padding: 1.5rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            margin-bottom: 2rem;
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: flex-end;
            border-left: 5px solid var(--ts-blue);
        }

        .filter-group {
            flex: 1;
            min-width: 200px;
        }

        label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--ts-blue);
        }

        select, input {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid #e2e8f0;
            border-radius: var(--radius);
            font-size: 1rem;
            color: var(--dark);
            transition: border-color 0.2s;
        }

        select:focus, input:focus {
            border-color: var(--ts-green);
            outline: none;
        }

        .btn-search {
            background: linear-gradient(135deg, var(--ts-blue), #006cbd);
            color: var(--white);
            border: none;
            padding: 0.85rem 1.5rem;
            border-radius: var(--radius);
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.1s, box-shadow 0.2s;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn-search:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 83, 147, 0.3);
        }

        /* --- GRID VOZIDEL --- */
        .cars-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;
        }

        .car-card {
            background: var(--white);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
            border-top: 4px solid transparent;
        }

        .car-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
            border-top-color: var(--ts-green);
        }

        .car-image {
            height: 220px;
            background: linear-gradient(45deg, #f1f5f9, #e2e8f0);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        

        .car-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--ts-orange); /* Oranžová pro "Slunce" */
            color: var(--white);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 700;
            box-shadow: 0 2px 6px rgba(255, 179, 0, 0.4);
        }

        .car-details {
            padding: 1.5rem;
        }

        .car-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            color: var(--ts-blue);
        }

        .car-specs {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
            color: var(--dark);
        }

        .spec-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .spec-item i {
            color: var(--ts-green);
        }

        .car-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            border-top: 1px solid #f0f2f5;
        }

        .availability {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--ts-green);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .btn-book {
            background: var(--ts-green);
            color: var(--white);
            border: none;
            padding: 0.6rem 1.2rem;
            border-radius: var(--radius);
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
        }

        .btn-book:hover {
            background: var(--ts-blue);
            transform: scale(1.05);
        }

        /* --- MODÁLNÍ OKNO --- */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(30, 41, 59, 0.8); /* Tmavší overlay */
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.active { display: flex; }

        .modal-content {
            background: var(--white);
            padding: 2.5rem;
            border-radius: 16px;
            width: 90%;
            max-width: 550px;
            position: relative;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            border-top: 6px solid var(--ts-blue);
        }

        .close-modal {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            font-size: 1.8rem;
            cursor: pointer;
            border: none;
            background: none;
            color: #94a3b8;
            transition: color 0.2s;
        }
        
        .close-modal:hover { color: var(--ts-blue); }

        .modal h2 {
            color: var(--ts-blue);
            margin-bottom: 1.5rem;
            font-size: 1.8rem;
        }

        .form-group { margin-bottom: 1.25rem; }

        .btn-confirm {
            width: 100%;
            background: var(--ts-blue);
            color: var(--white);
            border: none;
            padding: 1rem;
            border-radius: var(--radius);
            font-weight: 700;
            font-size: 1.1rem;
            cursor: pointer;
            transition: background 0.2s;
        }

        .btn-confirm:hover { background: #004275; }
/* Styl pro potvrzené/dokončené (neprojde přes ně výběr) */
.flatpickr-day.confirmed-reservation {
    background: #ff4d4d !important;
    border-color: #ff4d4d !important;
    color: white !important;
    cursor: not-allowed !important;
}

/* Styl pro žádosti (oranžová - varování) */
.flatpickr-day.requested-reservation {
    background: #ffa500 !important;
    border-color: #ffa500 !important;
    color: white !important;
}

/* Legenda pod kalendářem */
.calendar-legend {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.9rem;
    justify-content: center;
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.box { width: 12px; height: 12px; border-radius: 2px; }

/* Základní overlay modálu */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

/* Obsah modálu */
.modal-content {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Zavírací tlačítko */
.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-modal:hover { background: #e5e7eb; }

/* Nadpis a text */
.modal-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #111827;
    font-weight: 700;
}

/* Pole formuláře */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Legenda kalendáře - čistší verze */
.calendar-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.legend-item .box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 6px;
}

/* Potvrzovací tlačítko */
.btn-confirm {
    width: 100%;
    padding: 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.btn-confirm:hover { background: #2980b9; }

/* Flatpickr customizace, aby ladil s modálem */
.flatpickr-calendar {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
}