.timeline-label:before {
    left: 124px !important;
}

.card-glass {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 1rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 20px 45px rgba(8, 15, 35, 0.16),
        0 2px 10px rgba(8, 15, 35, 0.08);
    text-align: center;
}

[data-bs-theme="dark"] .card-glass,
[data-bs-theme="semi-dark"] .card-glass {
    background: rgba(13, 18, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 24px 55px rgba(0, 0, 0, 0.45),
        0 3px 14px rgba(0, 0, 0, 0.28);
}

@supports not ((backdrop-filter: blur(1px))) {
    .card-glass {
        background: rgba(var(--bs-body-bg-rgb), 0.92);
    }
}

.card-outlined {
    border: 2px solid #1D355732;
    border-radius: 1rem;
    text-align: center;
}

.card-outlined:hover{
    border: 2px solid #1D355796;
}

.card-dashed-outlined {
    border: 2px dashed #1D355732;
    border-radius: 1rem;
    text-align: center;
    color: #1D355732;
}

.card-dashed-outlined:hover{
    border: 2px solid #1D355796;
    color: #1D355796;
}

#register_part_non_active {
    background-color: #1D3557; /* fixná modrá */
    position: relative;
    overflow: hidden;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}
#register_part_non_active h2,
#register_part_non_active h1,
#register_part_non_active p{
    color: #F1FAEE;
}

#login_part_non_active {
    background-color: #1D3557; /* fixná modrá */
    position: relative;
    overflow: hidden;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}
#login_part_non_active h2,
#login_part_non_active h1,
#login_part_non_active p{
    color: #F1FAEE;
}

.auth-shell {
    width: min(90%, 900px);
    min-height: 450px;
    height: min(96vh, 600px);
}

.auth-pane {
    width: calc(50% - 37.5px);
}

.auth-form-shell {
    width: min(100%, 420px);
}

.auth-side-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.auth-left-content {
    text-align: left;
    padding: 2.75rem 2.5rem 2.25rem 2.5rem;
}

.auth-left-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #F1FAEE;
}

.auth-left-subtitle {
    max-width: 30ch;
    font-size: 1.125rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    color: #F1FAEE;
}

.auth-left-features {
    margin: 0;
    padding-left: 1.4rem;
    list-style: disc;
    color: #F1FAEE;
}

.auth-left-features li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.35rem;
    color: #F1FAEE;
}

.auth-left-features li::marker {
    color: #F1FAEE;
}

.auth-divider {
    width: 75px;
}

.auth-divider-svg {
    width: 75px;
    height: 100%;
}

.btn-outlined-white {
    color: #F1FAEE;
    border: 1px solid #F1FAEE;
    background-color: transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* hover efekt */
.btn-outlined-white:hover {
    background-color: #F1FAEE;
    color: #1D3557;
    border-color: #F1FAEE;
}

.btn-outlined-dark-primary {
    color: #1D3557;
    border: 1px solid #1D3557;
    background-color: transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-outlined-dark-primary.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* hover efekt */
.btn-outlined-dark-primary:hover {
    background-color: #1D3557;
    color: #F1FAEE;
    border-color: #1D3557;
}

.btn-dark-primary {
    color: #F1FAEE;
    background-color: #457B9D;
    border: 1px solid #457B9D;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-dark-primary:hover {
    background-color: #588fb1;
    border-color: #588fb1;
    color: #F1FAEE;
}

.btn-dark-primary:active {
    background-color: #387194;
    border-color: #387194;
}

.btn-dark-primary:disabled,
.btn-dark-primary.disabled {
    opacity: 0.65;
    pointer-events: none;
}

.btn-dark-secondary {
    color: #1D3557;
    background-color: #A8DADC;
    border: 1px solid #A8DADC;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-dark-secondary:hover {
    background-color: #bee3e5;
    border-color: #bee3e5;
    color: #1D3557;
}

.btn-dark-secondary:active {
    background-color: #7db9bb;
    border-color: #7db9bb;
}

.btn-dark-secondary:disabled,
.btn-dark-secondary.disabled {
    opacity: 0.65;
    pointer-events: none;
}

.custom-btn-link{
    padding: 0.375rem 0.775rem;
    border-radius: 0.375rem;
    background-color: transparent;
    color: #4b83a6;
    text-decoration: none;
}

.custom-btn-link:hover{
    background: rgba(255, 255, 255, 0.5);
    color: #1D3557;
    text-decoration: underline;
}

.custom_scrollable {
    overflow: auto;
    max-height: 90vh;
    max-width: 90vw;
    scrollbar-width: thin;
    scrollbar-color: #A8DADC transparent;
    border-radius: 1rem;
}

.custom_scrollable:hover {
    scrollbar-width: thin;
    scrollbar-color: #A8DADC transparent;
    border-radius: 1rem;
}

.custom_scrollable::-webkit-scrollbar {
    display: none;
    width: 8px; /* šírka vertikálneho scrollbar */
    height: 8px; /* výška horizontálneho scrollbar */
}

.custom_scrollable::-webkit-scrollbar-thumb {
    background-color: #A8DADC; /* farba posuvníka */
    border-radius: 10px;        /* zaoblenie */
    border: 2px solid transparent; /* efekt "gap" */
}

/* Breadcrumb sections use custom separator items, so disable theme auto "/" */
.breadcrumb.breadcrumb-separatorless .breadcrumb-item + .breadcrumb-item::before {
    display: none !important;
    content: none !important;
}

.custom_scrollable::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05) !important; /* farba pozadia scrollu */
    border-radius: 1rem !important;
}

.custom_vertical_scrollable {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 99%;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #A8DADC transparent;
    border-radius: 1rem;
}

.custom_vertical_scrollable:hover {
    scrollbar-width: thin;
    scrollbar-color: #A8DADC transparent;
    border-radius: 1rem;
}

.custom_vertical_scrollable::-webkit-scrollbar {
    height: 8px;
}

.custom_vertical_scrollable::-webkit-scrollbar-thumb {
    background-color: #A8DADC;
    border-radius: 10px;
}

/* Metronic-like icon size helper used by Keenicons in dropzones/cards */
.fs-4x {
    font-size: 2.25rem !important;
    line-height: 1;
}

/* Sticky footer at the bottom of viewport */
.page-footer {
    position: fixed;
    bottom: 0;
    z-index: 12;
    background-color: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color-translucent, var(--bs-border-color));
}

.page-footer p {
    color: var(--bs-secondary-color) !important;
}

.theme-customizer-toggle {
    z-index: 1085 !important;
    bottom: 5.5rem !important;
}

@media (max-width: 767.98px) {
    .theme-customizer-toggle {
        bottom: 5rem !important;
    }
}

/* Reserve space so page content doesn't hide behind fixed footer */
.main-wrapper {
    padding-bottom: 88px;
}

.scroll-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.25%;
    align-items: start;
}

.file-card {
    width: 100%;
    border-radius: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.file-preview {
    aspect-ratio: 4/3;
    height: auto;
    width: calc(100% - 1px);
    object-fit: contain;
    background-color: #1D3557;
    border-radius: 0.75rem;
}

.preview-slide {
    transition: all 0.5s ease;
}

/* Fade */
.preview-slide.fade {
    opacity: 0;
}
.preview-slide.fade.show {
    opacity: 1;
}

/* Slide Left */
.preview-slide.slide_left {
    transform: translateX(100%);
}
.preview-slide.slide_left.show {
    transform: translateX(0);
}

/* Slide Right */
.preview-slide.slide_right {
    transform: translateX(-100%);
}
.preview-slide.slide_right.show {
    transform: translateX(0);
}

.auth-field-label {
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: #1d3557;
    display: block;
    text-align: left;
}

.auth-field-label .required-mark {
    color: #dc3545;
}

.auth-password-toggle {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
}

.auth-password-toggle i {
    font-size: 1rem;
    line-height: 1;
}

.auth-password-addon {
    padding: 0 0.4rem;
    background-color: #fff;
    border-left: 0;
}

.auth-password-group .form-control {
    border-right: 0;
}

.auth-password-group .form-control:focus {
    box-shadow: none;
}

.auth-password-group:focus-within {
    border-radius: 0.475rem;
    box-shadow: 0 0 0 0.25rem rgba(69, 123, 157, 0.25);
}

.auth-password-group:focus-within .form-control,
.auth-password-group:focus-within .auth-password-addon {
    border-color: #86b7fe;
}

/* Slide Up */
.preview-slide.slide_up {
    transform: translateY(100%);
}
.preview-slide.slide_up.show {
    transform: translateY(0);
}

/* Slide Down */
.preview-slide.slide_down {
    transform: translateY(-100%);
}
.preview-slide.slide_down.show {
    transform: translateY(0);
}

/* Zoom In */
.preview-slide.zoom_in {
    transform: scale(0.5);
    opacity: 0;
}
.preview-slide.zoom_in.show {
    transform: scale(1);
    opacity: 1;
}

/* Zoom Out */
.preview-slide.zoom_out {
    transform: scale(1.5);
    opacity: 0;
}
.preview-slide.zoom_out.show {
    transform: scale(1);
    opacity: 1;
}

/* Flip Horizontal */
.preview-slide.flip_horizontal {
    transform: rotateY(180deg);
}
.preview-slide.flip_horizontal.show {
    transform: rotateY(0deg);
}

/* Flip Vertical */
.preview-slide.flip_vertical {
    transform: rotateX(180deg);
}
.preview-slide.flip_vertical.show {
    transform: rotateX(0deg);
}

/* Rotate */
.preview-slide.rotate {
    transform: rotate(-180deg);
    opacity: 0;
}
.preview-slide.rotate.show {
    transform: rotate(0deg);
    opacity: 1;
}

/* Scale */
.preview-slide.scale {
    transform: scale(0);
    opacity: 0;
}
.preview-slide.scale.show {
    transform: scale(1);
    opacity: 1;
}

.animate-fade { animation: fade 1s ease; }
.animate-slide_left { animation: slideLeft 1s ease; }
.animate-slide_right { animation: slideRight 1s ease; }
.animate-slide_up { animation: slideUp 1s ease; }
.animate-slide_down { animation: slideDown 1s ease; }
.animate-zoom_in { animation: zoomIn 1s ease; }
.animate-zoom_out { animation: zoomOut 1s ease; }
.animate-flip_horizontal { animation: flipHorizontal 1s ease; }
.animate-flip_vertical { animation: flipVertical 1s ease; }
.animate-rotate { animation: rotate 1s ease; }
.animate-scale { animation: scale 1s ease; }

.animate-fade-hide { animation: fadeHide 1s ease forwards; }
.animate-slide_left-hide { animation: slideLeftHide 1s ease forwards; }
.animate-slide_right-hide { animation: slideRightHide 1s ease forwards; }
.animate-slide_up-hide { animation: slideUpHide 1s ease forwards; }
.animate-slide_down-hide { animation: slideDownHide 1s ease forwards; }
.animate-zoom_in-hide { animation: zoomInHide 1s ease forwards; }
.animate-zoom_out-hide { animation: zoomOutHide 1s ease forwards; }
.animate-flip_horizontal-hide { animation: flipHorizontalHide 1s ease forwards; }
.animate-flip_vertical-hide { animation: flipVerticalHide 1s ease forwards; }
.animate-rotate-hide { animation: rotateHide 1s ease forwards; }
.animate-scale-hide { animation: scaleHide 1s ease forwards; }

@keyframes fade { from {opacity: 0;} to {opacity: 1;} }
@keyframes slideLeft { from {transform: translateX(100%);opacity: 0;} to {transform: translateX(0);opacity: 1;} }
@keyframes slideRight { from {transform: translateX(-100%);opacity: 0;} to {transform: translateX(0);opacity: 1;} }
@keyframes slideUp { from {transform: translateY(100%);opacity: 0;} to {transform: translateY(0);opacity: 1;} }
@keyframes slideDown { from {transform: translateY(-100%);opacity: 0;} to {transform: translateY(0);opacity: 1;} }
@keyframes zoomIn { from {transform: scale(0.4);opacity: 0;} to {transform: scale(1);opacity: 1;} }
@keyframes zoomOut { from {transform: scale(1.6);opacity: 0;} to {transform: scale(1);opacity: 1;} }
@keyframes flipHorizontal { from {transform: rotateY(180deg);opacity: 0;} to {transform: rotateY(0);opacity: 1;} }
@keyframes flipVertical { from {transform: rotateX(180deg);opacity: 0;} to {transform: rotateX(0);opacity: 1;} }
@keyframes rotate { from {transform: rotate(-360deg);opacity: 0;} to {transform: rotate(0);opacity: 1;} }
@keyframes scale { from {transform: scale(0.5);opacity: 0;} to {transform: scale(1);opacity: 1;} }

@keyframes fadeHide { from {opacity: 1;} to {opacity: 0;} }
@keyframes slideLeftHide { from {transform: translateX(0);opacity: 1;} to {transform: translateX(-100%);opacity: 0;} }
@keyframes slideRightHide { from {transform: translateX(0);opacity: 1;} to {transform: translateX(100%);opacity: 0;} }
@keyframes slideUpHide { from {transform: translateY(0);opacity: 1;} to {transform: translateY(-100%);opacity: 0;} }
@keyframes slideDownHide { from {transform: translateY(0);opacity: 1;} to {transform: translateY(100%);opacity: 0;} }
@keyframes zoomInHide { from {transform: scale(1);opacity: 1;} to {transform: scale(0.4);opacity: 0;} }
@keyframes zoomOutHide { from {transform: scale(1);opacity: 1;} to {transform: scale(1.6);opacity: 0;} }
@keyframes flipHorizontalHide { from {transform: rotateY(0);opacity: 1;} to {transform: rotateY(-180deg);opacity: 0;} }
@keyframes flipVerticalHide { from {transform: rotateX(0);opacity: 1;} to {transform: rotateX(-180deg);opacity: 0;} }
@keyframes rotateHide { from {transform: rotate(0);opacity: 1;} to {transform: rotate(360deg);opacity: 0;} }
@keyframes scaleHide { from {transform: scale(1);opacity: 1;} to {transform: scale(0.5);opacity: 0;} }

.drag-ghost {
    opacity: 0.6;
    border: 2px dashed #1D3557;
}

.app-header-glass {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.rotate-right {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vh !important;
    height: 100vw !important;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
    overflow: hidden;
}

.rotate-left{
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vh !important;
    height: 100vw !important;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center center;
    overflow: hidden;
}

.flip{
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw !important;
    height: 100vh !important;
    transform: translate(-50%, -50%) rotate(180deg);
    transform-origin: center center;
    overflow: hidden;
}

.classic{
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw !important;
    height: 100vh !important;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.dropzone {
    height: 100%;
    padding: 1.5rem 1.75rem;
    text-align: center;
    cursor: pointer;
    border: 0px dashed var(--bs-primary);
    background-color: var(--bs-primary-light);
    border-radius: 0.475rem !important;
}

/* SweetAlert2 toasts aligned with app theme */
.swal2-popup.swal2-toast {
    background: #f1faee !important;
    color: #1d3557 !important;
    border: 1px solid #a8dadc !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 8px 24px rgba(29, 53, 87, 0.16) !important;
}

.swal2-popup.swal2-toast .swal2-title,
.swal2-popup.swal2-toast .swal2-html-container {
    color: #1d3557 !important;
    font-weight: 600 !important;
}

.swal2-popup.swal2-toast .swal2-success-ring {
    border-color: rgba(69, 123, 157, 0.25) !important;
}

.swal2-popup.swal2-toast .swal2-success [class^="swal2-success-line"] {
    background-color: #457b9d !important;
}
