/* =========================
   Globální styly - MOBILE FIRST
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Odstranění modrého zvýraznění na dotek */
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    min-height: 100vh;
    /* Zabránění zoomování na iOS při fokusu na input */
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

/* =========================
   Přihlašovací stránka - MOBILE OPTIMIZED
   ========================= */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 25px 20px;
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.login-header p {
    margin: 8px 0 0;
    color: #666;
    font-size: 14px;
}

/* =========================
   Registrační stránka - MOBILE OPTIMIZED
   ========================= */
.register-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 15px;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    padding: 25px 20px;
}

.logo {
    text-align: center;
    font-size: 56px;
    margin-bottom: 15px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

/* =========================
   Formuláře - MOBILE OPTIMIZED
   ========================= */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 15px; /* Zvětšeno pro lepší čitelnost */
}

.form-group input {
    width: 100%;
    padding: 14px 16px; /* Větší padding pro pohodlí při psaní */
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px; /* Minimálně 16px zabraňuje auto-zoomu na iOS */
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #475569;
}

/* =========================
   Tlačítka - MOBILE OPTIMIZED
   ========================= */
.login-button,
.btn,
.btn-primary {
    width: 100%;
    padding: 16px 20px; /* Větší tlačítka pro prsty */
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
    /* Vylepšení pro dotykové obrazovky */
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    min-height: 48px; /* Doporučená minimální výška pro touch */
}

.login-button:active,
.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.register-button,
.btn-secondary {
    width: 100%;
    padding: 16px 20px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 8px;
    transition: background 0.3s, transform 0.2s;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    min-height: 48px;
}

.register-button:active,
.btn-secondary:active {
    background: #e0e0e0;
    transform: scale(0.98);
}

/* =========================
   Zprávy a alerty
   ========================= */
.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #c33;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =========================
   Footer
   ========================= */
.footer-text {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 12px;
}

/* =========================
   Benefits sekce - MOBILE OPTIMIZED
   ========================= */
.benefits {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 12px;
    margin-top: 20px;
}

.benefits h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 17px;
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.benefits li:before {
    content: "✓ ";
    color: #4caf50;
    font-weight: bold;
    margin-right: 8px;
}

/* =========================
   MEDIA QUERIES - Pro tablety a větší obrazovky
   ========================= */

/* Tablety - landscape */
@media (min-width: 768px) {
    header h1 {
        font-size: 24px;
        text-align: left;
    }

    .sidebar-menu {
        max-width: 350px;
    }

    main {
        padding: 30px 25px;
        max-width: 1000px;
        margin: 20px auto;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .login-container,
    .container {
        padding: 35px 30px;
    }

    .main-container {
        max-width: 700px;
        padding: 35px 30px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    header {
        padding: 20px 30px;
    }

    header h1 {
        font-size: 26px;
    }

    main {
        padding: 40px 30px;
        max-width: 1200px;
    }

    main h2 {
        font-size: 26px;
    }

    .login-header h1,
    h1 {
        font-size: 28px;
    }

    .logo {
        font-size: 64px;
    }
}

/* Utility třídy pro lepší touch UX */
.no-select {
    -webkit-user-select: none;
    user-select: none;
}

.touch-feedback:active {
    opacity: 0.7;
}

/* =========================
   Menu a hlavní stránka - MOBILE OPTIMIZED
   ========================= */
header {
    background: white;
    padding: 12px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    margin: 0;
    color: #333;
    text-align: center;
    font-size: 18px;
    flex: 1;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.user-info-header {
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* =========================
   Hamburger menu ikona
   ========================= */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 150;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #475569;
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================
   Sidebar menu
   ========================= */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 120;
    overflow-y: auto;
}

.sidebar-menu.active {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 110;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

.menu-header {
    padding: 20px;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
}

.user-info-menu {
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.menu-items {
    padding: 10px;
}

.menu-items .menu-item {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 15px;
    text-align: left;
    display: block;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.menu-items .menu-item:active {
    background: #475569;
    color: white;
    transform: scale(0.98);
}

.menu-items .menu-item.active {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
}

.menu-items .logout-button {
 
    background: #ff6b6b !important;
    color: white !important;
    margin-top: 25px;
}

.menu-items .logout-button:active {
    background: #e64c4c !important;
}

/* Staré styly skryté */
.menu_pasek {
    display: none;
}

.user-info {
    display: none;
}

.admin-badge {
    font-size: 11px;
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 5px;
    display: inline-block;
}

.main-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 25px 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 15px;
}

.main-header {
    text-align: center;
    margin-bottom: 25px;
}

.main-header h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.main-header p {
    margin: 8px 0 0;
    color: #666;
    font-size: 14px;
}

main {
    padding: 20px 15px;
    max-width: 100%;
    margin: 0;
    background: white;
    min-height: calc(100vh - 60px);
}

main h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 22px;
}

main h3 {
    color: #333;
    margin-bottom: 12px;
    margin-top: 20px;
    font-size: 18px;
}

main p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

footer {
    text-align: center;
    padding: 15px;
    color: white;
    margin-top: 20px;
    font-size: 13px;
}

/* =========================
   Správa zaměstnanců - MOBILE FIRST
   ========================= */
.employees-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.action-buttons {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mobilní card view */
.employees-cards {
    display: block;
}

.employee-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.employee-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.employee-card-info {
    margin-bottom: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-label {
    color: #666;
    font-size: 12px;
    margin-bottom: 3px;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.employee-card-actions {
    display: flex;
    gap: 8px;
}

.employee-card-actions .btn {
    flex: 1;
}

/* Desktop tabulka - skrytá na mobilu */
.employees-table {
    display: none;
}

.btn {
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3);
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-small {
    padding: 10px 14px;
    font-size: 14px;
}

/* ===== INFO SPRÁVA (info.php) ===== */
.info-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-form-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.info-form-card h3 {
    margin: 0 0 20px 0;
    color: #334155;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-notes-list {
    margin-top: 24px;
}

.info-note-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    border-left: 4px solid #334155;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-note-card.inactive {
    opacity: 0.6;
    background: #f8f8f8;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.note-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.note-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    background: #e0e0e0;
    color: #666;
    margin-left: 8px;
}

.note-date {
    font-size: 13px;
    color: #64748b;
}

.note-title {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 18px;
}

.note-content {
    color: #475569;
    line-height: 1.6;
    margin: 12px 0;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
}

.note-author {
    font-size: 14px;
    color: #64748b;
}

.note-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    transition: background 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: #4caf50;
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 14px;
    color: #475569;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.empty-state {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ===== DOMOVSKÁ STRÁNKA (domu.php) ===== */
.home-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.home-header {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.home-header h2 {
    margin: 0 0 8px 0;
    color: #1e293b;
}

.welcome-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.info-messages {
    margin-bottom: 24px;
}

.info-message-card {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-actions {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    min-height: 100px;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.quick-action-card:active {
    transform: translateY(-2px);
}

/* Mobilní responzivita */
@media (max-width: 768px) {
    .info-container,
    .home-container {
        padding: 12px;
    }

    .info-form-card,
    .home-header,
    .welcome-card,
    .quick-actions {
        padding: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .note-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .note-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .note-title {
        font-size: 16px;
    }

    .info-message-card {
        padding: 14px 16px !important;
    }

    .quick-actions h3 {
        font-size: 18px;
    }
}

/* ===== SPRÁVA VOZIDEL (auta.php) ===== */
.vehicles-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.vehicle-form-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.vehicle-form-card h3 {
    margin: 0 0 20px 0;
    color: #334155;
}

.vehicles-list {
    margin-top: 24px;
}

/* Mobilní zobrazení - karty */
.vehicles-cards {
    display: block;
}

.vehicle-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    border-left: 4px solid #2196F3;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.vehicle-spz {
    margin: 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.vehicle-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: #e3f2fd;
    color: #1565c0;
}

.vehicle-info {
    margin: 16px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #64748b;
    font-size: 14px;
}

.info-value {
    color: #1e293b;
    font-weight: 500;
    font-size: 14px;
}

.vehicle-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Desktop zobrazení - tabulka */
.vehicles-table {
    display: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.vehicles-table table {
    width: 100%;
    border-collapse: collapse;
}

.vehicles-table thead {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
}

.vehicles-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.vehicles-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.vehicles-table tbody tr:hover {
    background: #f8fafc;
}

.vehicles-table tbody tr:last-child td {
    border-bottom: none;
}

/* Desktop responzivita */
@media (min-width: 768px) {
    .vehicles-cards {
        display: none;
    }

    .vehicles-table {
        display: block;
    }

    .vehicles-container {
        padding: 24px;
    }

    .vehicle-form-card {
        padding: 32px;
    }
}

/* Mobilní optimalizace */
@media (max-width: 768px) {
    .vehicles-container {
        padding: 12px;
    }

    .vehicle-form-card {
        padding: 16px;
    }

    .vehicle-spz {
        font-size: 18px;
    }

    .vehicle-actions {
        flex-direction: column;
    }

    .vehicle-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== DETAIL VOZIDLA (detail.php) ===== */
.detail-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-header {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.detail-header h2 {
    margin: 8px 0;
    color: #1e293b;
}

.detail-header code {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.vehicle-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.stat-card {
    flex: 1;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.record-form-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.record-form-card h3 {
    margin: 0 0 20px 0;
    color: #334155;
}

.records-list {
    margin-top: 24px;
}

.record-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    border-left: 4px solid #334155;
    transition: transform 0.2s, box-shadow 0.2s;
}

.record-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.record-card.ceka {
    border-left-color: #ff9800;
}

.record-card.probiha {
    border-left-color: #2196F3;
}

.record-card.hotovo {
    border-left-color: #4caf50;
}

.record-card.zruseno {
    border-left-color: #9e9e9e;
    opacity: 0.7;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
}

.record-type {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.record-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.priority-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: #e0e0e0;
    color: #333;
}

.priority-kriticka {
    background: #ffebee;
    color: #c62828;
}

.priority-vysoka {
    background: #fff3e0;
    color: #e65100;
}

.priority-normalni {
    background: #fff9c4;
    color: #f57f17;
}

.priority-nizka {
    background: #e8f5e9;
    color: #2e7d32;
}

.record-content {
    margin: 16px 0;
}

.record-description {
    color: #1e293b;
    line-height: 1.6;
    margin: 0;
}

.record-notes {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-left: 3px solid #2196F3;
    border-radius: 6px;
}

.record-notes strong {
    color: #334155;
    display: block;
    margin-bottom: 8px;
}

.record-notes p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.record-meta {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.meta-label {
    color: #64748b;
    font-size: 14px;
}

.meta-value {
    color: #1e293b;
    font-weight: 500;
    font-size: 14px;
}

.record-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Mobilní optimalizace */
@media (max-width: 768px) {
    .detail-container {
        padding: 12px;
    }

    .detail-header {
        padding: 16px;
    }

    .record-form-card {
        padding: 16px;
    }

    .vehicle-stats {
        flex-direction: column;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .record-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .record-actions {
        flex-direction: column;
    }

    .record-actions .btn {
        width: 100%;
        justify-content: center;
    }
}


.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.employee-form {
    background: white;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Desktop a tablety */
@media (min-width: 768px) {
    .employees-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .action-buttons {
        flex-direction: row;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(71, 85, 105, 0.4);
    }

    /* Skrýt cards na desktopu */
    .employees-cards {
        display: none;
    }

    /* Zobrazit tabulku na desktopu */
    .employees-table {
        display: block;
        width: 100%;
        background: white;
        border-radius: 12px;
        overflow-x: auto;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .employees-table table {
        width: 100%;
        border-collapse: collapse;
    }

    .employees-table th {
        background: linear-gradient(135deg, #475569 0%, #334155 100%);
        color: white;
        padding: 15px;
        text-align: left;
        font-weight: 600;
        font-size: 14px;
        white-space: nowrap;
    }

    .employees-table td {
        padding: 15px;
        border-bottom: 1px solid #e0e0e0;
        font-size: 14px;
    }

    .employees-table tr:last-child td {
        border-bottom: none;
    }

    .employees-table tr:hover {
        background: #f8f9fa;
    }

    .employee-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .btn-small {
        padding: 8px 14px;
        display: inline-block;
        width: auto;
        margin-right: 5px;
    }

    .role-badge {
        padding: 5px 12px;
        font-size: 13px;
    }
}

/* =========================
   Osobní nastavení - MOBILE FIRST
   ========================= */
.settings-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.settings-card {
    background: white;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.settings-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.account-info {
    margin-top: 15px;
}

.info-row {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.info-value {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.settings-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
}

.settings-info h4 {
    color: #333;
    font-size: 16px;
    margin: 0 0 10px 0;
}

.settings-info ul {
    margin: 0;
    padding-left: 20px;
}

.settings-info li {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Desktop */
@media (min-width: 768px) {
    .settings-container {
        max-width: 800px;
        margin: 0 auto;
    }

    .settings-card {
        padding: 25px 30px;
    }

    .settings-card h3 {
        font-size: 20px;
    }

    .info-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .info-label {
        font-size: 14px;
        margin-bottom: 0;
    }

    .info-value {
        font-size: 16px;
    }

    .settings-info {
        padding: 20px;
    }
}
