/* ============================================================
   InfraRegio — Modern Design System 2026
   Sidebar navigation, glassmorphism, bento grid, gradients
   ============================================================ */

/* Alpine.js x-cloak — skryť kým sa Alpine neinicializuje */
[x-cloak] { display: none !important; }

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties (non-color, layout/sizing) --- */
/* Farby sú v skin-infraregio.css */
:root {
    /* Sidebar sizing */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;

    /* Layout */
    --topbar-height: 64px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows (neutral — nie sú farbové) */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px -4px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 40px -8px rgba(0,0,0,0.1), 0 8px 16px -4px rgba(0,0,0,0.06);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Glass */
    --glass-bg: rgba(255,255,255,0.7);
    --glass-border: rgba(255,255,255,0.2);
    --glass-blur: 12px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

/* --- App Layout (sidebar + main) --- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: width var(--transition-slow), transform var(--transition-slow);
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--sidebar-border);
    min-height: 68px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.sidebar-brand {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.sidebar-brand span { color: var(--primary-light); }

.sidebar-brand-link {
    display: block;
    text-decoration: none;
}

.sidebar-logo-img {
    height: 56px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--sidebar-text);
    opacity: 0.5;
    padding: 8px 12px 4px;
    white-space: nowrap;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--sidebar-text);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
    text-decoration: none;
}

.sidebar-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
}

.sidebar-link svg, .sidebar-link .sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-link.active svg, .sidebar-link.active .sidebar-icon { opacity: 1; }

.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 12px 8px 16px;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.sidebar-user:hover { background: var(--sidebar-hover); }

.sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sidebar-user-name {
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    color: var(--sidebar-text);
    font-size: 11px;
    white-space: nowrap;
}

/* --- Main Content Area --- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-slow);
}

/* --- Top Bar --- */
.topbar {
    height: var(--topbar-height);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: var(--topbar-bg);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-400);
}

.topbar-breadcrumb a { color: var(--gray-500); }
.topbar-breadcrumb a:hover { color: var(--primary); }
.topbar-breadcrumb .separator { color: var(--gray-300); }

/* Mobile hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
}

.hamburger:hover { background: var(--gray-100); }

.hamburger svg { width: 24px; height: 24px; }

/* --- Page Content --- */
.page-content {
    flex: 1;
    padding: 24px;
    max-width: 1400px;
    width: 100%;
}

/* --- Page Header --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}

.page-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow-sm); }

.card-body { padding: 20px; }

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2, .card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-25);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Glass card variant */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

/* --- Stat Cards (Bento Grid) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover::before { opacity: 1; }

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.stat-icon-primary { background: var(--primary-50); color: var(--primary); }
.stat-icon-success { background: var(--success-light); color: var(--success); }
.stat-icon-warning { background: var(--warning-light); color: var(--warning); }
.stat-icon-danger { background: var(--danger-light); color: var(--danger); }
.stat-icon-info { background: var(--info-light); color: var(--info); }

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
    font-weight: 500;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.stat-change-up { background: var(--success-light); color: var(--success-dark); }
.stat-change-down { background: var(--danger-light); color: var(--danger-dark); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 3px rgba(6,90,110,0.3);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(6,90,110,0.3); color: white; }

.btn-gradient {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(6,90,110,0.25);
}
.btn-gradient:hover { box-shadow: 0 4px 16px rgba(6,90,110,0.35); opacity: 0.95; color: white; }

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--gray-900); }

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 1px 3px rgba(239,68,68,0.3);
}
.btn-danger:hover { background: var(--danger-dark); color: white; }

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 1px 3px rgba(16,185,129,0.3);
}
.btn-success:hover { background: var(--success-dark); color: white; }

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border: none;
    padding: 8px 12px;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary-50); }

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.btn-xs { padding: 4px 8px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 12px 24px; font-size: 16px; border-radius: var(--radius); }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }
.btn-icon.btn-sm { width: 30px; height: 30px; padding: 5px; }

/* Logout button in sidebar */
.btn-logout {
    background: transparent;
    color: var(--sidebar-text);
    border: 1px solid var(--sidebar-border);
    font-size: 13px;
    padding: 6px 12px;
    width: 100%;
    border-radius: var(--radius-sm);
}
.btn-logout:hover { background: rgba(239,68,68,0.1); color: var(--danger-200); border-color: rgba(239,68,68,0.3); }

/* --- Forms --- */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6,90,110,0.1);
}

.form-control::placeholder { color: var(--gray-400); }

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 80px; }

/* Password toggle */
.input-password { position: relative; }
.input-password .form-control { padding-right: 5rem; }
.password-toggle {
    position: absolute; right: 1px; top: 1px; bottom: 1px;
    background: var(--gray-50); border: none; border-left: 1px solid var(--gray-200);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0 12px; font-size: 12px; color: var(--gray-500); cursor: pointer;
    font-family: inherit; transition: all var(--transition-fast);
}
.password-toggle:hover { background: var(--gray-100); color: var(--gray-700); }

/* Form grid */
.form-row {
    display: flex;
    gap: 16px;
}
.form-row .form-group { flex: 1; min-width: 0; }

/* --- Tables --- */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover { background: var(--gray-50); }
.table tbody tr:last-child td { border-bottom: none; }

.table-responsive { overflow-x: auto; }

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1.4;
}

.badge-success { background: var(--success-light); color: var(--success-dark); }
.badge-warning { background: var(--warning-light); color: var(--warning-dark); }
.badge-danger { background: var(--danger-light); color: var(--danger-dark); }
.badge-info { background: var(--info-light); color: var(--info-dark); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-primary { background: var(--primary-50); color: var(--primary); }

/* Dot badges */
.badge-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* --- Flash Messages --- */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: flashIn 0.3s ease-out;
    border-left: 4px solid;
}

.flash-success { background: var(--success-light); color: var(--flash-success-text); border-color: var(--success); }
.flash-error { background: var(--danger-light); color: var(--flash-error-text); border-color: var(--danger); }
.flash-warning { background: var(--warning-light); color: var(--flash-warning-text); border-color: var(--warning); }
.flash-info { background: var(--info-light); color: var(--flash-info-text); border-color: var(--info); }

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

.flash-dismiss {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 4px;
    line-height: 1;
}
.flash-dismiss:hover { opacity: 1; }

/* --- Stepper (Phase Timeline) --- */
.stepper {
    display: flex;
    overflow-x: auto;
    gap: 0;
    margin-bottom: 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 16px 12px;
    position: relative;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
    text-decoration: none;
    color: var(--gray-400);
    position: relative;
    padding: 4px 4px 0;
    transition: all var(--transition-fast);
}

.stepper-item:hover { text-decoration: none; }
.stepper-item:hover .stepper-number { transform: scale(1.1); }

/* Connecting line */
.stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.stepper-completed:not(:last-child)::after { background: var(--success); }

.stepper-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    background: var(--gray-100);
    color: var(--gray-400);
    position: relative;
    z-index: 1;
    transition: all var(--transition-fast);
    border: 2px solid var(--gray-200);
}

.stepper-label {
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    max-width: 80px;
}

.stepper-active .stepper-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6,90,110,0.15);
}
.stepper-active .stepper-label { color: var(--primary); font-weight: 600; }

.stepper-completed .stepper-number {
    background: var(--success);
    color: white;
    border-color: var(--success);
}
.stepper-completed .stepper-label { color: var(--success-dark); }

.stepper-problem .stepper-number {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239,68,68,0.15);
}
.stepper-problem .stepper-label { color: var(--danger); }

.stepper-badge {
    position: absolute;
    top: -4px;
    right: 4px;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.5px;
}
.stepper-badge-go { background: var(--success); color: white; }
.stepper-badge-nogo { background: var(--danger); color: white; }

/* --- Auth Pages (Login / Setup) --- */
.auth-layout {
    min-height: 100vh;
    display: flex;
}

.auth-sidebar {
    width: 480px;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -200px;
    right: -200px;
}

.auth-sidebar::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -100px;
    left: -100px;
}

.auth-sidebar h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.auth-sidebar p {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.auth-sidebar-features {
    list-style: none;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.auth-sidebar-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    opacity: 0.9;
}

.auth-sidebar-features li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--gray-50);
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.auth-card .auth-subtitle {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 28px;
}

.auth-card form { margin-top: 4px; }

.auth-card .btn-primary {
    margin-top: 8px;
    padding: 12px 24px;
    font-size: 15px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--gray-500);
}

.auth-footer a { font-weight: 500; }

/* Fallback centered auth (no sidebar) */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    background: var(--gray-50);
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 36px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--gray-200);
}

.login-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

/* --- Landing / Hero --- */
.landing-layout { min-height: 100vh; }

.landing-theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.landing-nav-brand .sidebar-logo {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.nav-logo-img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
}

.auth-logo-img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 16px;
}

.hero-logo-img {
    height: 180px;
    width: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto 8px;
}

/* Dark mode — invertovať logá na svetlé (okrem sidebar, ten je vždy biely) */
[data-theme="dark"] .nav-logo-img,
[data-theme="dark"] .auth-logo-img,
[data-theme="dark"] .hero-logo-img {
    filter: brightness(0) invert(1);
}

.hero {
    text-align: center;
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(6,90,110,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    border: 1px solid var(--primary-100);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.1;
    position: relative;
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-100);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    background: var(--primary-50);
    color: var(--primary);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    padding: 20px 24px;
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

/* --- Hero Animácie --- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(6,90,110,0.15); }
    50% { box-shadow: 0 0 40px rgba(6,90,110,0.25); }
}

.hero-animate {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Typing efekt --- */
.hero-typing {
    font-size: 20px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 32px;
    min-height: 1.5em;
}

.hero-typing span {
    color: var(--primary);
    font-weight: 700;
}

.typing-cursor {
    color: var(--primary);
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
    margin-left: 1px;
}

/* --- Scroll-triggered animácie --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Kaskádové oneskorenie pre feature karty */
.features .scroll-animate:nth-child(1) { transition-delay: 0s; }
.features .scroll-animate:nth-child(2) { transition-delay: 0.15s; }
.features .scroll-animate:nth-child(3) { transition-delay: 0.3s; }

/* Slide z bokov pre registračné karty */
.slide-from-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-from-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-from-left.animate-in,
.slide-from-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* --- O platforme sekcia --- */
.landing-about {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.landing-about-inner {
    background: var(--about-gradient);
    border: 1px solid var(--primary-100);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-about-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6,90,110,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.landing-about h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.landing-about p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tagy typov projektov */
.landing-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.landing-type-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--white);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-100);
    transition: all 0.3s ease;
}

.landing-type-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6,90,110,0.3);
}

/* --- Štatistiky --- */
.landing-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.landing-stat {
    text-align: center;
    padding: 32px 16px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-100);
}

.landing-stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.landing-stat-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

/* --- Registračné karty sekcia --- */
.landing-register {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 80px;
    text-align: center;
}

.landing-register h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.landing-register-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.register-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.register-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border-color: var(--primary-100);
    text-decoration: none;
    color: inherit;
}

.register-card:hover::before {
    opacity: 1;
}

.register-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.register-card:hover .register-card-icon {
    transform: scale(1.1);
}

.register-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.register-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.register-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.register-card-list li {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 13px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-100);
}

.register-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* --- Landing Footer --- */
.landing-footer {
    padding: 40px 32px;
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.landing-footer p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.landing-footer p + p {
    margin-top: 12px;
    color: var(--gray-300);
}

/* --- Powered by XandraOne --- */
.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    color: var(--gray-300);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity .2s;
}
.powered-by:hover {
    opacity: 1;
}
.powered-by img {
    height: 14px;
    width: auto;
}
.footer .powered-by {
    margin-top: 6px;
}
.sidebar-footer .powered-by {
    margin-top: 12px;
    font-size: 10px;
    opacity: 0.5;
}

/* --- Register Form Pages --- */
.register-form-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gray-25);
}

.register-form-container {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    width: 100%;
}

.register-form-header {
    margin-bottom: 32px;
}

.register-form-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.register-form-header p {
    font-size: 15px;
    color: var(--gray-500);
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-fieldset {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
}

.form-fieldset legend {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    padding: 0 4px;
    margin-bottom: 16px;
}

.form-fieldset-hint {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -12px;
    margin-bottom: 16px;
}

.form-help {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Password rules — real-time validácia */
.password-rules {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.6;
}
.password-rules li {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .15s;
}
.password-rules .rule-icon {
    font-size: 13px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.password-rules .rule-fail {
    color: var(--gray-400);
}
.password-rules .rule-pass {
    color: var(--success, #22c55e);
}

.required {
    color: var(--danger);
}

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

.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
}

/* Autocomplete */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 4px;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-50);
    transition: background 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.autocomplete-item:last-child { border-bottom: none; }

.autocomplete-item:hover {
    background: var(--primary-50);
}

.autocomplete-item strong {
    font-size: 14px;
    color: var(--gray-900);
}

.autocomplete-item small {
    font-size: 12px;
    color: var(--gray-500);
}

/* --- Register Select Pages --- */
.register-select-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gray-25);
}

.register-select {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    width: 100%;
}

.register-select-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.register-back:hover {
    color: var(--primary);
    text-decoration: none;
}

.register-select-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.register-select-header p {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
}

.register-select-grid {
    display: grid;
    gap: 16px;
}

.register-select-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
}

.register-select-grid--3x2 {
    grid-template-columns: repeat(3, 1fr);
}

.select-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

.select-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.select-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    border-color: var(--primary-100);
    text-decoration: none;
    color: inherit;
}

.select-card:hover::before {
    opacity: 1;
}

.select-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.select-card:hover .select-card-icon {
    transform: scale(1.1);
}

.select-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.select-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    flex: 1;
}

.select-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-50);
    color: var(--gray-400);
    font-size: 16px;
    margin-top: 16px;
    align-self: flex-end;
    transition: all 0.3s ease;
}

.select-card:hover .select-card-arrow {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
}

/* Kaskádové oneskorenie pre select karty */
.register-select-grid .scroll-animate:nth-child(1) { transition-delay: 0s; }
.register-select-grid .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.register-select-grid .scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.register-select-grid .scroll-animate:nth-child(4) { transition-delay: 0.3s; }
.register-select-grid .scroll-animate:nth-child(5) { transition-delay: 0.4s; }
.register-select-grid .scroll-animate:nth-child(6) { transition-delay: 0.5s; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .hero-animate {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .slide-from-left,
    .slide-from-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .typing-cursor {
        animation: none;
    }
    .register-card,
    .landing-stat,
    .landing-type-tag,
    .feature-card,
    .select-card {
        transition: none;
    }
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 16px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 16px; }

/* --- Error Pages --- */
.error-page {
    text-align: center;
    padding: 80px 24px;
}
.error-page h1 {
    font-size: 96px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}
.error-page p {
    color: var(--gray-500);
    font-size: 16px;
    margin-bottom: 24px;
}

/* --- Empty States --- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-400);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 16px;
}

/* --- Inline forms (step status, etc.) --- */
.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inline-form .form-control {
    width: auto;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
}

/* --- Divider --- */
.divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 16px 0;
}

/* --- Action bar (bottom of sections) --- */
.action-bar {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-25);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* --- Sidebar overlay (mobile) --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active { display: block; }

/* --- Container for non-sidebar pages --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .hamburger { display: flex; }

    .sidebar-overlay.active { display: block; }

    .register-select-grid--3x2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .page-content { padding: 16px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { flex-direction: column; gap: 0; }
    .topbar { padding: 0 16px; }

    /* Auth responsive */
    .auth-sidebar { display: none; }
    .auth-main { padding: 24px; }

    /* Hero responsive */
    .hero { padding: 48px 16px 40px; }
    .hero h1 { font-size: 32px; }
    .hero-subtitle { font-size: 16px; max-width: 100%; }
    .hero-typing { font-size: 16px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .features { grid-template-columns: 1fr; padding: 0 16px 48px; }

    /* Landing page responsive */
    .landing-about { padding: 40px 16px 60px; }
    .landing-about-inner { padding: 32px 20px; }
    .landing-about h2 { font-size: 22px; }
    .landing-about p { font-size: 14px; }
    .landing-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px 60px; }
    .landing-stat { padding: 24px 12px; }
    .landing-stat-number { font-size: 32px; }
    .landing-stat-label { font-size: 12px; }
    .landing-register { padding: 0 16px 60px; }
    .landing-register h2 { font-size: 24px; margin-bottom: 24px; }
    .landing-register-grid { grid-template-columns: 1fr; }
    .register-card { padding: 28px 20px; }
    .register-card h3 { font-size: 18px; }
    .landing-footer { padding: 24px 16px; }
    .register-select { padding: 24px 16px 40px; }
    .register-select-header h1 { font-size: 24px; }
    .register-select-grid--2x2,
    .register-select-grid--3x2 { grid-template-columns: 1fr; }
    .select-card { padding: 20px 16px; }
    .register-form-container { padding: 24px 16px 40px; }
    .register-form-header h1 { font-size: 22px; }
    .form-fieldset { padding: 16px; }
    .form-actions { flex-direction: column; }

    /* Stepper responsive */
    .stepper { padding: 12px 8px; }
    .stepper-number { width: 28px; height: 28px; font-size: 11px; }
    .stepper-label { font-size: 9px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 24px; }
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Sidebar scrollbar */
.sidebar ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }
.sidebar ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* --- Selection color --- */
::selection {
    background: rgba(6,90,110,0.15);
    color: var(--gray-900);
}

/* --- View Tabs --- */
.view-tabs {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
}

.view-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    white-space: nowrap;
}

.view-tab:hover { color: var(--gray-700); background: rgba(255,255,255,0.5); }

.view-tab.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-xs);
}

.view-panel { display: none; }
.view-panel.active { display: block; }

/* --- Kanban Board --- */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-height: 200px;
}

.kanban-column {
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.kanban-column-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius) var(--radius) 0 0;
}

.kanban-column-title {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-column-title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.kanban-col-green .kanban-column-title::before { background: var(--success); }
.kanban-col-yellow .kanban-column-title::before { background: var(--warning); }
.kanban-col-red .kanban-column-title::before { background: var(--danger); }

.kanban-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.kanban-cards {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}

.kanban-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
    display: block;
    text-decoration: none;
    color: inherit;
}

.kanban-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.kanban-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.3;
}

.kanban-card-meta {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.kanban-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.kanban-card-progress {
    margin-top: 10px;
    height: 4px;
    background: var(--gray-100);
    border-radius: 2px;
    overflow: hidden;
}

.kanban-card-progress-bar {
    height: 100%;
    border-radius: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

/* --- Timeline / Card Grid --- */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.timeline-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 20px;
    transition: all var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid var(--gray-300);
}

.timeline-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.timeline-card-green { border-left-color: var(--success); }
.timeline-card-yellow { border-left-color: var(--warning); }
.timeline-card-red { border-left-color: var(--danger); }

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

.timeline-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}

.timeline-card-meta {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Mini stepper */
.mini-stepper {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.mini-stepper-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    transition: background var(--transition-fast);
}

.mini-stepper-dot-completed { background: var(--success); }
.mini-stepper-dot-active { background: var(--primary); box-shadow: 0 0 0 3px rgba(6,90,110,0.2); }
.mini-stepper-dot-problem { background: var(--danger); }

/* Progress bar */
.progress-bar-container {
    height: 6px;
    background: var(--gray-100);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--primary);
    transition: width var(--transition);
}

.progress-label {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
    text-align: right;
}

/* --- Calendar --- */
.calendar-container {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.calendar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    min-width: 180px;
    text-align: center;
}

.calendar-nav {
    background: var(--gray-100);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.calendar-nav:hover { background: var(--gray-200); color: var(--gray-900); }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-name {
    padding: 10px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.calendar-day {
    min-height: 80px;
    padding: 6px;
    border-right: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background var(--transition-fast);
    position: relative;
}

.calendar-day:nth-child(7n) { border-right: none; }

.calendar-day:hover { background: var(--gray-50); }

.calendar-day-number {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.calendar-day-other .calendar-day-number { color: var(--gray-300); }

.calendar-day-today {
    background: var(--primary-50);
}

.calendar-day-today .calendar-day-number {
    color: var(--primary);
    font-weight: 700;
}

.calendar-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.calendar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.calendar-dot-green { background: var(--success); }
.calendar-dot-yellow { background: var(--warning); }
.calendar-dot-red { background: var(--danger); }

.calendar-day-detail {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px;
    min-width: 200px;
    max-width: 280px;
}

.calendar-day-detail.active { display: block; }

.calendar-detail-item {
    display: block;
    padding: 6px 8px;
    font-size: 12px;
    color: var(--gray-700);
    border-radius: 4px;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.calendar-detail-item:hover { background: var(--gray-50); text-decoration: none; }

/* --- Gantt Chart --- */
.gantt-chart {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.gantt-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.gantt-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}

.gantt-body { padding: 16px 20px; }

.gantt-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.gantt-label {
    width: 180px;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gantt-label-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-100);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gray-500);
}

.gantt-bar-wrapper {
    flex: 1;
    height: 28px;
    background: var(--gray-50);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.gantt-bar {
    height: 100%;
    border-radius: 6px;
    transition: width var(--transition);
    position: relative;
    min-width: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.gantt-bar-inactive { background: var(--gray-200); width: 100%; }
.gantt-bar-active { background: var(--info); }
.gantt-bar-completed { background: var(--success); }
.gantt-bar-problem { background: var(--danger); }

.gantt-go-badge {
    font-size: 9px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

/* --- Step Kanban (phases/show) --- */
.step-kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.step-kanban-column {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    min-height: 150px;
}

.step-kanban-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.step-kanban-cards { padding: 8px; display: flex; flex-direction: column; gap: 8px; }

.step-kanban-card {
    background: var(--white);
    border-radius: 6px;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    font-size: 13px;
    transition: all var(--transition-fast);
}

.step-kanban-card:hover { box-shadow: var(--shadow-xs); }

.step-kanban-card-title {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.step-kanban-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.step-kanban-card-note {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Responsible badges pre step kanban */
.badge-obec { background: var(--success-light); color: var(--success-dark); }
.badge-infraregio { background: var(--info-light); color: var(--info-dark); }
.badge-external { background: var(--primary-50); color: var(--primary); }

/* --- Dashboard Mini Kanban Widget --- */
.mini-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mini-kanban-col {
    text-align: center;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
}

.mini-kanban-col-green { border-top: 3px solid var(--success); }
.mini-kanban-col-yellow { border-top: 3px solid var(--warning); }
.mini-kanban-col-red { border-top: 3px solid var(--danger); }

.mini-kanban-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

.mini-kanban-label {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* --- Dashboard Phase Distribution Bar --- */
.phase-dist-bar {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}

.phase-dist-segment {
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    min-width: 24px;
    transition: all var(--transition-fast);
    cursor: default;
    position: relative;
}

.phase-dist-segment:hover { opacity: 0.85; }

.phase-dist-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.phase-dist-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--gray-500);
}

.phase-dist-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

/* --- Activity Icons --- */
.activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.activity-icon-create { background: var(--success-light); color: var(--success-dark); }
.activity-icon-update { background: var(--info-light); color: var(--info-dark); }
.activity-icon-delete { background: var(--danger-light); color: var(--danger-dark); }
.activity-icon-status { background: var(--warning-light); color: var(--warning-dark); }

/* --- Responsive pre nové views --- */
@media (max-width: 1024px) {
    .kanban-board { grid-template-columns: 1fr; }
    .step-kanban { grid-template-columns: repeat(2, 1fr); }
    .gantt-label { width: 120px; }
}

@media (max-width: 768px) {
    .timeline-grid { grid-template-columns: 1fr; }
    .step-kanban { grid-template-columns: 1fr; }
    .view-tabs { overflow-x: auto; }
    .gantt-label { width: 100px; font-size: 11px; }
    .gantt-label-number { width: 20px; height: 20px; font-size: 10px; }
    .mini-kanban { grid-template-columns: repeat(3, 1fr); }
    .calendar-day { min-height: 60px; }
}

/* --- Invitation Timeline --- */
.invitation-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 24px;
}

.invitation-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--gray-200);
}

.timeline-entry {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}

.timeline-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 1;
    margin-left: -24px;
}

.timeline-content {
    flex: 1;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
    padding-top: 4px;
}

.timeline-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* --- E2E Test Runner --- */
.e2e-test-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.e2e-test-group {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}
.e2e-test-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--gray-50);
}
.e2e-test-group-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.e2e-test-group-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}
.e2e-test-group-actions {
    display: flex;
    gap: 8px;
}
.e2e-test-result {
    border-top: 1px solid var(--gray-200);
    padding: 12px 16px;
}
.e2e-test-status {
    margin-bottom: 8px;
    font-size: 14px;
}
.e2e-test-output {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.e2e-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.e2e-screenshot-item {
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.e2e-screenshot-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.e2e-screenshot-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.e2e-screenshot-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* --- Projektová mapa --- */
.map-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}
.map-header {
    text-align: center;
    margin-bottom: 32px;
}
.map-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 8px;
}
.map-subtitle {
    font-size: 16px;
    color: var(--slate-500);
}
.map-filters {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.map-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.map-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.map-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    background: var(--white);
    font-size: 14px;
    color: var(--slate-700);
    cursor: pointer;
    min-width: 180px;
}
.map-filter-select:focus {
    outline: none;
    border-color: var(--focus-ring-color);
    box-shadow: var(--focus-ring-shadow);
}
.map-filter-count {
    font-size: 14px;
    color: var(--slate-400);
    padding-bottom: 10px;
    margin-left: auto;
}
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    overflow: hidden;
    z-index: 1;
}
.map-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
    padding: 12px;
}
.map-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--slate-600);
}
.map-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}
.map-cta {
    text-align: center;
    margin-top: 40px;
    padding: 32px;
    background: var(--cta-gradient);
    border-radius: 16px;
}
.map-cta-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 4px;
}
.map-cta-sub {
    font-size: 15px;
    color: var(--slate-500);
    margin-bottom: 20px;
}

/* Leaflet popup */
.map-popup {
    font-family: inherit;
    min-width: 180px;
}
.map-popup-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 8px;
    line-height: 1.3;
}
.map-popup-row {
    font-size: 13px;
    color: var(--slate-600);
    margin-bottom: 4px;
}
.map-popup-label {
    font-weight: 600;
    color: var(--slate-500);
}
.map-popup-phase {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
}

/* Leaflet cluster štýly */
.marker-cluster-small {
    background-color: rgba(59, 130, 246, 0.3);
}
.marker-cluster-small div {
    background-color: rgba(59, 130, 246, 0.7);
}
.marker-cluster-medium {
    background-color: rgba(249, 115, 22, 0.3);
}
.marker-cluster-medium div {
    background-color: rgba(249, 115, 22, 0.7);
}
.marker-cluster-large {
    background-color: rgba(239, 68, 68, 0.3);
}
.marker-cluster-large div {
    background-color: rgba(239, 68, 68, 0.7);
}
.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    line-height: 30px;
}

@media (max-width: 768px) {
    .map-container { height: 350px; }
    .map-title { font-size: 24px; }
    .map-filters { flex-direction: column; }
    .map-filter-select { min-width: 100%; }
    .map-filter-count { margin-left: 0; }
}

/* --- Print --- */
@media print {
    .sidebar, .topbar, .hamburger { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-content { padding: 0 !important; }
    .card { break-inside: avoid; box-shadow: none; border: 1px solid var(--print-border); }
}
