/* ==========================================================================
   YPSOTEC - ZÁKLADNÍ STYLY (BASE.CSS)
   Verze: 1.0
   Popis: CSS proměnné, reset, základní typografie
   ========================================================================== */

/* ========================================
   1. CSS PROMĚNNÉ
   ======================================== */
:root {
    /* Hlavní barvy */
    --primary-color: #005A9C;
    --secondary-color: #6c757d;
    --dark-bg-color: #343a40;
    --light-bg-color: #f0f2f5;
    --card-bg-color: #ffffff;
    
    /* Textové barvy */
    --text-color: #333333;
    --text-light-color: #e9ecef;
    --label-color: #6c757d;
    
    /* Stavové barvy */
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    /* UI barvy */
    --border-color: #dee2e6;
    --list-item-bg-odd: #f8f9fa;
    --list-item-bg-even: #e9ecef;
    
    /* Stíny a efekty */
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-modal: 0 10px 40px rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
    --modal-backdrop: rgba(0, 0, 0, 0.7);
    
    /* Typografie */
    --font-family: 'Roboto', sans-serif;
    --font-size-base: 1rem;
    --font-size-small: 0.875rem;
    --font-size-large: 1.25rem;
    --line-height-base: 1.5;
}

/* ========================================
   2. RESET A ZÁKLADNÍ ELEMENTY
   ======================================== */
*, 
*::before, 
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--light-bg-color);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   3. TYPOGRAFIE
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-color);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

strong, b {
    font-weight: 700;
}

small {
    font-size: var(--font-size-small);
}

/* ========================================
   4. SEZNAMY
   ======================================== */
ul, ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

ul ul, 
ul ol, 
ol ul, 
ol ol {
    margin-bottom: 0;
}

/* ========================================
   5. TABULKY
   ======================================== */
table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

/* ========================================
   6. OBRÁZKY A MÉDIA
   ======================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   7. ODDĚLOVÁNÍ
   ======================================== */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

/* ========================================
   8. FOCUS STATES
   ======================================== */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
.button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   9. UTILITY - DISPLAY
   ======================================== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* ========================================
   10. UTILITY - TEXT
   ======================================== */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }

/* ========================================
   11. UTILITY - BARVY
   ======================================== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-error { color: var(--error-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-error { background-color: var(--error-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}