body {
    background-color:#f5f5f5;
    font-family:Roboto,sans-serif;
    margin:0;
    padding:0
}

/* VYNÚTENIE ZBALENÉHO STAVU */
@media (min-width: 1170px) {

    /* 1. Zúženie bočného panela */
    #main-wrapper.mini-sidebar .left-sidebar {
        width: 65px !important;
    }

    /* 2. Posunutie obsahu stránky doľava */
    #main-wrapper.mini-sidebar .page-wrapper {
        margin-left: 65px !important;
    }

    /* 3. Skrytie textov v menu */
    #main-wrapper.mini-sidebar .sidebar-item .hide-menu {
        display: none !important;
    }

    /* 4. Úprava loga */
    #main-wrapper.mini-sidebar .topbar .navbar-header {
        width: 65px !important;
    }
    #main-wrapper.mini-sidebar .navbar-brand span.logo-text {
        display: none !important;
    }

    /* 5. Vycentrovanie ikon */
    #main-wrapper.mini-sidebar .sidebar-nav ul .sidebar-item .sidebar-link i {
        margin-right: 0 !important;
        display: block;
        text-align: center;
        width: 100%;
    }
}

.lang-dropdown-menu {
    border-radius: 16px !important;
    border: none !important;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Štýl pre jednotlivé položky */
.lang-dropdown-item {
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Hover efekt s vašou farbou */
.lang-dropdown-item:hover, .lang-dropdown-item:focus {
    background-color: #f0f7ff;
    color: #4A6274;
}

/* Zvýraznenie aktívnej položky */
.lang-dropdown-item.active-lang {
    background-color: #eef2f6;
    color: #4A6274;
}

/* Väčšie vlajky */
.lang-flag {
    font-size: 1.4rem;
}

/* Farba pre "fajku" */
.lang-check {
    color: #4A6274;
}

/* Kompaktné menu pre mobilné zariadenia */
@media (max-width: 767px) {
    .lang-dropdown-menu {
        min-width: 180px !important;
        border-radius: 8px !important;
    }

    .lang-dropdown-menu .dropdown-item {
        padding: 0.2rem 0.2rem !important;
        font-size: 14px !important;
    }

    .lang-dropdown-menu .dropdown-item .me-3 {
        margin-right: 0.5rem !important;
    }


    .lang-dropdown-menu .bi-check-lg {
        font-size: 0.8rem;
    }
}

.sidebar-nav ul .sidebar-item .sidebar-link .hide-menu {
    white-space: normal !important;
    line-height: 1.2 !important;
    display: inline-block;
    vertical-align: middle;
    padding-right: 10px;
}

.sidebar-link {
    display: flex !important;
    align-items: center;
    height: auto !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* --- LANDING PAGE ANIMATIONS (Scroll Reveal) --- */

/* Východzí stav: Skrytý a posunutý dole */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Optimalizácia výkonu */
}

/* Aktívny stav: Viditeľný a na mieste */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Oneskorenia pre "kaskádový" efekt */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --- HERO SECTION & BACKGROUNDS --- */
.hero-section {
    position: relative;
    min-height: 85vh;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7f9 100%);
    overflow: hidden;
}

/* --- DEKORÁCIE --- */
.hero-shape {
    position: absolute;
    top: -50%; right: -20%;
    width: 80%; height: 150%;
    background: radial-gradient(circle, rgba(74, 98, 116, 0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    transform: rotate(-15deg);
    pointer-events: none;
}

/* --- FEATURE CARDS (Hover efekty) --- */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    background: #fff;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* --- ICONS --- */
.icon-box {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1);
}

/* --- BUTTONS --- */
.btn-pill { border-radius: 50px; }
.hover-lift { transition: transform 0.2s; }
.hover-lift:hover { transform: translateY(-3px); }

/* --- UTILITY --- */
.ls-2 { letter-spacing: 2px; }

/* --- TIMELINE (Snake Steps) --- */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-image: linear-gradient(to bottom, #4A6274 60%, rgba(255, 255, 255, 0) 0%);
    background-position: right;
    background-size: 2px 20px;
    background-repeat: repeat-y;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-marker {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 800;
    transition: transform 0.3s ease;
}

/* Hover efekt na číslo */
.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
}

/* --- FOOTER LINKS --- */
.hover-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* --- RESPONSIVITA (Mobil) --- */
@media (max-width: 767px) {
    /* Na mobile zrušíme hadíka a dáme všetko pod seba */
    .timeline-line {
        left: 30px; /* Čiara sa posunie doľava */
    }

    .timeline-marker {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0; /* Zarovnanie vľavo */
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start !important;
        position: relative;
        padding-left: 80px; /* Miesto pre guličku */
    }

    .timeline-item .col-md-2 {
        position: absolute;
        left: 0;
        top: 0;
        width: auto;
    }

    .timeline-item .col-md-5 {
        text-align: left !important;
        width: 100%;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: none;
    background-color: #4A6274;
    color: white;

}

/* Pre mobilné zariadenia */
@media (max-width: 767px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


.hover-shadow {
    transition: box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
    transform: none !important;
}


.hover-shadow:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
}

.btn-outline-secondary.hover-shadow:hover {
    background-color: #4A6274 !important;
    color: #ffffff !important;
    border-color: #4A6274 !important;
}

/* ÚPRAVA PRE PRIMÁRNE TLAČIDLO (Login / Dashboard) */
.btn-primary.hover-shadow:hover {
    background-color: #8b60ee !important; /* Jemne tmavší odtieň modrej */
    border-color: #364956 !important;
    color: #ffffff !important;
}


.modern-error-msg {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #fff1f0;
    color: #cf222e;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-left: 3px solid #f85149;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: slideDown 0.3s ease-out;
}

/* Zvýraznenie inputu pri chybe */
.form-control.is-invalid, .form-select.is-invalid {
    background-color: #fff9f9 !important;
    border: 1px solid #ffa5a0 !important;
    box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.1) !important;
}

/* Jemná animácia */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hover efekt na tlačidlo */
.hover-shadow:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(74, 98, 116, 0.3);
    transform: translateY(-1px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#btnShowMore:hover {
    background-color: #4A6274 !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sticky-form {
    position: sticky;
    top: 90px;
    z-index: 100;
    transition: top 0.3s ease;
}


@media (max-width: 767.98px) {
    .sticky-form {
        position: static;
    }
}

#floatingForm {
    transition: transform 0.2s linear;
    will-change: transform; /* Optimalizácia pre prehliadač */
}

/*sidebar footer*/
/* --- FIXNÁ PÄTIČKA SIDEBARU --- */
#sidebarFooter {
    margin-top: auto;
    width: 100%;
    background-color: #1F262D;


    border-top: 1px solid rgba(255, 255, 255, 0.05);

    padding: 25px 15px;

    overflow: hidden !important;
    transition: all 0.3s ease;
}

/* Kontajner pre obsah */
.sidebar-footer-content {
    text-align: center;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

/* Nadpis RoomFix */
.sidebar-footer-title {
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.sidebar-footer-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    line-height: 1.5;
    margin-bottom: 8px;

    white-space: normal !important;
    display: block;
}

/* Copyright rok */
.sidebar-footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.65rem;
}

/* --- PRAVIDLÁ PRE ZBALENÝ STAV (Mini Sidebar) --- */

/* 1. Úplné skrytie obsahu */
body.mini-sidebar #sidebarFooter .sidebar-footer-content,
#main-wrapper[data-sidebartype="mini-sidebar"] #sidebarFooter .sidebar-footer-content,
#main-wrapper.mini-sidebar #sidebarFooter .sidebar-footer-content {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.mini-sidebar #sidebarFooter::after,
#main-wrapper[data-sidebartype="mini-sidebar"] #sidebarFooter::after,
#main-wrapper.mini-sidebar #sidebarFooter::after {
    content: none !important;
    display: none !important;
}

/* Štýl pre oko pri hesli */
/* --- HESLO OKO (Password Toggle) --- */
.password-toggle-btn {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #6c757d !important;
    border-left: none !important;
    transition: all 0.2s ease;
}

.password-toggle-btn:hover {
    color: #4A6274 !important;
    background-color: #f0f7ff !important;
}

.password-toggle-btn:focus {
    box-shadow: none !important;
    border-color: #ced4da !important;
}

/* Oprava zaoblenia inputu, keď je v skupine */
.input-group > .password-toggle.form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Tento kontajner (v tvojom prípade ten s top: 88px) */
.position-fixed.end-0.p-3[style*="z-index: 9999"] {
    /* Povieme, že cez "vzduch" v tomto dive sa dá klikať */
    pointer-events: none;
}

/* Ale ak v ňom budú skutočné správy (alert, toast), tie musia fungovať */
.position-fixed.end-0.p-3[style*="z-index: 9999"] > * {
    pointer-events: auto;
}

/* Úprava aktívneho TABS tlačidla */
.nav-pills .nav-link {
    color: #4A6274;
    transition: all 0.3s ease;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: #4A6274;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}
.nav-pills .nav-link:hover:not(.active) {
    background-color: #e9ecef;
}
     /* Transformácia obyčajného zoznamu na červený varovný box */
 form ul.error {
     list-style-type: none !important;
     padding: 12px 16px !important;
     margin: 0 0 20px 0 !important;
     background-color: #f8d7da !important; /* Bootstrap Danger pozadie */
     border: 1px solid #f5c2c7 !important; /* Bootstrap Danger okraj */
     color: #bc1111 !important;            /* Bootstrap Danger text */
     border-radius: 6px !important;
     font-size: 0.9rem !important;
     text-align: left !important;
     box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
 }

/* Úprava samotnej položky s chybou */
form ul.error li {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
}

/* Pridanie výstražného emoji pred text chyby pre lepší efekt */
form ul.error li::before {
    font-family: "bootstrap-icons", ui-monospace !important; /* Načítanie rodiny fontov pre ikony */
    content: "\f33a" !important;               /* Presný Unicode kód pre tento trojuholník */
    margin-right: 8px !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}