:root {
    --hub-sidebar-width: 288px;
    --hub-sidebar-collapsed-width: 88px;
    --hub-sidebar-bg: #0f172a;
    --hub-sidebar-bg-2: #111827;
    --hub-sidebar-border: rgba(255, 255, 255, 0.08);
    --hub-sidebar-text: rgba(255, 255, 255, 0.92);
    --hub-sidebar-muted: rgba(255, 255, 255, 0.62);
    --hub-sidebar-hover: rgba(255, 255, 255, 0.08);
    --hub-sidebar-active: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(14, 165, 233, 0.18));
    --hub-sidebar-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
}

body {
    padding-top: 0;
    padding-left: 0;
    transition: padding-left .2s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image: url('../images/blue.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
footer {
    height: 80px;
}
@media (min-width: 768px) {
    body {
        padding-left: var(--hub-sidebar-width);
    }

    body.hub-sidebar-collapsed {
        padding-left: var(--hub-sidebar-collapsed-width);
    }
}

.ts-dropdown {
    z-index: 2000 !important;
}
.ts-control {
    padding-top: 20px;
}

.input-group input {
    border-right: none;
    border-left: none;
}
.input-group .input-group-text {
    background-color: white !important;
}
.input-group-text:has(.bi-eye-fill) {
    cursor: pointer;
}

#topBar {
    height: 50px;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    width: 100%;
}

.hub-topbar {
    height: 56px;
    background: linear-gradient(135deg, #1E4E8C 0%, #2F3E4D 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.hub-topbar-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.hub-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-item {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    transition: all 0.2s ease;
}

.topbar-item:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
    color: #fff;
}

.topbar-item i {
    font-size: 1.1rem;
}

.topbar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #1E4E8C;
}
.read-message {
    font-weight: 600;
}
.class-card-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;

    width: 42px;
    height: 42px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);

    color: #fff;
    transition: all 0.2s ease;
}

.class-card-delete:hover {
    transform: scale(1.06);
    background: rgba(220, 53, 69, 0.88);
    border-color: rgba(220, 53, 69, 0.95);
    color: #fff;
}

.class-card-delete:active {
    transform: scale(0.96);
}

.class-card-delete i {
    font-size: 1rem;
    line-height: 1;
}

.image-class {
    background-image: url('/images/default_class.jpg');
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.image-change {
    opacity: 0;
    transition: 0.2s;
}

.position-relative:hover .image-change {
    opacity: 0.8;
}
/*
.ts-wrapper .option .title {
    display: block;
}
.ts-wrapper .option .email {
    font-size: 12px;
    display: block;
    color: #a0a0a0;
}

.form-floating > label {
    background: var(--bs-body-bg);
    border-radius: 4px;
    padding: 0 .4rem;
    margin-left: 10px;
    height: auto;
    z-index: 3;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    transform: scale(.82) translateY(-1rem) translateX(.15rem);
    border: 1px solid #678e9f;
}
*/

.select2-container--bootstrap-5 .select2-selection--multiple {
    min-height: calc(3.5rem + 2px);
    padding: 1.625rem 0.75rem 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search {
    display: inline;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
    margin-top: 0;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}


.select2-selection__choice {
    font-size: .8rem !important;
}

tbody,tr,th,td {
    background-color: rgba(255,255,255,0) !important;
}


/* Insert shadow for forms */
.form-control-glass {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    color: #1f2937;

    box-shadow:
        inset 0 1px 3px rgba(255,255,255,0.12),
        inset 0 -4px 10px rgba(0,0,0,0.12);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-control-glass:focus {
    outline: none;
    border-color: rgba(255,255,255,0.28);
    box-shadow:
        inset 0 1px 3px rgba(255,255,255,0.14),
        inset 0 -4px 10px rgba(0,0,0,0.14),
        0 0 0 3px rgba(255,255,255,0.08);
}

.notification-menu {
    min-width: 320px;
    max-width: 360px;
    max-height: 420px;
    overflow: hidden;
    border-radius: 16px;
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    white-space: normal;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.notification-menu {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}


#settingsTabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

#settingsTabs .nav-link {
    color: rgba(33, 37, 41, 0.75);
    background: transparent;
    border: 1px solid transparent;
    margin-right: 4px;
    transition: all .2s ease;
}

#settingsTabs .nav-link:hover {
    color: #212529;
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(0, 0, 0, 0.08);
}

#settingsTabs .nav-link.active {
    color: #212529;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(0, 0, 0, 0.12) rgba(0, 0, 0, 0.12) rgba(255, 255, 255, 0.65);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/*ADD button*/

.newElement {
    position: fixed;
    bottom: 50px;
    right: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.add-item-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 78px;
    height: 78px;
    font-size: 42px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);

    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.add-item-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.24);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.add-item-btn:active {
    transform: scale(0.96);
}






/* CONFIRM MODAL */
.confirm-modal .modal-content {
    border: 0;
    background: transparent;
    /*box-shadow: none;*/
}

.confirm-modal-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.92));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #fff;
}

.confirm-modal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 38%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.16), transparent 35%);
    pointer-events: none;
}

.confirm-modal-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.1rem 1.1rem 0 1.1rem;
}

.confirm-modal-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(14, 165, 233, 0.9));
    box-shadow:
        0 10px 24px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.20);
}

.confirm-modal-close {
    opacity: 0.9;
    transform: scale(0.9);
}

.confirm-modal-close:hover {
    opacity: 1;
}

.confirm-modal-body {
    position: relative;
    z-index: 1;
    padding: 0.8rem 1.35rem 0.75rem;
    text-align: center;
}

.confirm-modal-title {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.96);
}

.confirm-modal-text {
    font-size: 0.98rem;
    line-height: 1.55;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
}

.confirm-modal-footer {
    position: relative;
    z-index: 1;
    border-top: 0;
    padding: 0.8rem 1.2rem 1.2rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.confirm-modal-footer .btn {
    min-width: 120px;
    border-radius: 14px;
    font-weight: 700;
    padding: 0.72rem 1rem;
    transition: all 0.2s ease;
}

.confirm-btn-cancel {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
}

.confirm-btn-cancel:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    transform: translateY(-1px);
}

.confirm-btn-ok {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.confirm-btn-ok:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.confirm-modal .modal-dialog {
    max-width: 380px;
}

.confirm-modal .modal-backdrop,
.modal-backdrop.show {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


/*Class status indicator*/
.class-status {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: auto !important;     /* 🔥 klíčové */
    min-height: unset;
    max-height: fit-content;

    width: fit-content;

    padding: 4px 8px;

    border-radius: 999px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #6c757d;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}

.class-status.is-running .status-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.class-status.is-sleeping .status-dot {
    background: #6b7280;
    box-shadow: none;
}

.class-status.is-running .status-text {
    color: #f0fff4;
}

.class-status.is-sleeping .status-text {
    color: #f3f4f6;
}
.class-status.is-running .status-dot {
    animation: pulse-live 1.6s infinite;
}

@keyframes pulse-live {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/*HELPER ARROW*/
.helper-inline {
    display: flex;
    align-items: center;
    gap: 14px;

    position: absolute;
    bottom: 60px;
    right: 145px;

    z-index: 1000;
    pointer-events: none;
}

.helper-text {
    padding: 12px 18px;
    border-radius: 16px;

    background: rgba(15,23,42,.85);
    color: white;

    font-size: 14px;
    font-weight: 600;

    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 8px 24px rgba(0,0,0,.18);
}

.helper-arrow-right {
    width: 56px;
    height: 56px;

    border-radius: 50%;

    background: linear-gradient(135deg, #3aa8ff, #005eff);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 0 24px rgba(58,168,255,.45),
        0 0 60px rgba(58,168,255,.25);

    animation:
        arrowMoveRight 1.6s infinite,
        glowPulse 2.5s infinite;
}

.helper-arrow-right svg {
    width: 28px;
    height: 28px;
}

@keyframes arrowMoveRight {
    0%,100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

@keyframes glowPulse {
    0%,100% {
        box-shadow:
            0 0 24px rgba(58,168,255,.45),
            0 0 60px rgba(58,168,255,.25);
    }

    50% {
        box-shadow:
            0 0 36px rgba(58,168,255,.8),
            0 0 90px rgba(58,168,255,.45);
    }
}