/* Reset & body */
body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #000000; /* black */
    color: #ffffff;
}

/* Top bar: dashboard + logout */
#top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 30px;
    background: #0b0b15; /* dark navy */
    box-shadow: 0 2px 6px rgba(0,0,0,0.7);
    font-size: 20px;
    font-weight: bold;
}

#top-bar a {
    color: #38bdf8;
    text-decoration: none;
    font-size: 16px;
}

/* Second bar: input + platforms */
#status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 30px;
    background: #0d0d1a; /* slightly lighter dark navy */
    border-bottom: 1px solid #111;
}

/* Left side: duration + input */
#status-left {
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: flex-start; /* optional, aligns items to left */
    gap: 5px; /* space between stacked divs */
    font-size: 16px;
}

.status-dot {
    font-size: 20px;
}

/* Right side: platforms */
#status-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.platform-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 12px;
    background: #0b0b15;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
}

.platform-button.live { border: 1px solid #00c853; }
.platform-button.connecting { border: 1px solid #ffab00; }
.platform-button.offline { border: 1px solid #888; }

/* Botrix Chat Overlay */
#botrix-chat-overlay {
    position: fixed;
    top: 170px; /* 100px top bar + 100px status bar */
    left: 0;
    width: 100%;
    height: calc(100vh - 200px); /* fill remaining space */

    background: #000; /* optional, matches theme */
    overflow: hidden;
}

#botrix-chat-overlay iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Global fix for padding/width issues */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Login page wrapper */
.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #0a0a0f;
}

/* Login box */
.login-box {
    background: #111118;
    padding: 40px 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.8);
    max-width: 360px;
    width: 100%;
}

/* Title */
.login-box h2 {
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Inputs */
.login-box input {
    width: 100%;
    padding: 12px 14px;
    margin: 8px 0;
    border-radius: 10px;
    border: 1px solid #222;
    background: #0f0f17;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* Input focus */
.login-box input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    background: #11111a;
}

/* Button */
.login-box button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: #38bdf8;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Button hover */
.login-box button:hover {
    background: #0ea5e9;
    transform: translateY(-1px);
}

/* Error message */
.error {
    color: #ff4d4d;
    margin-top: 12px;
    font-size: 13px;
}

/* Modal overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px); /* 🔥 glass effect */
}

/* Modal box (styled like login-box) */
.modal-content {
    background: #111118;
    padding: 35px 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 8px 30px rgba(0,0,0,0.9);
    text-align: center;
}

/* Title */
.modal-content h2 {
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Close button */
.close {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    transition: 0.2s;
}

.close:hover {
    color: #fff;
}

/* Inputs (same as login) */
.modal-content input {
    width: 100%;
    padding: 12px 14px;
    margin: 8px 0;
    border-radius: 10px;
    border: 1px solid #222;
    background: #0f0f17;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    background: #11111a;
}

/* Button (same as login) */
.modal-content button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: #38bdf8;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-content button:hover {
    background: #0ea5e9;
    transform: translateY(-1px);
}

/* Game results dropdown */
#game-results {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 5px;
    border-radius: 10px;
    background: #0f0f17;
    border: 1px solid #222;
}

#game-results div {
    padding: 10px;
    cursor: pointer;
    transition: 0.15s;
}

#game-results div:hover {
    background: #1a1a26;
}

/* Selected game */
#selected-game {
    margin-top: 8px;
    font-size: 13px;
    color: #38bdf8;
}

.modal-content {
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-60%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Results container */
.results-container {
    display: none; /* hidden initially */
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 8px;
    margin-top: 8px;
    background: #111118; /* matches modal background */
    text-align: left; /* align items to left */
    padding: 4px;
}

.results-container.active {
    display: block;
}

/* Individual result item */
.results-container div {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #222;
    color: #fff;
    transition: background 0.2s;
}

.results-container div:hover {
    background: #333; /* highlight on hover */
}

/* Custom scrollbar for Webkit browsers (Chrome, Edge, Safari) */
.results-container::-webkit-scrollbar {
    width: 8px;
}

.results-container::-webkit-scrollbar-track {
    background: #111118;
    border-radius: 4px;
}

.results-container::-webkit-scrollbar-thumb {
    background: #38bdf8; /* match your blue accent */
    border-radius: 4px;
}

.results-container::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9; /* hover effect */
}

/* Firefox scrollbar */
.results-container {
    scrollbar-width: thin;
    scrollbar-color: #38bdf8 #111118;
}