* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    /* background-color: #121212; */
    background: radial-gradient(circle at 100% 100%, rgba(92, 113, 101, 0.85) 0%, rgba(92, 113, 101, 0.00) 60%), radial-gradient(circle at 60% 58%, rgba(182, 216, 249, 0.95) 0%, rgba(182, 216, 249, 0.55) 30%, rgba(240, 248, 255, 0.00) 80%), radial-gradient(circle at 22% 22%, rgba(248, 156, 140, 0.92) 0%, rgba(248, 156, 140, 0.00) 45%), #ffffff;
    color: white;
    position: relative;
}

.login-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    margin: 0;
    background-color: #121212;
}

.gradient-container {
    background: radial-gradient(circle at 100% 100%, rgba(92, 113, 101, 0.85) 0%, rgba(92, 113, 101, 0.00) 60%), radial-gradient(circle at 60% 58%, rgba(182, 216, 249, 0.95) 0%, rgba(182, 216, 249, 0.55) 30%, rgba(240, 248, 255, 0.00) 80%), radial-gradient(circle at 22% 22%, rgba(248, 156, 140, 0.92) 0%, rgba(248, 156, 140, 0.00) 45%), #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50%;
    flex-direction: column;
    align-content: center;
}


.flex-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.flex-1 img {
    width: 200px;
}



.logo-img {
    width: 90px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px auto;
}

h1 {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 600;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: #222;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    margin-bottom: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.social-button svg {
    margin-right: 10px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #777;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #333;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

input {
    width: 100%;
    padding: 12px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 4px;
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
}

.password-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-password {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.sign-in-button {
    width: 100%;
    padding: 12px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 20px;
}

.sign-up-text {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.sign-up-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.sign-up-link:hover {
    text-decoration: underline;
}

.chat-bubble {
    position: fixed;
    bottom: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 16px 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 80%;
    width: 60%;
    position: relative;
}

.chat-bubble-text {
    font-size: 16px;
    margin-right: 10px;
}

.typing-cursor {
    font-size: 16px;
    color: black;
    animation: blink 0.7s infinite;
    position: absolute;
    bottom: 13px;
    padding-left: 12px;

    transform: translateY(-50%);
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.arrow-up-button {
    width: 36px;
    height: 36px;
    background-color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.last-used {
    color: #4285f4;
    font-size: 12px;
    margin-left: 10px;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .login-container {
        padding: 20px;
        width: 100%;
    }

    .gradient-container {
        display: none;
    }
}

/* Sonner-like alert styles */
.sonner-alert {
    position: fixed;
    left: 55px;
    bottom: 15px;
    transform: translateY(-50%) translateX(-30px);
    min-width: 200px;
    background: #2A0F57;
    color: #fff;
    border-radius: 8px;
    padding: 14px 20px 14px 18px;
    box-shadow: 0 4px 24px 0 rgba(42, 15, 87, 0.18);
    font-size: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
}

.sonner-alert.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.sonner-alert .close-alert {
    margin-left: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

/* New Sonner alert styles */
.sonner-alert-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.sonner-alert {
    background-color: #721c24;
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(20px);
}

.sonner-alert.show {
    opacity: 1;
    transform: translateY(0);
}

.sonner-alert.success {
    background-color: #2e7d32;
}

.sonner-alert.info {
    background-color: #0288d1;
}

.sonner-alert.warning {
    background-color: #ed6c02;
}

.sonner-alert.danger {
    background-color: #721c24;
}

.sonner-alert .close-alert {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0 8px;
}



.form-control-costume {
    height: 50px !important;
}

.btn-secondary {
    height: 50px !important;
}

.navbar-brand img {

    height: 90px !important;
    width: auto !important;
    margin-left: -32px !important;
}




/* ===== */

#videoContainer {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Adjust height as needed */
    overflow: hidden;
}

#loopVideoPlayer,
#selectedVideoPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures videos fill the container */
}

#loopVideoPlayer {
    z-index: 1;
}

#selectedVideoPlayer {
    z-index: 2;
}

.header {
    background: #2c2c2c;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.header a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.header a:hover {
    color: #00ffcc;
}


.costume-button {
    background-color: rgba(0, 123, 255, 0.2);
}

.play-btn {
    display: none !important;

}


#videoContainer {
    position: fixed;
    inset: 0;
    background: #000;
}

#videoContainer video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#videoContainer video.active {
    display: block;
}

.status-dot {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    z-index: 5;
}

.dot-connecting {
    background: #ffc107;
    animation: pulse 1.4s infinite;
}

.dot-ok {
    background: #28a745;
}

.dot-broken {
    background: #dc3545;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 6px rgba(255, 193, 7, .25);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, .15);
    }

    100% {
        box-shadow: 0 0 0 6px rgba(255, 193, 7, .25);
    }
}


.page-404 {
    position: relative;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}

#video404 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-500 {
    position: relative;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
}

#video500 {
    position: relative;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.back-home {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 3;
    display: none;
}

.back-home.show {
    display: inline-flex;
}

.sound-gate {
    position: absolute;
    margin: auto;
    height: 80px;
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    border: none;
    border-radius: 50%;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    bottom: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.sound-gate:hover {
    background: #9d9b9bdf;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .45);
    transform: translateY(-2px);
    transition: all 150ms ease;
}

.sound-gate[disabled] {
    opacity: .6;
    cursor: default;
}

.sound-gate svg {
    width: 50px;
    height: 50px;
}

.sticky-notice {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(16px);
    opacity: 0;
    z-index: 4;
    pointer-events: auto;
    transition: transform 300ms ease, opacity 300ms ease;
}

.sticky-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notice-inner {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 280px;
    text-align: left;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.type-line {
    margin: 6px 0;
    line-height: 1.4;
}

.type-link {
    color: #fff;
    text-decoration: underline;
}

.typing-caret::after {
    content: '▍';
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}


.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot-online {
    background: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, .15);
}

.dot-offline {
    background: #bdc3c7;
    box-shadow: 0 0 0 4px rgba(189, 195, 199, .15);
}

.video-card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: transform .12s ease, box-shadow .12s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.thumb-wrap {
    position: relative;
    background: #f2f4f7;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-skeleton {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(-45deg,
            #f6f7f8, #f6f7f8 10px,
            #e9ecef 10px, #e9ecef 20px);
    animation: shimmer 1.1s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 30px 0;
    }
}

.thumb-skeleton.hidden {
    display: none;
}

.overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .12s ease;
    display: grid;
    align-items: end;
    justify-content: end;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 55%);
}

.video-card:hover .overlay {
    opacity: 1;
}

.play-btn {
    backdrop-filter: blur(2px);
}

.video-meta {
    padding: 10px 12px;
    background: #fff;
}

.video-title {
    font-weight: 600;
    font-size: 0.92rem;
}