/* --- ZÁKLADNÍ NASTAVENÍ --- */
:root {
    --primary-green: #2d5a27;
    --secondary-blue: #0077b6;
    --sand-yellow: #f1c40f;
    --wood-brown: #8e6e46;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #fefae0;
    --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* --- HEADER (Opravený bez modrých odkazů) --- */
header {
    background: rgba(45, 90, 39, 0.98); /* Tmavě zelená s vysokým krytím */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: white !important; /* Vynucení bílé barvy */
    text-decoration: none !important; /* Zrušení podtržení */
    display: inline-block;
}

.logo span { 
    color: var(--sand-yellow); 
}

/* --- HERO SEKCE --- */
.hero {
    height: 70vh;
    min-height: 450px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1523987355523-c7b5b0dd90a7?q=80&w=2000') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.6);
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.3rem);
    max-width: 750px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 300;
}

/* --- GRID S FUNKCEMI --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: -80px; 
    padding-bottom: 80px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 6px solid transparent;
}

.feature-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-icon { 
    font-size: 3rem; 
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card ul {
    list-style: none;
    text-align: left;
}

.feature-card li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
}

.feature-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Barevné akcenty */
.accent-green { border-top-color: var(--primary-green); }
.accent-yellow { border-top-color: var(--sand-yellow); }
.accent-blue { border-top-color: var(--secondary-blue); }
.accent-brown { border-top-color: var(--wood-brown); }

/* --- FOOTER --- */
footer {
    background: #1e272e;
    color: #dfe6e9;
    padding: 50px 0 30px;
    text-align: center;
}

.footer-info {
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
}

/* --- STYLY PRO VIEW.PHP (Administrace) --- */
.login-box {
    max-width: 400px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.btn-submit {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.stat-value {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-green);
}

.table-responsive {
    background: white;
    border-radius: 15px;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* --- RESPONZIVITA --- */
@media (max-width: 768px) {
    .hero { height: 60vh; }
    .features-grid {
        margin-top: -50px;
        padding: 0 15px 50px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .logo { font-size: 1.3rem; }
}