#app {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.blurred-background {
    position: relative;
    background: rgba(255, 255, 255, 0.0);
    overflow: hidden;
}

.blurred-background::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;

    background: inherit;

    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);

    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 33%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 33%);
    z-index: -1;
}

/*!* Dark mode *!*/
/*@media (prefers-color-scheme: dark) {*/
/*    .blurred-background {*/
/*        background: rgba(255, 255, 255, 0.0);*/
/*    }*/

/*    .blurred-background::before {*/
/*        -webkit-backdrop-filter: blur(10px);*/
/*        backdrop-filter: blur(10px);*/

/*        -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 33%);*/
/*        mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 33%);*/
/*    }*/
/*}*/

.rounded-20 {
    border-radius: 20px
}

.text-justify {
    text-align: justify !important;
}

.image-with-mask {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-size: cover;
    mask-size: cover;
}

/*.video-container {*/
/*    display: flex;*/
/*    justify-content: end;*/
/*    align-items: center;*/
/*    height: 400px; !* Nastavte výšku kontajnera *!*/
/*    width: 100%; !* Zabezpečuje, že kontajner bude flexibilný *!*/
/*}*/

/*.video-wrapper {*/
/*    display: flex;*/
/*    justify-content: end;*/
/*    align-items: center;*/
/*    max-width: 100%;*/
/*    max-height: 400px;*/
/*}*/

/*.video {*/
/*    border-radius: 50%;*/
/*    max-width: 100%;*/
/*    max-height: 400px;*/
/*    width: auto;*/
/*    height: auto;*/
/*}*/

#study-carousel .content {
    position: relative; /* Obsah bude nad pozadím */
    z-index: 1; /* Obsah bude nad obrázkom */
}

#study-carousel .carousel-item > h2 {
    font-size: clamp(1.5rem, 5vw, 3rem);
}

#study-carousel .carousel-item > p {
    font-size: 14px !important;
}

#study-carousel .text-slide {
    font-size: 24px;
}

/* SM */
@media (max-width: 767px) {
    #study-carousel .text-slide {
        font-size: 16px;
    }

    #study-carousel .text-slide h1 {
        font-size: 20px;
    }

    #study-carousel .display-1 {
        font-size: 36px;
    }

    #study-carousel .display-5 {
        font-size: 26px;
    }
}





.span-bottom-left {
    bottom: 6px; /* Odsadenie od spodného okraja */
    right: 6px; /* Odsadenie od ľavého okraja */
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.span-bottom-center {
    bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.format-btn:hover {
    border: none !important;
    box-shadow: none !important;
    background-color: rgba(106, 255, 192, 0.5) !important;
}

.active-style {
    background-color: rgba(106, 255, 192, 0.97) !important;
    border: none !important;
}

.icon-circle {
    width: 30px;
    height: 30px;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.icon-circle i {
    font-size: 16px;
    color: #6c757d; /* text-muted styled */
    transition: all 0.2s ease;
}

/* Hover efekt */
.icon-circle:hover {
    border-color: var(--bs-primary);
}

.icon-circle:hover i {
    color: var(--bs-primary);
    transform: scale(1.1);
}

.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.5s ease;
    opacity: 0;
    font-size: 10px;
    width: 150%;
    background-color: rgba(11, 11, 11, 0.1);
    padding: 8px;
    border-radius: 16px;
}

.custom-tabs .nav-link {
    border: none;
    position: relative;
    color: #495057;
}

.custom-tabs .nav-link.active {
    color: var(--bs-primary);
    background: transparent;
}

.custom-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background-color: var(--bs-primary);
    border-radius: 5px 5px 0 0;
}

.fi {
    width: 11px;
    height: 11px;
}

.dropdown-menu {
    min-width: 180px;
}

.has-tooltip:hover::after { opacity: 1; }

audio::-internal-media-controls-download-button {
    display:none;
}
audio::-webkit-media-controls-enclosure {
    overflow:hidden;
}
audio::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}

.ai-btn, .elevia-primary-btn {
    background: rgba(255, 107, 82, 0.2);
    color: #FF6B52;
    transition: all 0.3s ease;
}

.ai-btn:hover, .elevia-primary-btn:hover {
    background: rgba(255, 107, 82, 0.3);
    color: #FF6B52;
    box-shadow: 0 4px 12px rgba(255, 107, 82, 0.2);
    transform: translateY(-1px);
}

.elevia-primary-border, .ai-btn, .elevia-primary-btn, .form-switch-color-mode .form-check-input {
    border: 1px solid rgba(255, 107, 82, 0.5);
}

.elevia-primary-border:hover {
    border: 1px solid rgba(255, 107, 82, 0.7) !important;
}

.elevia-secondary-border {
    border: 1px solid rgba(26, 37, 74, 0.5);
}

.elevia-primary-border:hover {
    border: 1px solid rgba(26, 37, 74, 0.7) !important;
}

.elevia-primary-color {
    color: #FF6B52 !important;
}

.elevia-primary-color-hover {
    color: #FF6B52 !important;

}

/* LIGHT MODE - Vysoký kontrast na bielom pozadí */
.elevia-secondary-btn {
    background: #f0f3ff;       /* Jasná pastelová modrá (vysoko kontrastná k bielej) */
    color: #2b3a67 !important;            /* Hlboká modrá pre text (skvelá čitateľnosť) */
    border: 1px solid #d1d9ff; /* Jasne definovaný okraj */
    font-weight: 600;
    transition: all 0.25s ease;
}

.elevia-secondary-btn:hover {
    background: #e1e7ff;       /* Stmavenie pri hoveri */
    color: #1a254a !important;            /* Ešte hlbšia modrá textu */
    border-color: #a3b2ff;     /* Výraznejší okraj */
    box-shadow: 0 4px 12px rgba(43, 58, 103, 0.1);
    transform: translateY(-1px);
}

/* DARK MODE - Automatické prispôsobenie */
[data-bs-theme="dark"] .elevia-secondary-btn,
body.dark-mode .elevia-secondary-btn {
    background: rgba(163, 178, 255, 0.15); /* Jemná žiara na tmavom */
    color: #a3b2ff !important;                        /* Svetlomodrý text */
    border-color: rgba(163, 178, 255, 0.3);
}

[data-bs-theme="dark"] .elevia-secondary-btn:hover,
body.dark-mode .elevia-secondary-btn:hover {
    background: rgba(163, 178, 255, 0.25);
    color: #cbd5ff !important;
    border-color: #a3b2ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.custom-tabs .nav-link {
    border: none;
    position: relative;
    color: #495057;
}

.custom-tabs .nav-link:hover {
    border: none;
    position: relative;
    color: #FF6B52;
}

.custom-tabs .nav-link.active {
    color: var(--bs-primary);
    background: transparent;
}

.custom-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 5px;
    background-color: var(--bs-primary);
    border-radius: 5px;
}

/* Univerzálna karta pre Elevia dashboard */
.elevia-card {
    background-color: #ffffff; /* Default pre svetlý režim */
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

/* Adaptácia na tmavý režim */
[data-bs-theme="dark"] .elevia-card {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); /* Jemné rozostrenie pozadia pre prémiový look */
}

/* Fix pre inputy v tmavých kartách */
[data-bs-theme="dark"] .elevia-card .form-control {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}


:not([data-bs-theme=dark]) .offcanvas {
    background-color: rgba(255, 255, 255, 0.5) !important;
}
[data-bs-theme=dark] .offcanvas,
[data-bs-theme=light] .swal2-container,
[data-bs-theme=dark] .swal2-container {
    background-color: rgba(45, 49, 64, 0.3) !important;
}

table.dataTable > thead > tr > th.elevia-primary-color,
table.dataTable tr td:not(:first-child) {
    padding-left: 20px;
}

.multiselectOptions {
    padding-left: 0 !important;
}
