/* faktury.mkelo.sk — štýly */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e5e7eb;
    --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 2rem 1rem; }

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-header nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.logo { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--bg); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.85rem; }

/* Hero */
.hero { text-align: center; padding: 4rem 1rem 3rem; }
.hero h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 2rem; }
.hero .cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}
.features article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.features h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.features p { color: var(--text-muted); font-size: 0.92rem; }

/* Cards & forms */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 560px;
    margin: 0 auto;
}
.card.wide { max-width: none; }
.card h1, .card h2 { margin-bottom: 1.2rem; font-size: 1.4rem; }

form .field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.92rem; }
input[type="text"], input[type="email"], input[type="password"], select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--surface);
}
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
input[type="file"] { width: 100%; padding: 0.5rem 0; }
.hint { font-size: 0.83rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Alerts */
.alert { padding: 0.8rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.2rem; font-size: 0.95rem; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: var(--primary-dark); border: 1px solid #bfdbfe; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); }
th, td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { background: var(--bg); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-pending { background: #f1f5f9; color: var(--text-muted); }
.badge-processing { background: #fef9c3; color: var(--warning); }
.badge-completed { background: #dcfce7; color: var(--success); }
.badge-failed { background: #fee2e2; color: var(--danger); }
.badge-active { background: #dcfce7; color: var(--success); }
.badge-suspended { background: #fee2e2; color: var(--danger); }

/* Progress bar */
.progress { background: var(--border); border-radius: 999px; height: 8px; overflow: hidden; min-width: 120px; }
.progress-bar { background: var(--primary); height: 100%; transition: width 0.4s; }

/* Stats grid (admin) */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stats article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
}
.stats .stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stats .stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* Page headings */
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.page-head h1 { font-size: 1.5rem; }

/* Steps (registration) */
.steps { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.88rem; color: var(--text-muted); }
.steps .step.active { color: var(--primary); font-weight: 600; }

@media (max-width: 600px) {
    .hero h1 { font-size: 1.7rem; }
    .card { padding: 1.3rem; }
}
