/* css/styl.css */
:root {
    --primary: #2563EB; /* Hlavní modrá */
    --primary-dark: #1E40AF;
    --text-main: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F3F4F6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Navigace --- */
.navigace {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span { color: var(--primary); }

.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.menu a:hover, .menu a.aktivni { color: var(--primary); }

.tlacitko-prihlaseni {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.tlacitko-prihlaseni:hover { background: var(--primary-dark); }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Hlavní obsah --- */
main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vycentruje obsah vertikálně pokud je malý */
}

/* Animace */
.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Formuláře (Přihlášení / Registrace) --- */
.form-container {
    max-width: 420px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small { display: block; margin-top: 5px; color: var(--text-light); }

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover { background: var(--primary-dark); }
.btn-submit:disabled { background: #9CA3AF; cursor: not-allowed; }

/* Alerty */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }

/* Patička */
footer {
    background: var(--white);
    padding: 1.5rem 5%;
    margin-top: auto;
    border-top: 1px solid #E5E7EB;
}
.obsah-paticky {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.85rem;
}
.socialni-site a { color: var(--text-light); text-decoration: none; }
.socialni-site a:hover { color: var(--primary); }

/* Responsivita */
@media (max-width: 768px) {
    .menu { display: none; } /* Zatím skryjeme, JS pro mobilní menu dořešíme později */
    .hamburger { display: block; }
    .form-container { padding: 1.5rem; margin: 1rem auto; }
}
/* --- ADMIN LAYOUT (PORTÁL) --- */
.admin-body {
    display: flex;
    background: #F3F4F6;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem;
    flex: 1;
}

.sidebar-menu li { margin-bottom: 5px; }

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #4B5563;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-menu a i { width: 25px; font-size: 1.1em; }

.sidebar-menu a:hover { background: #F3F4F6; color: var(--primary); }
.sidebar-menu a.active { background: var(--primary); color: white; }

.separator { margin: 10px 0; border-top: 1px solid #eee; }

.user-info-mini {
    padding: 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-circle {
    width: 35px; height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}

/* Main Content */
.main-content {
    margin-left: 260px; /* Šířka sidebaru */
    flex: 1;
    padding: 2rem;
    width: calc(100% - 260px);
}

.mobile-only { display: none; }

/* Responsivita */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; padding: 1rem; }
    .mobile-only { display: block; }
    
    .top-bar {
        background: white; padding: 10px 20px;
        display: flex; justify-content: space-between; align-items: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 20px;
        border-radius: 8px;
    }
    #open-sidebar { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
    #close-sidebar { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
}

/* Oprava tlačítek v tabulkách */
.btn-icon {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 4px; border: 1px solid #ddd;
    background: white; cursor: pointer;
    transition: all 0.2s;
}
.btn-icon:hover { background: #f9f9f9; border-color: #ccc; }