/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Odstránenie 300ms tap delay a tap highlight na mobile */
a, button, input, select, textarea, .btn, [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Light theme (default) */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --secondary: #6b7280;
    --secondary-dark: #4b5563;
    --background: #f9fafb;
    --background-alt: #f3f4f6;
    --card-bg: #ffffff;
    --text: #111827;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --nav-bg: #1f2937;
    --nav-hover: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Safe areas for notch devices */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);

    /* Bottom nav height */
    --bottom-nav-height: calc(52px + var(--safe-area-bottom));
    --header-height: 48px;

    /* Font sizes - unified scale */
    --text-xs: 0.75rem;      /* 12px - micro labels, table headers */
    --text-sm: 0.8125rem;    /* 13px - secondary text, hints */
    --text-base: 0.875rem;   /* 14px - standard body text */
    --text-md: 1rem;         /* 16px - emphasized text, inputs */

    /* Heading sizes */
    --text-lg: 1.125rem;     /* 18px - small headings */
    --text-xl: 1.25rem;      /* 20px - medium headings */
    --text-2xl: 1.375rem;    /* 22px - page/card titles */
}

/* ==================== DARK MODE ==================== */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --success: #34d399;
    --success-dark: #10b981;
    --danger: #f87171;
    --danger-dark: #ef4444;
    --warning: #fbbf24;
    --secondary: #9ca3af;
    --secondary-dark: #6b7280;
    --background: #111827;
    --background-alt: #1f2937;
    --card-bg: #1f2937;
    --text: #f9fafb;
    --text-light: #d1d5db;
    --text-muted: #9ca3af;
    --border: #374151;
    --border-light: #4b5563;
    --nav-bg: #0f172a;
    --nav-hover: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary: #3b82f6;
        --primary-dark: #2563eb;
        --primary-light: #60a5fa;
        --success: #34d399;
        --success-dark: #10b981;
        --danger: #f87171;
        --danger-dark: #ef4444;
        --warning: #fbbf24;
        --secondary: #9ca3af;
        --secondary-dark: #6b7280;
        --background: #111827;
        --background-alt: #1f2937;
        --card-bg: #1f2937;
        --text: #f9fafb;
        --text-light: #d1d5db;
        --text-muted: #9ca3af;
        --border: #374151;
        --border-light: #4b5563;
        --nav-bg: #0f172a;
        --nav-hover: #1e293b;
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* PWA optimizations */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

/* Allow text selection in inputs and content */
input, textarea, .card, .flash, p, h1, h2, h3, td, th {
    -webkit-user-select: text;
    user-select: text;
}

/* ==================== CONTAINER ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    padding-left: calc(1rem + var(--safe-area-left));
    padding-right: calc(1rem + var(--safe-area-right));
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
        padding-left: calc(0.5rem + var(--safe-area-left));
        padding-right: calc(0.5rem + var(--safe-area-right));
    }
}

@media (min-width: 768px) {
    .container {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 2rem;
    }
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding-top: 0.5rem;
    padding-bottom: calc(var(--bottom-nav-height) + 1rem);
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    transition: opacity 0.08s ease-out;
}

/* ==================== APP HEADER ==================== */
.app-header {
    background: linear-gradient(135deg, var(--nav-bg) 0%, #111827 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: var(--safe-area-top);
    box-shadow: var(--shadow);
    view-transition-name: app-header;
}

[data-theme="dark"] .app-header {
    background: linear-gradient(135deg, var(--nav-bg) 0%, #020617 100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo {
    width: 1.75rem;
    height: 1.75rem;
    filter: invert(1);
}

.header-title {
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    min-width: 44px;
    min-height: 44px;
}

@media (hover: hover) {
    .header-btn:hover {
        background: var(--nav-hover);
    }
}

.header-btn:focus {
    outline: none;
}

.header-btn:active {
    transform: scale(0.95);
}

.header-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Dark mode toggle icons */
.header-btn .icon-dark {
    display: none;
}

[data-theme="dark"] .header-btn .icon-light {
    display: none;
}

[data-theme="dark"] .header-btn .icon-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .header-btn .icon-light {
        display: none;
    }
    :root:not([data-theme="light"]) .header-btn .icon-dark {
        display: block;
    }
}

.header-user {
    font-size: var(--text-base);
    font-weight: 500;
    opacity: 0.9;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
}

@media (min-width: 480px) {
    .header-user {
        display: block;
    }
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: var(--bottom-nav-height);
    padding-bottom: var(--safe-area-bottom);
    z-index: 100;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    view-transition-name: bottom-nav;
    /* Ensure fixed position even with virtual keyboard */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

[data-theme="dark"] .bottom-nav {
    background: var(--nav-bg);
    border-top-color: var(--border);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.375rem 0.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: 500;
    transition: color 0.1s, transform 0.1s;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 1.75;
    transition: transform 0.2s;
}

@media (hover: hover) {
    .bottom-nav-item:hover:not(.active) {
        color: var(--primary);
    }
}

.bottom-nav-item:focus {
    outline: none;
}

.bottom-nav-item:active svg {
    transform: scale(0.9);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active svg {
    stroke-width: 2.25;
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

@media (min-width: 480px) {
    .bottom-nav-item svg {
        width: 1.375rem;
        height: 1.375rem;
    }
}

/* ==================== FLASH MESSAGES ==================== */
.flash-container {
    padding-top: 0.5rem;
    padding-bottom: 0;
    view-transition-name: flash-container;
}

.flash-messages {
    margin-bottom: 0;
}

.flash {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash.success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

[data-theme="dark"] .flash.success {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.flash.success strong {
    color: #064e3b;
    font-weight: 700;
}

[data-theme="dark"] .flash.success strong {
    color: #a7f3d0;
}

.flash.error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

[data-theme="dark"] .flash.error {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.flash.error strong {
    color: #7f1d1d;
    font-weight: 700;
}

[data-theme="dark"] .flash.error strong {
    color: #fecaca;
}

/* ==================== PAGE CONTAINERS ==================== */
.page-container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-container-wide {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .page-container,
    .page-container-wide {
        padding: 0 0.375rem;
    }
}

/* ==================== CARDS ==================== */
.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

@media (max-width: 480px) {
    .card {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
}

.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.card h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .card {
        padding: 2rem;
        border-radius: 1.25rem;
    }

    .card-title,
    .card h2 {
        font-size: 1.5rem; /* Larger on desktop */
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
        border-radius: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .card-title,
    .card h2 {
        font-size: var(--text-xl);
        margin-bottom: 1rem;
    }
}

/* ==================== PAGE TITLE ==================== */
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-header .page-title {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .page-title {
        font-size: var(--text-2xl);
        margin-bottom: 1rem;
    }

    .page-header {
        margin-bottom: 1rem;
    }
}

/* ==================== TEXT UTILITIES ==================== */
.text-muted {
    color: var(--text-muted);
}

.text-hint {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-top: 0.375rem;
}

.info-box {
    color: var(--text-light);
    padding: 0.875rem 1rem;
    background: var(--background-alt);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
    margin-bottom: 1.25rem;
    font-size: var(--text-base);
    line-height: 1.5;
}

/* ==================== SECTION DIVIDER ==================== */
.section-divider {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
    .section-divider {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
}

/* ==================== LIST ITEMS ==================== */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--background-alt);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    gap: 1rem;
    min-height: 56px;
}

.list-item:last-child {
    margin-bottom: 0;
}

.list-item-text {
    font-weight: 600;
    font-size: var(--text-lg);
    color: var(--text);
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ==================== INLINE FORM ==================== */
.inline-form {
    display: flex;
    gap: 0.75rem;
}

.inline-form input {
    flex: 1;
}

.inline-form .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .inline-form {
        flex-direction: column;
    }

    .inline-form .btn {
        width: 100%;
    }
}

/* ==================== BUTTON GROUP ==================== */
.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
    min-width: 120px;
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: var(--text-base);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-size: var(--text-md);
    transition: all 0.2s ease;
    background-color: var(--card-bg);
    color: var(--text);
    min-height: 52px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="password"]:focus,
[data-theme="dark"] input[type="number"]:focus,
[data-theme="dark"] input[type="date"]:focus,
[data-theme="dark"] select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

input[type="text"]:disabled,
input[type="password"]:disabled,
input[type="number"]:disabled,
input[type="date"]:disabled,
select:disabled {
    background-color: var(--background-alt);
    color: var(--text-light);
    cursor: not-allowed;
}

input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary);
}

@media (min-width: 768px) {
    label {
        font-size: var(--text-md);
    }

    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    select {
        padding: 1rem 1.25rem;
    }
}

/* ==================== BUTTONS ==================== */
button,
.btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: var(--text-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 52px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

button:active,
.btn:active {
    transform: scale(0.98);
}

button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: white;
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #4b5563 100%);
    color: white;
}

@media (hover: hover) {
    .btn-primary:hover:not(:disabled) {
        background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
        box-shadow: var(--shadow);
    }
    .btn-success:hover:not(:disabled) {
        background: linear-gradient(135deg, var(--success-dark) 0%, #047857 100%);
        box-shadow: var(--shadow);
    }
    .btn-danger:hover:not(:disabled) {
        background: linear-gradient(135deg, var(--danger-dark) 0%, #b91c1c 100%);
        box-shadow: var(--shadow);
    }
    .btn-secondary:hover:not(:disabled) {
        background: linear-gradient(135deg, var(--secondary-dark) 0%, #374151 100%);
        box-shadow: var(--shadow);
    }
}

.btn:focus {
    outline: none;
}

/* ==================== RIPPLE EFFECT ==================== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==================== TABLES ==================== */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-base);
}

th {
    background-color: var(--background-alt);
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

td {
    color: var(--text);
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background-color 0.15s ease;
}

tbody tr:hover {
    background-color: var(--background-alt);
}

@media (min-width: 768px) {
    th,
    td {
        padding: 1.25rem;
        font-size: var(--text-md);
    }

    th {
        font-size: var(--text-base);
    }
}

/* ==================== AUTOCOMPLETE ==================== */
.autocomplete {
    position: relative;
}

.input-with-clear {
    position: relative;
    width: 100%;
}

.input-with-clear input {
    width: 100%;
    padding-right: 2.75rem;
}

.clear-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    color: var(--text-muted);
    min-height: auto;
    min-width: auto;
    box-shadow: none;
}

@media (hover: hover) {
    .clear-button:hover {
        background-color: var(--background-alt);
        color: var(--text-light);
    }
}

.clear-button:focus {
    outline: none;
}

.clear-button:active {
    background-color: var(--border);
    transform: translateY(-50%) scale(0.95);
}

.clear-button svg {
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 2.5;
}

.autocomplete-items {
    position: absolute;
    z-index: 99;
    top: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
}

.autocomplete-items:empty {
    display: none;
}

.autocomplete-items div {
    padding: 0.875rem 1rem;
    cursor: pointer;
    line-height: 1.4;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.autocomplete-items div:last-child {
    border-bottom: none;
    border-radius: 0 0 0.625rem 0.625rem;
}

.autocomplete-items div:first-child {
    border-radius: 0.625rem 0.625rem 0 0;
}

.autocomplete-items div:only-child {
    border-radius: 0.625rem;
}

.autocomplete-items div:hover,
.autocomplete-items div:focus {
    background-color: var(--background-alt);
}

.autocomplete-items div:active {
    background-color: var(--border);
}

.autocomplete-items div strong {
    font-size: var(--text-base);
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
}

.autocomplete-items div small {
    display: block;
    color: var(--text-light);
    font-size: var(--text-sm);
    line-height: 1.3;
}

.autocomplete-active {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%) !important;
    color: white !important;
}

.autocomplete-active strong,
.autocomplete-active small {
    color: white !important;
}

/* Scrollbar styling */
.autocomplete-items::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-items::-webkit-scrollbar-track {
    background: var(--background-alt);
}

.autocomplete-items::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.autocomplete-items::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== DAYS QUICK SELECT ==================== */
.days-quick-select {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.day-btn {
    flex: 1;
    min-width: calc(20% - 0.5rem);
    padding: 0.75rem;
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    border-radius: 0.75rem;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    min-height: 48px;
}

@media (hover: hover) {
    .day-btn:hover:not(.active) {
        border-color: var(--primary);
        background: rgba(37, 99, 235, 0.1);
        color: var(--primary);
    }
}

.day-btn:focus {
    outline: none;
    border-color: var(--border);
    background: var(--card-bg);
    color: var(--text);
}

.day-btn.active:focus {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: white;
}

.day-btn:active {
    transform: scale(0.97);
}

.day-btn.active,
.day-btn.active:hover,
.day-btn.active:focus {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

@media (max-width: 480px) {
    .day-btn {
        min-width: calc(33.333% - 0.5rem);
    }
}

@media (min-width: 640px) {
    .day-btn {
        padding: 0.75rem 1rem;
    }
}

/* ==================== LOADING INDICATOR ==================== */
#loading-parkings {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] #loading-parkings {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.4);
}

#loading-parkings p {
    margin: 0;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== TICKET DETAILS ==================== */
.ticket-details {
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.3s ease;
}

[data-theme="dark"] .ticket-details {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ticket-details-content {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ticket-detail-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.ticket-detail-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.ticket-detail-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.ticket-detail-label {
    font-size: var(--text-xs);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ticket-detail-value {
    font-size: var(--text-base);
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 640px) {
    .ticket-details-content {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-secondary {
    background-color: var(--background-alt);
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* ==================== ACTION BUTTONS ==================== */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.625rem 1rem;
    font-size: var(--text-base);
    min-width: 85px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    vertical-align: middle;
    min-height: 44px;
}

/* ==================== FILTERS ==================== */
.filters-form {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.filters-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .filters-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .filters-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-size: var(--text-base);
    margin-bottom: 0.375rem;
}

.filter-item select,
.filter-item input[type="date"] {
    font-size: var(--text-base);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Vynutiť rovnakú šírku pre date inputy */
.filter-item input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Kalendár ikona pre date input */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    filter: var(--calendar-icon-filter, none);
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.filters-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ==================== RESULTS INFO ==================== */
.results-info {
    background: rgba(37, 99, 235, 0.1);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .results-info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.results-info p {
    margin: 0;
    font-size: var(--text-base);
    color: var(--primary);
}

.results-info p:not(:last-child) {
    margin-bottom: 0.375rem;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    transition: all 0.2s ease;
    border: 2px solid var(--primary);
}

@media (hover: hover) {
    .pagination-btn:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
    }
}

.pagination-btn:focus {
    outline: none;
}

.pagination-btn.disabled {
    background: var(--background-alt);
    color: var(--text-muted);
    border-color: var(--border);
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn svg {
    width: 1rem;
    height: 1rem;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    background: var(--card-bg);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    transition: all 0.2s ease;
}

@media (hover: hover) {
    .pagination-page:hover:not(.active) {
        border-color: var(--primary);
        background: rgba(37, 99, 235, 0.1);
        color: var(--primary);
    }
}

.pagination-page:focus {
    outline: none;
}

.pagination-page.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-ellipsis {
    color: var(--text-light);
    padding: 0 0.25rem;
}

@media (max-width: 640px) {
    .pagination {
        justify-content: center;
    }

    .pagination-btn {
        font-size: var(--text-sm);
        padding: 0.5rem 0.75rem;
    }

    .pagination-pages {
        order: -1;
        width: 100%;
    }

    .pagination-page {
        min-width: 2.25rem;
        height: 2.25rem;
    }
}

/* ==================== LOGS RESPONSIVE ==================== */
/* Mobile zobrazenie - karty */
.logs-mobile {
    display: block;
}

.logs-desktop {
    display: none;
}

/* Na mobile skryť vonkajšiu kartu pre logy */
@media (max-width: 767px) {
    .logs-page-card {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .logs-page-card .results-info {
        margin-bottom: 1.25rem;
    }

    .logs-page-card .filters-form {
        margin-bottom: 1.25rem;
    }
}

.log-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.log-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--background-alt);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.log-card-date {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text);
}

.log-card-date svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.log-card-body {
    padding: 1.25rem;
}

.log-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
}

.log-card-row:last-child {
    border-bottom: none;
}

.log-card-label {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    flex-shrink: 0;
    min-width: 90px;
}

.log-card-value {
    font-size: var(--text-md);
    color: var(--text);
    text-align: right;
    flex: 1;
}

/* Desktop zobrazenie - tabuľka */
@media (min-width: 768px) {
    .logs-mobile {
        display: none;
    }

    .logs-desktop {
        display: block;
    }
}

/* ==================== USER CARDS ==================== */
.users-mobile {
    display: block;
}

.users-desktop {
    display: none;
}

.user-card.card {
    padding: 0;
    overflow: hidden;
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: var(--background-alt);
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
}

.user-card-body {
    padding: 1rem 1.25rem;
}

.user-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.user-card-row:last-child {
    border-bottom: none;
}

.user-card-label {
    font-weight: 500;
    color: var(--text-light);
    font-size: var(--text-base);
}

.user-card-value {
    color: var(--text);
    font-size: var(--text-base);
}

.user-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Ikonové tlačidlá */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Desktop zobrazenie */
@media (min-width: 768px) {
    .users-mobile {
        display: none;
    }

    .users-desktop {
        display: block;
    }
}

/* ==================== PAGE TRANSITIONS ==================== */

/* View Transitions API (Chrome, Edge) */
@view-transition {
    navigation: auto;
}

.main-content {
    view-transition-name: main-content;
}

::view-transition-old(main-content) {
    animation: vt-fade-out 0.12s ease-out forwards;
}

::view-transition-new(main-content) {
    animation: vt-fade-in 0.12s ease-out forwards;
}

@keyframes vt-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes vt-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header, bottom nav, flash a pull-to-refresh bez animácie - zostávajú statické */
::view-transition-old(app-header),
::view-transition-new(app-header),
::view-transition-old(bottom-nav),
::view-transition-new(bottom-nav),
::view-transition-old(pull-refresh),
::view-transition-new(pull-refresh),
::view-transition-old(flash-container),
::view-transition-new(flash-container) {
    animation: none;
}

/* CSS Fallback pre Safari a Firefox */
.main-content.page-exit {
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

.main-content.page-enter {
    opacity: 0;
}

.main-content.page-enter-active {
    opacity: 1;
    transition: opacity 0.12s ease-out;
}

/* ==================== PWA ELEMENTS ==================== */

/* Pull to refresh indicator */
.pull-to-refresh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--card-bg);
    transform: translateY(-60px);
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0;
    z-index: 200;
    box-shadow: var(--shadow);
    padding-top: var(--safe-area-top);
    view-transition-name: pull-refresh;
}

.pull-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
}

.pull-to-refresh.ready .pull-spinner,
.pull-to-refresh.refreshing .pull-spinner {
    animation: spin 0.8s linear infinite;
}

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

.pull-text {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-light);
}

/* Offline banner */
.offline-banner {
    position: fixed;
    top: calc(var(--header-height) + var(--safe-area-top));
    left: 0;
    right: 0;
    background: var(--danger);
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--text-base);
    font-weight: 500;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
}

.offline-banner.show {
    transform: translateY(0);
}

.offline-banner svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Update banner */
.pwa-update-banner {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 1rem);
    left: 1rem;
    right: 1rem;
    max-width: 400px;
    margin: 0 auto;
    background: var(--nav-bg);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: var(--text-base);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 101;
}

.pwa-update-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.pwa-update-banner button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    min-height: 36px;
    white-space: nowrap;
}

/* ==================== QR SCANNER ==================== */
.scanner-container {
    margin-bottom: 1rem;
}

.scanner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--background-alt);
    border: 2px dashed var(--border);
    border-radius: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 52px;
}

@media (hover: hover) {
    .scanner-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(37, 99, 235, 0.05);
    }
}

.scanner-btn:focus {
    outline: none;
}

.scanner-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.scanner-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000;
}

.scanner-preview video {
    width: 100%;
    display: block;
}

.scanner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scanner-frame {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.scanner-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
}

.scanner-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ==================== UTILITIES ==================== */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }

/* ==================== RESPONSIVE & PWA ADJUSTMENTS ==================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus visibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Prevent zoom on input focus on iOS */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    select {
        font-size: 16px;
    }

    /* Zmenšený padding filtrového boxu na mobile */
    .filters-form {
        padding: 0.875rem;
    }

    /* Minimálny štýl pre date inputy vo filtroch na mobile */
    .filter-item select {
        padding: 0.625rem 0.5rem;
        min-height: 44px;
        border-width: 1px;
    }

    .filter-item input[type="date"] {
        padding: 0.625rem 0.5rem !important;
        min-height: 44px !important;
        border-width: 1px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .filters-grid {
        gap: 0.75rem;
    }

    .filter-item label {
        margin-bottom: 0.25rem;
    }
}

/* Standalone PWA mode adjustments */
@media (display-mode: standalone) {
    .app-header {
        padding-top: var(--safe-area-top);
    }
}

/* Prevent overscroll bounce */
html, body {
    overscroll-behavior: none;
}

/* Fix for mobile keyboard - keep bottom nav fixed */
@supports (height: 100dvh) {
    html, body {
        height: 100dvh;
    }
}

/* Hide scrollbar but allow scrolling */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ==================== VALIDATION FORM ==================== */

/* Validation card */
.validation-card {
    padding: 2rem;
}

@media screen and (max-width: 480px) {
    .validation-card {
        padding: 1.5rem;
        margin-bottom: 0;
    }
}

/* Progresívne zobrazenie sekcií */
.form-section {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.form-section.active {
    opacity: 1;
    pointer-events: auto;
}
.form-section.completed {
    opacity: 1;
    pointer-events: auto;
}

/* Layout pre validačný formulár */
.validation-form .form-group {
    margin-bottom: 1.5rem;
}
.validation-form label {
    margin-bottom: 0.5rem;
    font-size: var(--text-base);
}

/* Skrytá sekcia */
.hidden-section {
    display: none;
}
.hidden-section.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scanner štýly */
.scanner-preview {
    position: relative;
    background: #000;
    border-radius: 0.75rem;
    overflow: hidden;
    min-height: 250px;
}
#scanner-reader {
    width: 100%;
}
#scanner-reader video {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}
/* Skryť defaultný UI od html5-qrcode knižnice */
#scanner-reader__dashboard_section,
#scanner-reader__dashboard_section_csr,
#scanner-reader__dashboard_section_swaplink,
#scanner-reader__status_span,
#scanner-reader__header_message,
#scanner-reader img[alt="Info icon"],
#scanner-reader__camera_permission_button {
    display: none !important;
}
.scanner-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

/* Dni tlačidlá - inline grid */
.days-inline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.375rem;
}
.days-inline .day-btn {
    padding: 0.5rem 0.125rem;
    font-size: var(--text-xs);
    min-width: 0;
}

/* Upozornenie kompaktnejšie */
.warning-compact {
    padding: 0.75rem;
    font-size: var(--text-base);
    margin: 1rem 0;
}
.warning-compact p {
    margin: 0;
    line-height: 1.4;
}

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: var(--text-xs);
    color: var(--text-muted);
}
.step-indicator .step {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-xs);
    transition: all 0.3s ease;
}
.step-indicator .step.active {
    background: var(--primary);
    color: white;
}
.step-indicator .step.completed {
    background: var(--success);
    color: white;
}
.step-indicator .step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    transition: background 0.3s ease;
}
.step-indicator .step-line.completed {
    background: var(--success);
}

/* Recent parkings */
@media (hover: hover) {
    .recent-parking-btn:hover {
        border-color: var(--primary) !important;
        background: var(--background-alt) !important;
    }
}
.recent-parking-btn:focus {
    outline: none;
}
.recent-parking-btn:active {
    transform: scale(0.98);
}

/* Moje vozidlá - rýchle tlačidlá */
.my-vehicle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    border: none;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
    min-height: 44px;
    flex: 1;
    min-width: 0;
    max-width: calc(33.333% - 0.25rem);
}
@media (hover: hover) {
    .my-vehicle-btn:hover:not(.selected) {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
        box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    }
}
.my-vehicle-btn:focus {
    outline: none;
}
.my-vehicle-btn:focus:not(.selected) {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
    transform: none;
}
.my-vehicle-btn:active {
    transform: scale(0.97);
}
.my-vehicle-btn.selected {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5), 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: scale(1.02);
}
.my-vehicle-btn strong {
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.025em;
}
.my-vehicle-btn small {
    font-size: var(--text-xs);
    opacity: 0.85;
}

/* ==================== VALIDATION PAGE ==================== */

/* Error message at top */
.validation-error {
    margin-bottom: 1rem;
}

.validation-error .flash {
    margin-bottom: 0;
}

/* Recent parkings at top */
.recent-parkings-section {
    margin-bottom: 1.5rem;
}

.recent-parkings-label {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.recent-parkings-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.recent-parking-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    box-shadow: var(--shadow-sm);
    min-height: 80px;
}

.recent-parking-city {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text);
    width: 100%;
    line-height: 1.2;
    word-break: break-word;
}

.recent-parking-alias {
    font-size: var(--text-md);
    color: var(--text-muted);
    width: 100%;
    line-height: 1.2;
    word-break: break-word;
}

/* Mobile adjustments */
@media screen and (max-width: 480px) {
    /* Skryť step indicator na mobile */
    .step-indicator {
        display: none;
    }

    .validation-page .validation-card {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }

    /* Recent parkings - fixed grid on mobile */
    .recent-parkings-section {
        margin-bottom: 1rem;
    }

    .recent-parkings-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .recent-parking-btn {
        padding: 1rem 0.875rem;
        min-height: 70px;
    }

    .recent-parking-city {
        font-size: var(--text-lg);
    }

    .recent-parking-alias {
        font-size: var(--text-sm);
    }
}

/* ==================== GLOBAL RESPONSIVE ADJUSTMENTS ==================== */

/* Medium screens (tablets) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .page-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .page-container-wide {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Large screens (desktop) */
@media screen and (min-width: 769px) {
    .page-container {
        max-width: 640px;
    }

    .page-container-wide {
        max-width: 1100px;
    }

    .card {
        padding: 2rem;
    }
}

/* Extra large screens */
@media screen and (min-width: 1200px) {
    .page-container {
        max-width: 720px;
    }

    .page-container-wide {
        max-width: 1400px;
    }
}

/* Ultra wide screens */
@media screen and (min-width: 1600px) {
    .page-container-wide {
        max-width: 1600px;
    }
}

/* Small mobile screens */
@media screen and (max-width: 380px) {
    .card {
        padding: 1rem;
    }

    .card h2,
    .card-title {
        font-size: var(--text-lg);
    }

    .btn {
        padding: 0.875rem 1rem;
        font-size: var(--text-base);
    }

    .form-group label {
        font-size: var(--text-base);
    }

    .recent-parkings-list {
        gap: 0.375rem;
    }

    .recent-parking-btn {
        padding: 0.75rem 0.625rem;
    }

    .recent-parking-city {
        font-size: var(--text-base);
    }
}

/* ==================== SUCCESS CARD ==================== */
.success-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 1rem;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    overflow: hidden;
}

.success-card-header {
    text-align: center;
    padding: 1.5rem 1rem 1.25rem;
}

.success-card-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.success-card-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.success-card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.success-card-details {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    margin: 0 0.75rem 0.75rem;
    border-radius: 0.75rem;
}

.success-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    text-align: center;
}

.success-card-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

.success-card-value {
    font-size: var(--text-base);
    font-weight: 700;
}

.success-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.success-actions .btn {
    flex: 1;
    text-align: center;
}
