@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Hlavná farebná paleta (Akademická modrá) */
    --primary-color: #0056b3;       /* Tmavšia modrá pre tlačidlá a odkazy */
    --primary-hover: #004494;       /* Hover efekt */
    --accent-color: #e7f1ff;        /* Svetlomodré pozadie pre sekcie */
    
    /* Texty a pozadia */
    --bg-color: #f8f9fa;            /* Veľmi jemná sivá pre celé pozadie */
    --card-bg: #ffffff;             /* Biela pre karty */
    --text-main: #212529;           /* Tmavosivá pre hlavný text */
    --text-muted: #6c757d;          /* Svetlejšia sivá pre popisy */
    
    /* Okraje a tiene */
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    
    /* Rozmery */
    --radius: 8px;
    --container-width: 900px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
}

/* --- HEADER & NAVIGÁCIA --- */
header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

header h1 {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.8rem;
    margin: 0;
}

nav {
    background-color: #fff;
    padding: 0.8rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    margin: 0 0.2rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    background-color: var(--accent-color);
}

/* --- HLAVNÝ OBSAH --- */
.container, .survey-container {
    max-width: var(--container-width);
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    color: #4a4a4a;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- ŠPECIFICKÉ SEKCIE (Zadanie, Ciele) --- */
.zadanie-section {
    background-color: #fcfcfc;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* --- ZOZNAM ÚLOH (Statusy) --- */
.container#tasks ul {
    list-style: none;
    margin-left: 0;
}

.container#tasks li {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.container#tasks li span {
    font-size: 1.2rem; /* Väčšie ikonky */
    line-height: 1;
}

/* --- FORMULÁRE (Dotazník) --- */
fieldset {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    background-color: #fff;
}

legend {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 0.5rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ced4da;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Checkboxy a Radio buttony */
.checkbox-group label, .radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

input[type="checkbox"], input[type="radio"] {
    margin-right: 0.6rem;
    width: auto;
    cursor: pointer;
}

/* Grid pre hodnotenie */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: var(--primary-hover);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    background-color: #fff;
    margin-top: 3rem;
}

/* --- RESPONZIVITA --- */
@media (max-width: 768px) {
    .container, .survey-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    header h1 {
        font-size: 1.4rem;
        padding: 0 1rem;
    }

    nav {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding-left: 1rem;
    }
}