/* Global Styles */
html, body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #141414 !important;
}

/* Sidebar Styles */
.sidebar {
    background-color: #0f0f0f;
    height: 100vh;
    width: 75px;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
}

.nav {
    height: 100%;
}

.logo {
    width: 32px;
    height: 32px;
}

.nav-link {
    color: #4a4a4a;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem auto;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background-color: #1a1a1a;
    color: #fff;
}

.nav-link i {
    font-size: 1.2rem;
}

.profile-link {
    margin-top: 1rem;
}

.profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

/* Main Content Styles */
.main-content {
    padding: 2rem;
}

/* Button Styles */
.btn-primary {
    background-color: #2b89ff;
    border: none;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #1a7bff;
}

.btn-filter {
    background-color: #242424;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-filter:hover, .btn-filter.active {
    background-color: #1a1a1a;
}

.btn-filter i {
    margin-right: 5px;
}

/* Video Feed Styles */
.video-feed {
    position: relative;
    width: 100%;
    height: 400px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

#localVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1a1a1a;
    border-radius: 12px;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.message-box {
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-box i {
    font-size: 1.2rem;
    color: #666;
}

/* Counter Styles */
#onlineCount {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.text-muted {
    color: #666 !important;
    font-size: 0.9rem;
}

/* Chat Box Styles */
.chat-box {
    background-color: #1a1a1a;
    border-radius: 15px;
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.chat-message-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    height: 100%;
    gap: 10px;
}

.chat-message-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.chat-message-placeholder span {
    font-size: 0.9rem;
    max-width: 200px;
}

.chat-input {
    display: flex;
    gap: 10px;
    margin-top: auto;
    background-color: #242424;
    padding: 8px;
    border-radius: 25px;
}

.chat-input input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 15px;
    outline: none;
}

.chat-input input::placeholder {
    color: #666;
}

.chat-input input:disabled {
    cursor: not-allowed;
}

.send-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #2b89ff;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:disabled {
    background-color: #1a1a1a;
    color: #666;
    cursor: not-allowed;
}

.send-btn:not(:disabled):hover {
    background-color: #1a7bff;
}

/* Add some spacing utilities */
.mt-auto {
    margin-top: auto !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* Ensure the video controls stay visible */
.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.remote-video-container {
    background: rgba(0, 0, 0, 0.2);
    min-height: 200px;
    position: relative;
}

#remoteVideo {
    object-fit: cover;
}

.bottom-stats-panel {
    background: rgba(0, 0, 0, 0.4);
}

.logout-popup {
    display: none;
    position: fixed;
    right: 80px;
    bottom: 100px;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.logout-popup.show {
    display: block;
}

.logout-content {
    text-align: center;
    color: white;
}

.logout-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.logout-button {
    background: none;
    border: none;
    color: #4a4a4a;
    padding: 8px 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.logout-button:hover {
    color: #fff;
}

/* Optional: Add a small arrow at the bottom */
.logout-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2a2a2a;
}

.letter-avatar {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

#profileModalImage.letter-avatar {
    width: 100px;
    height: 100px;
    font-size: 40px;
}

/* Avatar and Profile Modal Styles */
.profile-modal-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

#profileModalImage {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.letter-avatar {
    background-color: #4a5568;
    color: white;
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dark Modal Styles */
.modal-content.bg-dark {
    background-color: #1a1a1a !important;
}

.modal-header {
    border-bottom-color: #2d2d2d !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Responsive Adjustments */
/* @media (max-width: 768px) {
    .col-4 {
        width: 100%;
    }

    .main-content {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
} */