* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #111111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    width: 100%;
}

.logo-placeholder {
    font-weight: bold;
    font-size: 1.2rem;
    color: #000;
    display: flex;
    align-items: center;
}

.logo-placeholder img {
    height: 40px;
    object-fit: contain;
}

.logo-placeholder a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #0056b3;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Main Container Layout */
.main-container {
    display: flex;
    flex: 1;
    padding: 0 40px 40px 40px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Left Dark Section */
.left-section {
    flex: 2.2;
    background-color: #161616;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.online-status {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    display: inline-block;
}

.participants-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.participant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #0056b3;
    padding: 3px;
    margin-bottom: 15px;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-status {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 14px;
    height: 14px;
    background-color: #2ecc71;
    border: 2px solid #161616;
    border-radius: 50%;
}

.participant-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.participant-role {
    color: #888888;
    font-size: 0.8rem;
}

/* Right Control Section */
.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
}

.right-content-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 60px;
}

.prompt-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 30px;
}

.chat-icon-btn {
    width: 60px;
    height: 60px;
    background-color: #007bff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: background-color 0.2s;
}

.chat-icon-btn:hover {
    background-color: #0056b3;
}

.chat-icon-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.join-btn {
    width: 100%;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.join-btn:hover {
    background-color: #004085;
    text-decoration: none;
}

.join-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Transition Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 22, 22, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #2ecc71;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Generic Modal Overlay Base */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Microphone & Camera Access Modal Style */
.permission-box {
    background-color: #ffffff;
    width: 320px;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: popUpScale 0.3s ease;
}

.permission-body {
    padding: 24px 20px 16px 20px;
}

.permission-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.permission-desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.4;
}

.permission-actions {
    display: flex;
    border-top: 1px solid #dbdbdb;
}

.perm-btn {
    flex: 1;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.perm-btn.cancel {
    color: #007aff;
    border-right: 1px solid #dbdbdb;
}

.perm-btn.cancel:hover {
    background-color: #f2f2f2;
}

.perm-btn.allow {
    color: #007aff;
    font-weight: 600;
}

.perm-btn.allow:hover {
    background-color: #f2f2f2;
}

/* Sign In Page Modal Style with Blue Background and Top-Left Logo */
.signin-box {
    background-color: #007aff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.signin-top-left-logo {
    position: absolute;
    top: 30px;
    left: 40px;
}

.signin-top-left-logo img {
    height: 40px;
    object-fit: contain;
}

.signin-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
}

.signin-logo-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signin-logo-container img {
    height: 45px;
    object-fit: contain;
}

.signin-welcome {
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 25px;
    font-weight: 500;
}

.signin-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 20px;
}

.signin-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    outline: none;
}

.signin-input:focus {
    border-color: #0056b3;
}

.signin-terms {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: left;
}

.signin-terms a {
    color: #0056b3;
    text-decoration: none;
}

.signin-submit-btn {
    width: 100%;
    background-color: #2b70ff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.signin-submit-btn:hover {
    background-color: #1a56db;
}

@keyframes popUpScale {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }
    .left-section {
        padding: 30px 20px;
    }
    .signin-top-left-logo {
        top: 20px;
        left: 20px;
    }
}