body {
    background-color: #f5f6fa;
}









div[style*="z-index:99"], 
div[style*="z-index:101"], 
div[style*="z-index:1005"], 
div[style*="floatad.js"], 
div img[src*="banner-wp.png"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}


div[style*="z-index:99"],
div[style*="z-index:101"],
div[style*="z-index:1005"],
div[style*="floatad.js"],
div[style*="rgba(0, 0, 0, 0.9)"],
div[style*="position: fixed"],
div img[src*="Webzdarma-pro-skoly4.jpg"],
div img[src*="banner-wp.png"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}
html, body {
    height: 100%;
    overflow-y: auto; /* Povolenie vertikálneho scrollovania */
}

/* Sidebar - Fixovaný na desktope, skrytý na mobile */
/* Sidebar - Pozadie zostáva stabilné, len obsah sa animuje */
.sidebar {
    background: linear-gradient(180deg, #1a2b63, #243b80);
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* 📝 Obal pre obsah sidebaru (texty, odkazy, ikony) */
.sidebar-content {
    opacity: 0;
    
    animation: fadeInSidebarContent 0.5s ease-out forwards;
}

/* 🔥 Animácia pre texty v sidebare */
@keyframes fadeInSidebarContent {
    0% {
        opacity: 0;
        
    }
    100% {
        opacity: 1;
        
    }
}



#loadingScreen {
    position: fixed;
    margin-left: 250px;
    width: calc(100% - 250px);
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 9999;
}





/* 🟦 Skeleton loader pre sidebar (iba na desktop) */
@media (min-width: 991px) {
    .skeleton-sidebar {
        background: linear-gradient(180deg, #1a2b63, #243b80);
        height: 100vh;
        width: 250px;
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow-y: auto;
        padding-bottom: 20px;
        animation: shimmer 1.5s infinite linear; /* Efekt prebiehajúceho svetla */
    }
}

/* ✨ Efekt svetelného prechodu (shimmer efekt) */
@keyframes shimmer {
    0% { background-position: -250px 0; }
    100% { background-position: 250px 0; }
}

/* Skryjeme skeleton po načítaní sidebaru */
.sidebar-loaded .skeleton-sidebar {
    display: none;
}

/* 🛠️ Ak sa sidebar načíta, zobrazí sa namiesto skeletonu */
.sidebar {
    display: none; /* Skryté pred načítaním */
}

/* Ak je stránka načítaná, zobrazíme reálny sidebar iba na desktop */
@media (min-width: 991px) {
    .sidebar-loaded .sidebar {
        display: flex !important;
    }
}

/* 🛠️ Rôzne nastavenia pre mobilné a desktopové zobrazenie */
@media (min-width: 991px) {
    .d-lg-none {
        display: none !important; /* Skryje mobilné menu od 990px */
    }

    .sidebar {
        display: flex !important; /* Zobrazí desktopový sidebar */
    }

    .offcanvas {
        display: none !important; /* Skryje mobilný sidebar */
    }

    .main-content {
        margin-left: 250px; /* Posunie obsah vedľa sidebaru */
    }
}

@media (max-width: 990px) {
    .d-lg-none {
        display: block !important;
    }

    .skeleton-sidebar {
        display: none !important; /* Skryje skeleton loader na mobiloch */
    }

    .sidebar {
        display: none !important; /* Skryje pevný sidebar na mobiloch */
    }

    .offcanvas {
        display: block !important; /* Zobrazí offcanvas menu */
    }
    .sidebar-menu{
        width: 50%
    }
    .main-content {
        margin-left: 0; /* Obsah na celú šírku */
    }

    #loadingScreen {
        top:0px;
        left:0;
        margin-left: 0;
        width: 100%;
        
        background-color: white;
    }

    
}




.sidebar .nav-link {
    color: #ffffff;
    font-weight: 500;
}
.offcanvas .nav-link {
    color: #ffffff;
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.user-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
}

.user-section:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-menu{
    width: 100%
}



.profile-img {
    width: 80px;  /* Nastaví šírku */
    height: 80px; /* Nastaví výšku, aby bol obrázok štvorcový */
    object-fit: cover; /* Zabezpečí, že obrázok sa nedeformuje */
}

.card {
    border: none;
    background: white;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
#attendanceChart {
    max-width: 400px; /* Zmenší šírku */
    max-height: 250px; /* Zmenší výšku */
    margin: left; 
    display: block;
}

.settings-section {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/*noveeeeeeeeeeeeee 5.2.*/

.modal-xl {
    max-width: 1100px;
}

.group-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    min-height: 100px;
}

.group-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a2b63;
    margin-bottom: 10px;
}

.training-list {
    min-height: 50px;
    padding: 5px;
    border: 1px dashed #aaa;
    border-radius: 5px;
}

.training-item {
    background: #e3f2fd;
    padding: 8px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}








.modal-xl {
    max-width: 1100px;
}

.group-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    min-height: 100px;
}

.training-list {
    min-height: 50px;
    padding: 5px;
    border: 1px dashed #aaa;
    border-radius: 5px;
}

.training-item {
    background: #e3f2fd;
    padding: 8px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

/* Box na prepínanie dní */
/* Sidebar */


/* Hlavný obsah */
.main-content {
    margin-left: 250px; /* Posun pri fixnom sidebare */
    padding: 20px;
}

/* 🔹 Prepínač dní */
/* 🔹 Obal pre celý obsah (aby bol medzi sidebarom a kalendárom) */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-grow: 1;
    width: 100%;
    max-width: 1400px; /* Aby nebol príliš široký na veľkých obrazovkách */
    margin: 0 auto;
    gap: 20px; /* Priestor medzi obsahom dňa a mini kalendárom */
}

/* 🔹 Sidebar - Pevný na ľavej strane */
.sidebar {
    background: linear-gradient(180deg, #1a2b63, #243b80);
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* 🔹 Obsah dňa - Dynamicky medzi sidebarom a kalendárom */
.day-container {
    flex-grow: 1;
    max-width: 70%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

/* 🔹 Mini kalendár - Fixovaný vpravo */
#mini-calendar {
    width: 300px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    position: fixed;
    right: 15px;
    top: 115px;
}

/* 🔹 Mini kalendár - Štýly tabuľky */
#mini-calendar table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

#mini-calendar td {
    width: 40px;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #eaeaea;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

#mini-calendar td:hover {
    background-color: #1a2b63;
    color: white;
}

#mini-calendar td.current-day {
    background-color: #1a2b63;
    color: white;
    font-weight: bold;
}

#mini-calendar td.today-day {
    background-color: rgba(181, 255, 7, 0.167);
    color: rgb(0, 0, 0);
    font-weight: bold;
}

#mini-calendar td.today-day:hover {
    background-color: rgba(181, 255, 7, 0.535);
    color: rgb(0, 0, 0);
    font-weight: bold;
}


#mini-calendar td.has-training {
    background-color: rgba(255, 251, 7, 0.386);
    color: rgb(0, 0, 0);
    
}

#mini-calendar td.has-training:hover {
    background-color: rgba(255, 251, 7, 0.665);
    color: rgb(0, 0, 0);
    
}

#mini-calendar td.no-attendance {
    background-color: rgba(210, 14, 14, 0.684);
    color: rgb(0, 0, 0);
    
}

#mini-calendar td.no-attendance:hover {
    background-color: rgba(210, 14, 14, 0.937);
    color: rgb(0, 0, 0);
    
}




/* 🔹 Tlačidlo "Dnes" */
#today-btn {
    width: 100%;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
}

#today-btn:hover {
    background-color: #1a2b63;
    color: white;
    border-color: #1a2b63;
}

/* 🔹 Responsivita */
@media (max-width: 991px) {
     

    

        .main-content {
            margin-left: 0;
        }
    
        .day-switcher-wrapper {
            max-width: 100%;
        }
    
        .content-wrapper {
            flex-direction: column;
            align-items: center;
        }
        .content-wrapper.align-items-start {
            align-items: center !important; /* Prepíše existujúce pravidlo */
        }
        
    
        .day-container {
            position: relative;
            left: 0%;
            
            width: 100%;
            max-width: none;
        }
    
        #mini-calendar {
            position: relative;
            left: 0%;
            
            width: 100%;
            top: 10px;
            
        }

        #attendance-mini-calendar {
            position: relative;
            left: 0%;
            
            width: 100%;
            top: 10px;
            
        }
    }


    #attendance-mini-calendar {
        width: 100%;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        text-align: center;
        
    }
    

    #attendance-mini-calendar table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

#today-btn {
    width: 100%; /* Rozšíri tlačidlo cez celú šírku */
    padding: 6px 0; /* Znížená výška pre tenší vzhľad */
    font-size: 14px; /* Menšie písmo, aby nepôsobilo mohutne */
    font-weight: 600;
    
    background-color: #f8f9fa; /* Svetlosivá farba pre jemný vzhľad */
    border: 1px solid #ddd; /* Jemný okraj */
    border-radius: 5px; /* Zaoblené rohy */
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
}

/* Efekt pri prechode myšou */
#today-btn:hover {
    background-color: #1a2b63; /* Tmavomodrá farba ako zvýraznenie */
    color: white;
    border-color: #1a2b63;
}

#openZapisTrening {
    background: #1a2b63;
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
}

#openZapisTrening:hover {
    background: #243b80;
}



.nav-tabs .nav-link {
    font-weight: 600;
    color: #1a2b63;
}

.nav-tabs .nav-link.active {
    background-color: #1a2b63;
    color: white;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

#activityTable {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

#activityTable th, #activityTable td {
    vertical-align: middle;
    padding: 10px;
}

#addActivityRow {
    border-radius: 8px;
    font-weight: 600;
}


.form-check-input {
    transform: scale(1.2); /* Väčšie checkboxy pre lepšie klikanie */
}

.form-check-label {
    font-weight: 500;
}


.activity-library {
    background: #f8f9fa;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.draggable {
    cursor: grab;
    background: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: 0.3s;
}

.draggable:hover {
    background: #e3f2fd;
}

.planner-table {
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

td {
    min-height: 50px;
    position: relative;
    border: 1px solid #ddd;
}

.activity-cell {
    background: #e3f2fd;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
    cursor: move;
}

.cell-merged {
    background: #d1ecf1;
    font-weight: bold;
}




.training-explorer {
    max-height: 400px;
    overflow-y: auto;
}

.folder {
    font-weight: bold;
    cursor: pointer;
}

.sub-training-list {
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px solid #ddd;
    display: none; /* Skryté, pokiaľ sa nerozbalí */
}

.training {
    padding-left: 10px;
}

#contextMenu {
    position: absolute;
    display: none;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    z-index: 1000;
}

#contextMenu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

#contextMenu a:hover {
    background-color: #f8f9fa;
}


.a-white{
    color: white;
    text-decoration: none;
}





#calendar {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
    height: 75vh; /* Dynamická výška */
    overflow: hidden; /* Odstráni zbytočné scrollovanie */
}

/* 🔹 Zmenšené hlavičky v kalendári */
.fc-header-toolbar {
    font-size: 14px !important;
    padding: 5px 10px !important;
}

/* 🔹 Zmenšené dni v mesiaci */
.fc-daygrid-day {
    height: 70px !important; /* Nižšie bunky */
    font-size: 12px !important;
}

/* 🔹 Menšie udalosti */
.fc-event {
    font-size: 11px !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
}

/* 🔹 Menšie tlačidlá */
.fc-button {
    font-size: 12px !important;
    padding: 6px 10px !important;
}

/* 🔹 Menší text v nadpise mesiaca */
.fc-toolbar-title {
    font-size: 18px !important;
}

/* 🔹 Tlačidlo na pridanie udalosti (menšie) */
#addEventBtn {
    font-size: 14px !important;
    padding: 8px 16px !important;
}

/* 🔹 Zmenšené dátumy v kalendári */
.fc-daygrid-day-number {
    font-size: 11px !important;
}
.fc-daygrid-day-number {
    cursor: pointer;
}
.fc-event:hover {
    filter: brightness(1.2);
    cursor: pointer;
}

/* 🔹 Štýly pre rôzne typy udalostí */
.fc-event.training {
    background: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
}

.fc-event.competition {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.fc-event.recovery {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.fc-event.other {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: black !important;
}

/* 🔹 Mobilné zobrazenie kalendára */
@media (max-width: 768px) {

    #calendar {
        height: auto;
        overflow: hidden;
    }

    .fc-header-toolbar{
        padding: 0px 0px !important;
    }
    .fc .fc-button .fc-icon{
        font-size: 0.8rem;
    }
    .fc-toolbar-title {
        font-size: 18px !important;
    }

    .fc-daygrid-day-number {
        font-size: 12px !important;
    }

    .fc-event {
        font-size: 12px !important;
        padding: 2px !important;
        border-radius: 3px !important;
    }
}

.dark-link{
    color: black;
    text-decoration: none;
}
.dark-link-underline{
    color: black;
    
}

.white-link{
    color: rgb(255, 255, 255);
    text-decoration: none;
}












/* 🌙 Tmavý režim */
/* 🔹 Tlačidlo Dark Mode */
#darkModeToggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a2b63;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    z-index: 999;
}
#darkModeToggle:hover {
    background: #243b80;
}



/* 🔹 DARK MODE ŠTÝLY */


body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}
body.dark-mode #loadingScreen{
    background: #000000c6;
}

body.dark-mode .skeleton-sidebar{
    background: #000 !important;
}

body.dark-mode .sidebar {
    background: linear-gradient(180deg, #000, #111);
}

body.dark-mode .sidebar .nav-link {
    color: #e0e0e0;
}

body.dark-mode .sidebar .nav-link:hover,
body.dark-mode .sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .card,
body.dark-mode .day-container,
body.dark-mode #mini-calendar,
body.dark-mode .training-list,
body.dark-mode .settings-section,
body.dark-mode .group-box,
body.dark-mode .planner-table,
body.dark-mode .modal-content {
    background: #1e1e1e !important;
    color: #e0e0e0 !important;
    border: 1px solid #333 !important;
    box-shadow: none;
}

body.dark-mode .form-control {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode .form-control:focus {
    background: #333;
    border-color: #777;
}

body.dark-mode .table {
    color: #e0e0e0;
    background: #1e1e1e;
}

body.dark-mode .table th, 
body.dark-mode .table td {
    border-color: #333;
}

body.dark-mode .modal-header,
body.dark-mode .modal-body,
body.dark-mode .modal-footer {
    background: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .btn-primary {
    background: #243b80 !important;
    border-color: #243b80 !important;
}

body.dark-mode .btn-primary:hover {
    background: #1a2b63 !important;
}

body.dark-mode .btn-secondary {
    background: #444 !important;
    border-color: #444 !important;
}

body.dark-mode .btn-secondary:hover {
    background: #555 !important;
}

body.dark-mode #mini-calendar td {
    background: #222;
    border-color: #333;
}

body.dark-mode #mini-calendar td:hover {
    background-color: #1a2b63;
}

body.dark-mode #mini-calendar td.current-day {
    background-color: #1a2b63;
    color: white;
}

body.dark-mode #mini-calendar td.today-day {
    background-color: #444;
    color: #fff;
}

body.dark-mode .nav-tabs .nav-link {
    color: #e0e0e0;
}

body.dark-mode .nav-tabs .nav-link.active {
    background-color: #1a2b63;
    color: white;
}

body.dark-mode .fc-header-toolbar {
    background: #1e1e1e !important;
}

body.dark-mode .fc-daygrid-day {
    background: #1e1e1e !important;
}

body.dark-mode .fc-daygrid-day-number {
    color: #e0e0e0 !important;
}

body.dark-mode .fc-event {
    background: #007bff !important;
    border-color: #007bff !important;
}

body.dark-mode .a-white {
    color: #e0e0e0;
}

body.dark-mode .white-link {
    color: #e0e0e0;
}

body.dark-mode .table-dark {
    background-color: #111;
    color: #e0e0e0;
}
body.dark-mode .text-muted { 
    color: white !important;
}



.group-container {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f8f9fa;
}

.group-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.group-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}



.attendance-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-top: 10px;
}

.attendance-button {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: none;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    transition: all 0.1s ease;
}

.attendance-button.present {
    background-color: #38bd3ea0;
    color: rgb(0, 0, 0);
}

.attendance-button.absent {
    background-color: #f44336;
    color: white;
}

.attendance-button.excused {
    background-color: #ff9800;
    color: white;
}

.attendance-button.sick {
    background-color: #03a9f4;
    color: white;
}

.attendance-button:hover {
    transform: scale(1.04);
}


