:root {
    --bg-main: #0b0f19;
    --bg-card: #121826;
    --border: #1f293d;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    padding-bottom: 50px;
}

/* Navbar */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
}
.brand-logo { font-size: 1.3rem; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.nav-item:hover {
    color: var(--text-main);
    background: var(--border);
}
.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}
.lang-switch {
    display: flex;
    background: var(--bg-main);
    padding: 3px;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.lang-switch a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}
.lang-switch a.active {
    background: var(--primary);
    color: #fff;
}
.btn-auth {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.btn-login { background: var(--primary); color: #fff; }
.btn-login:hover { background: var(--primary-hover); }
.btn-logout { background: #374151; color: var(--text-main); }
.btn-logout:hover { background: var(--accent-red); color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Kontajner a karty */
.container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.metric-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 5px 0 0 0;
    font-family: monospace;
}

/* Tabuľky */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { color: var(--text-muted); font-weight: 600; }
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); border: 1px solid var(--accent-green); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); border: 1px solid var(--accent-red); }
.badge-ssl { background: rgba(37, 99, 235, 0.15); color: #60a5fa; border: 1px solid #3b82f6; }
.badge-muted { background: var(--border); color: var(--text-muted); }

/* Tlačidlá & Formuláre */
.btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-sm { padding: 4px 8px; font-size: 0.8rem; background: var(--border); color: var(--text-main); }
.btn-sm:hover { background: #374151; }
.btn-ssl { background: #0284c7; color: #fff; }
.flex-form input {
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 9px 12px;
    border-radius: 6px;
    margin-right: 8px;
    font-family: monospace;
}
.flex-form input:focus { border-color: var(--primary); outline: none; }
.alert { padding: 12px; border-radius: 6px; margin-bottom: 20px; font-weight: 500; font-size: 0.9rem; }
.alert-success { background: rgba(16, 185, 129, 0.2); border: 1px solid var(--accent-green); color: #6ee7b7; }
.alert-error { background: rgba(239, 68, 68, 0.2); border: 1px solid var(--accent-red); color: #fca5a5; }

/* Responzivita pre mobil */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border);
        gap: 10px;
    }
    .nav-menu.active { display: flex; }
    .nav-divider { width: 100%; height: 1px; }
    .grid-cards { grid-template-columns: 1fr; }
    .flex-form input { margin-bottom: 8px; width: 100%; box-sizing: border-box; }
}