/* ===============================
   ❤️ Moderní UI pro Agendy Komenda
   =============================== */

:root {
    --color-bg: #f6f7fb;
    --color-white: #ffffff;
    --color-grey: #e5e7eb;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-danger: #dc2626;
    --radius: 10px;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Reset */
body {
    margin: 0;
    background: var(--color-bg);
    font-family: system-ui, Arial, sans-serif;
    color: var(--color-text);
}

/* Container */
.container {
    max-width: 1100px;
    margin: 90px auto 40px auto; /* místo kvůli sticky topbaru */
    padding: 0 20px;
}

/* ============================
   TOPBAR
   ============================ */

.topbar {
    background: var(--color-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
}

.topbar-inner {
    height: 60px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-accent);
    text-decoration: none;
    margin-right: 20px;
}

.nav a {
    margin-right: 16px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover {
    color: var(--color-accent);
}

/* ============================
   KARTY
   ============================ */

.card {
    background: var(--color-white);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card h1, 
.card h2, 
.card h3 {
    margin-top: 0;
}

/* ============================
   TLAČÍTKA
   ============================ */

.btn-primary {
    background: var(--color-accent);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-logout {
    color: var(--color-danger);
    text-decoration: none;
    font-weight: 600;
    margin-left: 12px;
}

/* ============================
   FORMULÁŘE
   ============================ */

input, select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-grey);
    border-radius: var(--radius);
}

label {
    font-weight: 600;
    margin-bottom: 6px;
    display: inline-block;
}

.form-group {
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* ============================
   TABULKY
   ============================ */

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    background: #eef2ff;
    padding: 10px;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid var(--color-grey);
}

.table tr:hover td {
    background: #f3f4f6;
}

/* ============================
   STAVY (tagy)
   ============================ */

.status-tag {
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.status-submitted { background: #3b82f6; }
.status-to_settle { background: #f59e0b; }
.status-to_pay    { background: #10b981; }
.status-closed    { background: #6b7280; }

/* ============================
   FOOTER
   ============================ */

.footer {
    text-align: center;
    padding: 20px;
    color: var(--color-muted);
}
