.meet-body {
    margin: 0;
    background: #ffffff;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
}

.meet-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.meet-header {
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.meet-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meet-logo-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
}

.meet-app-title {
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
}

.meet-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #64748b;
}

.meet-subtitle {
    font-size: 13px;
    color: #475569;
}

.meet-header-center {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
}

.meet-header-right {
    font-size: 12px;
}

.meet-status-pill {
    background: #f8fafc;
    color: #111827;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    padding: 3px 10px;
}

/* Inputs & join button */
.meet-input {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 10px;
    min-width: 140px;
    font-size: 13px;
}

    .meet-input::placeholder {
        color: #94a3b8;
    }

.meet-primary-btn {
    border-radius: 6px;
    border: none;
    padding: 6px 12px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

    .meet-primary-btn:hover {
        background: #1d4ed8;
    }

/* SCREEN SHARE BANNER */
.screen-share-banner {
    height: 38px;
    background: #e0f2fe;
    color: #0c4a6e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 14px;
    border-bottom: 1px solid #bae6fd;
}

.screen-share-text i {
    color: #2563eb;
}

.screen-share-stop-btn {
    border-radius: 999px;
    border: none;
    padding: 6px 14px;
    background: #dc2626;
    color: #fff;
    font-size: 13px;
}

    .screen-share-stop-btn:hover {
        background: #b91c1c;
    }

.meet-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    position: relative;
}

.meet-stage {
    flex: 1;
    margin: 12px 0 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* remote video area */
.meet-remote-wrapper {
    width: 100%;
    max-width: 1800px;
    height: calc(100vh - 170px);
    background: #020617;
    border-radius: 18px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

video {
    background-color: transparent !important;
}

.meet-remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(1) !important;
}

.meet-local-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* AVATARS */
.meet-avatar-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .meet-avatar-badge span {
        width: 80px;
        height: 80px;
        border-radius: 999px;
        background: #2563eb;
        color: #fff;
        font-size: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* profile image inside avatar */
.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    object-fit: cover;
    display: none;
}

/* local self view box */
.meet-local-wrapper {
    position: absolute;
    bottom: 24px;
    right: 30px;
    width: 220px;
    height: 132px;
    border-radius: 16px;
    overflow: hidden;
    background: #111827;
    border: 1px solid #cbd5e1;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.meet-local-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meet-avatar-badge.small span {
    width: 56px;
    height: 56px;
    font-size: 24px;
}

.meet-avatar-badge.small .avatar-img {
    width: 56px;
    height: 56px;
}

/* CHAT PANEL */
.chat-panel {
    width: 380px;
    background: #202124;
    color: white;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #3c4043;
    overflow: hidden;
}

.chat-header {
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3c4043;
    background: #202124;
}

.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 20px;
    background: #202124;
    scroll-behavior: smooth;
}

    .chat-messages::-webkit-scrollbar {
        display: none;
    }

.chat-input-row {
    padding: 16px;
    border-top: 1px solid #3c4043;
    background: #202124;
}

.chat-title {
    font-weight: 600;
    color: #0f172a;
}

.chat-message .chat-user {
    font-weight: 600;
    margin-right: 6px;
}

.chat-message .chat-text {
    color: #334155;
    margin-right: 6px;
}

.chat-message .chat-time {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 6px;
}

.chat-input-row {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-top: 1px solid #e2e8f0;
}

.chat-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    padding: 6px 10px;
    font-size: 13px;
}

.chat-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #2563eb;
    color: #fff;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6264A7;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-content {
    flex: 1;
}

.chat-user {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.chat-time {
    color: #aaa;
    font-size: 11px;
    margin-left: 8px;
}

.chat-bubble {
    margin-top: 4px;
    background: #2b2b2b;
    padding: 10px 14px;
    border-radius: 12px;
    color: white;
    line-height: 1.5;
}

.teams-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #202124;
}

.teams-user {
    font-weight: 600;
    color: white;
    font-size: 13px;
}

.teams-time {
    color: #9ca3af;
    font-size: 11px;
    margin-left: 8px;
}


#chatMessages {
    background: #202124 !important;
    padding: 20px !important;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 180px);
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

    #chatMessages::-webkit-scrollbar {
        display: none; /* Chrome, Edge, Safari */
    }
/* TOOLBAR FIXED */
.meet-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.meet-controls-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 26px;
    background: rgba(255,255,255,0.96);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.ctrl-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    font-size: 23px;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

    .ctrl-btn:hover {
        background: #e2e8f0;
        transform: translateY(-2px);
    }

    .ctrl-btn.end {
        background: #dc2626;
        color: #fff;
    }

    .ctrl-btn.active {
        background: #2563eb;
        color: #ffffff;
    }

/* EMOJI PANEL */
.emoji-panel {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    display: none;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    z-index: 200;
}

.emoji-option {
    font-size: 24px;
    border: none;
    background: transparent;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
}

    .emoji-option:hover {
        background: rgba(0,0,0,0.06);
    }

/* INCOMING POPUP */
.incoming-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 18px;
    width: 300px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    z-index: 999;
    font-size: 15px;
    display: none;
}

.popup-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0f172a;
}

.popup-row {
    margin: 4px 0;
    font-size: 14px;
    color: #334155;
}

.incoming-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-accept,
.btn-reject {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: white;
}

.btn-accept {
    background: #16a34a;
}

    .btn-accept:hover {
        background: #15803d;
    }

.btn-reject {
    background: #dc2626;
}

    .btn-reject:hover {
        background: #b91c1c;
    }

/* Raise hand */
.raise-indicator {
    position: absolute;
    top: 60px;
    left: 5%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    padding: 8px 14px;
    border-radius: 999px;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 300;
    font-size: 14px;
}

.raise-icon {
    font-size: 18px;
}

/* Emoji toast */
.emoji-toast {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.92);
    padding: 8px 14px;
    border-radius: 999px;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 300;
    font-size: 16px;
}

.emoji-toast-icon {
    font-size: 26px;
}

/* Present Overlay */
.present-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

.present-inner {
    width: 100%;
    max-width: 1000px;
    padding: 24px 32px 40px;
    color: #e5e7eb;
}

/* top grey bar */
.present-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    color: #f9fafb;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.present-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.present-stop-top-btn {
    border-radius: 999px;
    border: none;
    padding: 6px 14px;
    background: #ef4444;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

    .present-stop-top-btn:hover {
        background: #dc2626;
    }

/* center card */
.present-center-card {
    margin: 40px auto 0;
    max-width: 640px;
    background: #111827;
    border-radius: 20px;
    padding: 26px 30px 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    text-align: center;
}

.present-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.present-sub {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 22px;
}

.present-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.present-secondary,
.present-primary {
    border-radius: 999px;
    padding: 8px 18px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.present-secondary {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid #6b7280;
}

    .present-secondary:hover {
        background: rgba(55,65,81,0.7);
    }

.present-primary {
    background: #3b82f6;
    color: #fff;
}

    .present-primary:hover {
        background: #2563eb;
    }

/* Mute indicator */
.mute-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(15,23,42,0.85);
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* EQ bars */
.eq-bars {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    z-index: 5;
}

    .eq-bars .bar {
        width: 3px;
        height: 6px;
        background: #4caf50;
        border-radius: 2px;
        transition: height 0.1s ease;
    }

/* GOOGLE MEET STYLE CAPTIONS */
.meet-captions {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.65);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 20px;
    color: #ffffff;
    max-width: 70%;
    backdrop-filter: blur(5px);
    z-index: 900;
}

#captionsText {
    line-height: 1.4;
    font-weight: 500;
}


html, body {
    height: 100% !important;
    overflow: hidden !important;
}

.meet-shell {
    height: 100vh !important;
    overflow: hidden !important;
}

.meet-main {
    height: calc(100vh - 56px) !important;
    overflow: hidden !important;
}

.raise-hand-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 10px 16px;
    border-radius: 25px;
    display: none;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

    .raise-hand-popup.show {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

.meet-remote-wrapper {
    width: 100%;
    height: 100vh;
    max-width: none;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.raise-hand-active {
    background-color: #ffd54f; /* light yellow */
    color: #000;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 213, 79, 0.7);
}

/* ============================
   GOOGLE MEET STYLE ? LEFT FLOATING REACTIONS
   ============================ */
.reaction-stream {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 140px;
    pointer-events: none;
    overflow: visible;
    z-index: 9999;
}

.reaction-item {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: floatUp 2.8s ease-out forwards;
    opacity: 0;
}

.reaction-emoji {
    font-size: 34px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

.reaction-badge {
    background: rgba(255,255,255,0.92);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    font-weight: 600;
}

@keyframes floatUp {
    0% {
        transform: translateY(40px) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(-120px) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-220px) scale(0.9);
        opacity: 0;
    }
}
/* =========================
   Waiting Lobby (Google Meet Style)
========================= */

.waiting-lobby {
    position: absolute;
    inset: 0;
    background: #000000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

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

    .waiting-content h2 {
        margin-top: 25px;
        margin-bottom: 10px;
        font-size: 2rem;
        font-weight: 700;
    }

    .waiting-content p {
        color: #94a3b8;
        font-size: 1rem;
        margin: 0;
    }

.waiting-spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255,255,255,0.15);
    border-top: 5px solid #4285f4;
    border-radius: 50%;
    animation: waitingSpin 1s linear infinite;
    margin: 0 auto;
}

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

.call-ended-screen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.call-ended-card {
    width: 420px;
    max-width: 90%;
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.call-ended-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.call-ended-card h2 {
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.call-ended-text {
    color: #6b7280;
    margin-bottom: 25px;
}

.call-ended-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-primary {
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    cursor: pointer;
}

.btn-secondary {
    border: 1px solid #d1d5db;
    padding: 12px 20px;
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

.btn-secondary {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151; /* <-- add this */
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    min-width: 90px;
}

    .btn-secondary:hover {
        background: #f3f4f6;
    }

#chatMessages::-webkit-scrollbar {
    width: 8px;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 10px;
}

#chatMessages::-webkit-scrollbar-track {
    background: #202124;
}

.chat-toast-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: #202124;
    color: white;
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    z-index: 999999;
    opacity: 0;
    transform: translateX(120%);
    transition: all .3s ease;
}

    .chat-toast-popup.show {
        opacity: 1;
        transform: translateX(0);
    }

.toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #4dabf7;
    margin-bottom: 8px;
}

.toast-body {
    color: white;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

/* ==========================
   TEAMS CHAT UI
========================== */

#chatMessages {
    padding: 20px;
    background: #202124;
}

.teams-msg {
    width: 100%;
    margin-bottom: 25px;
}

    .teams-msg.mine {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .teams-msg.other {
        display: flex;
        justify-content: flex-start;
    }

.teams-user-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.teams-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #6264A7;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teams-user-header {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.teams-user-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
}

.teams-msg-time {
    color: #9ca3af;
    font-size: 12px;
}

.teams-msg-bubble {
    padding: 12px 18px;
    border-radius: 12px;
    max-width: 300px;
    word-break: break-word;
}

    .teams-msg-bubble.other {
        background: #2b2b2b;
        color: white;
    }

    .teams-msg-bubble.mine {
        background: #5b5fc7;
        color: white;
    }

.chat-toast-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 340px;
    background: rgba(32,33,36,.96);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04);
    padding: 14px;
    z-index: 99999;
    opacity: 0;
    transform: translateY(-15px);
    transition: all .25s ease;
}

    .chat-toast-popup.show {
        opacity: 1;
        transform: translateY(0);
    }

/* ===========================
   MICROSOFT TEAMS TOAST
=========================== */

.teams-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 360px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    z-index: 999999;
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: all .25s ease;
}

    .teams-toast.show {
        opacity: 1;
        transform: translateX(0);
    }

.teams-toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.teams-toast-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6264A7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.teams-toast-info {
    flex: 1;
}

.teams-toast-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.teams-toast-subtitle {
    font-size: 12px;
    color: #6b7280;
}

.teams-toast-close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
}

.teams-toast-message {
    padding: 14px 16px;
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
    background: #ffffff;
}

/* ==========================================================================
   PREMIUM DARK THEMING & GLOBAL OVERRIDES
   ========================================================================== */
.meet-body {
    background: #000000 !important;
    color: #f8fafc !important;
}

/* ==========================================================================
   PREJOIN SCREEN NEW CLASS STYLES
   ========================================================================== */
.prejoin-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #090d16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 16px;
    overflow-y: auto;
}

.prejoin-branding {
    text-align: center;
    margin-bottom: 24px;
}

    .prejoin-branding h1 {
        font-size: 2.4rem;
        margin: 0;
        font-weight: 900;
        letter-spacing: 1px;
        color: #ffffff;
        text-transform: uppercase;
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }

    .prejoin-branding p {
        color: #94a3b8;
        margin: 6px 0 0 0;
        font-size: 0.95rem;
        font-weight: 500;
        opacity: 0.8;
    }

.prejoin-card {
    width: 960px;
    max-width: 100%;
    background: #ffffff;
    color: #0f172a;
    border-radius: 28px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.8);
    transition: flex-direction 0.3s ease;
}

.prejoin-preview-panel {
    flex: 1.2;
    background: #020617;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 320px;
}

.prejoin-live-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 0.75rem;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.live-indicator-dot {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
}

.prejoin-video-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    aspect-ratio: 16/9;
}

.prejoin-video {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #000;
    object-fit: cover;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
    transform: scaleX(-1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prejoin-audio-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e293b;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
}

.prejoin-placeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

    .prejoin-placeholder-icon.active-icon {
        background: #2563eb;
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
    }

    .prejoin-placeholder-icon.muted-icon {
        background: #ef4444;
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    }

.prejoin-placeholder-name {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

.prejoin-preview-footer {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .prejoin-preview-footer i {
        color: #fbbf24;
    }

    .prejoin-preview-footer span {
        font-size: 0.8rem;
        color: #64748b;
    }

.prejoin-info-panel {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
}

.prejoin-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.prejoin-input {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-size: 1.05rem;
    margin-bottom: 28px;
    outline: none;
    transition: all 0.3s ease;
    color: #1e293b;
    box-sizing: border-box;
}

    .prejoin-input:focus {
        border-color: #2563eb;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    }

.prejoin-mode-selection {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-bottom: 28px;
}

.prejoin-mode-btn {
    flex: 1;
    padding: 20px 10px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .prejoin-mode-btn i {
        font-size: 1.6rem;
        color: #475569;
        transition: color 0.3s;
    }

    .prejoin-mode-btn .mode-title {
        font-weight: 800;
        font-size: 1rem;
        color: #1e293b;
    }

    .prejoin-mode-btn .mode-desc {
        font-size: 0.75rem;
        color: #94a3b8;
    }

    .prejoin-mode-btn:hover {
        border-color: #cbd5e1;
        transform: translateY(-2px);
    }

    .prejoin-mode-btn.active {
        border-color: #2563eb;
        background: #eff6ff;
    }

        .prejoin-mode-btn.active i {
            color: #2563eb;
        }

        .prejoin-mode-btn.active .mode-desc {
            color: #2563eb;
        }

.prejoin-submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: #2563eb;
    color: white;
    border: none;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

    .prejoin-submit-btn:hover {
        background: #1d4ed8;
        transform: translateY(-2px);
        box-shadow: 0 12px 24px -5px rgba(29, 78, 216, 0.5);
    }

    .prejoin-submit-btn:active {
        transform: translateY(0);
    }

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* 1. Large Devices & Desktops */
@media (min-width: 1025px) {
    .meet-stage {
        margin: 12px 24px 84px;
    }
}

/* 2. Tablet / iPad Devices (Landscape & Portrait) */
@media (max-width: 1024px) {
    .prejoin-card {
        width: 100%;
        max-width: 680px;
        flex-direction: column;
        border-radius: 20px;
    }

    .prejoin-preview-panel {
        padding: 30px;
        min-height: 260px;
    }

    .prejoin-info-panel {
        padding: 30px;
    }

    .prejoin-live-tag {
        top: 16px;
        left: 16px;
    }

    .prejoin-preview-footer {
        bottom: 16px;
        left: 16px;
    }

    .meet-header {
        padding: 0 12px;
    }

    .meet-header-center label {
        display: none;
    }

    /* Keep stage full height minus headers */
    .meet-remote-wrapper {
        height: calc(100vh - 150px);
        margin: 0 12px;
    }

    /* Scale down local video thumbnail */
    .meet-local-wrapper {
        width: 160px;
        height: 106px;
        bottom: 100px;
        right: 20px;
        border-radius: 12px;
    }

    /* Tablet Chat Overlay instead of side-by-side */
    .chat-panel {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 320px;
        height: 100%;
        z-index: 1001;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        display: flex;
    }

    /* Toolbar slightly scaled down */
    .meet-controls-inner {
        gap: 12px;
        padding: 10px 20px;
    }

    .ctrl-btn {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
}

/* 3. Mobile Devices (Portrait) */
@media (max-width: 767px) {
    .prejoin-screen {
        padding: 12px;
        justify-content: flex-start;
    }

    .prejoin-branding {
        margin-top: 10px;
        margin-bottom: 16px;
    }

        .prejoin-branding h1 {
            font-size: 1.8rem;
        }

    .prejoin-card {
        flex-direction: column;
        border-radius: 16px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }

    .prejoin-preview-panel {
        padding: 20px;
        min-height: 200px;
    }

    .prejoin-video-container {
        max-width: 320px;
    }

    .prejoin-live-tag {
        font-size: 0.65rem;
        top: 10px;
        left: 10px;
    }

    .prejoin-preview-footer {
        display: none; /* Hide preview footer on mobile to save vertical space */
    }

    .prejoin-info-panel {
        padding: 20px;
    }

    .prejoin-input {
        padding: 14px;
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .prejoin-mode-selection {
        gap: 10px;
        margin-bottom: 20px;
    }

    .prejoin-mode-btn {
        padding: 12px 8px;
        border-radius: 12px;
    }

        .prejoin-mode-btn i {
            font-size: 1.3rem;
        }

        .prejoin-mode-btn .mode-title {
            font-size: 0.85rem;
        }

        .prejoin-mode-btn .mode-desc {
            display: none; /* Hide minor description text to keep buttons compact */
        }

    .prejoin-submit-btn {
        padding: 14px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Call Interface Adjustments */
    .meet-header {
        height: auto;
        flex-wrap: wrap;
        padding: 8px;
        gap: 6px;
    }

    .meet-header-left {
        width: 100%;
        justify-content: center;
    }

    .meet-header-center {
        width: 100%;
        justify-content: center;
        margin: 4px 0;
    }

    .meet-header-right {
        width: 100%;
        text-align: center;
    }

    .meet-main {
        height: calc(100vh - 80px) !important;
    }

    .meet-remote-wrapper {
        height: calc(100vh - 190px);
        margin: 0 6px;
        border-radius: 12px;
    }

    /* Small floating local video to prevent covering the remote speaker */
    .meet-local-wrapper {
        width: 100px;
        height: 67px;
        bottom: 85px;
        right: 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    /* Full-screen Chat Overlay on mobile */
    .chat-panel {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 1001;
    }

    #chatMessages {
        height: calc(100vh - 140px);
    }

    /* Mobile Toolbar sizing and wraps */
    .meet-controls {
        bottom: 12px;
        width: 95%;
        max-width: 360px;
    }

    .meet-controls-inner {
        gap: 8px;
        padding: 8px 12px;
        border-radius: 20px;
        background: rgba(25, 25, 25, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ctrl-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        background: #2b2b2b;
        color: #ffffff;
    }

        .ctrl-btn:hover {
            background: #3a3a3a;
        }

        .ctrl-btn.end {
            background: #dc2626;
        }

    /* Emoji Panel adjustments for mobile */
    .emoji-panel {
        bottom: 74px;
        padding: 6px 10px;
        max-width: 90%;
    }

    .emoji-option {
        font-size: 20px;
        padding: 4px;
    }

    /* Waiting lobby size */
    .waiting-content h2 {
        font-size: 1.5rem;
    }

    .waiting-content p {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   GOOGLE MEET STYLE MAIN HEADER
   ========================================================================== */
.meet-header {
    height: 64px;
    background: #000000 !important;
    border-bottom: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px !important;
}

    /* When the call is active, ensure header remains visible and styled */
    .meet-header.in-call {
        display: flex !important;
    }

.header-time {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
}

.header-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 12px;
    font-size: 1.1rem;
}

.header-room-code {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.header-info-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

    .header-info-btn:hover {
        color: #ffffff;
    }

.header-participant-badge {
    display: flex;
    align-items: center;
    background: #202124;
    padding: 6px 14px;
    border-radius: 20px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3b82f6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-count {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   GOOGLE MEET STYLE REMOTE VIDEO CARD & STAGE
   ========================================================================== */
.meet-stage {
    margin: 16px 24px 96px !important;
    background: #000000 !important;
    flex: 1;
}

.meet-remote-wrapper {
    height: calc(100vh - 176px) !important;
    background: #1a2c38 !important; /* Premium dark teal-slate background */
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Large Remote Avatar */
.meet-avatar-badge span {
    width: 96px !important;
    height: 96px !important;
    border-radius: 50% !important;
    background: #3c4043 !important; /* Google Meet style dark grey avatar */
    color: #ffffff !important;
    font-size: 36px !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-transform: capitalize;
}

/* Participant Name inside remote video */
.participant-name {
    position: absolute;
    bottom: 6px;
    left: 9px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 8px;
    z-index: 10;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   GOOGLE MEET STYLE BOTTOM BAR & CONTROLS
   ========================================================================== */
.meet-controls {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 84px !important;
    background: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
    z-index: 20 !important;
    transform: none !important;
}

.meet-controls-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.meet-controls-center {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: #1e1f20; /* Dark container pill */
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meet-controls-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* Control buttons general styling */
.ctrl-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #3c4043 !important; /* Muted grey button by default */
    color: #ffffff !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

    .ctrl-btn:hover {
        background: #4f5357 !important;
        transform: translateY(-1px);
    }

    .ctrl-btn:active {
        transform: translateY(0);
    }

/* Mic & Video control group (Dropdown + Icon) */
.control-group {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #3c4043;
    border-radius: 999px;
    padding-left: 6px;
    transition: background 0.2s;
}

    .control-group:hover {
        background: #4f5357;
    }

    .control-group .ctrl-btn {
        background: transparent !important;
    }

        .control-group .ctrl-btn:hover {
            background: rgba(255, 255, 255, 0.1) !important;
        }

.arrow-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 16px;
    transition: color 0.2s;
}

    .arrow-btn:hover {
        color: #ffffff;
    }

/* Active State Warnings (yellow exclamation badge on mic/video) */
.warning-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    background: #fbbf24;
    color: #000000;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #1e1f20;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Red End Call button */
.end-call-pill {
    width: 60px !important;
    background: #ea4335 !important; /* Premium Google Meet Red */
    border-radius: 24px !important;
}

    .end-call-pill:hover {
        background: #f85b4f !important;
    }

/* Active state for toggled buttons (e.g. Blue background) */
.ctrl-btn.active {
    background: #a8c7fa !important; /* Premium light blue active color */
    color: #041e49 !important;
}

    .ctrl-btn.active:hover {
        background: #c2e7ff !important;
    }

/* Small floating local video */
.meet-local-wrapper {
    position: absolute;
    bottom: 20px;
    right: 24px;
    width: 180px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 15;
    background: #111827 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .meet-header {
        padding: 0 12px !important;
        height: 56px;
    }

    .header-divider {
        margin: 0 8px;
    }

    .meet-stage {
        margin: 8px 12px 96px !important;
    }

    .meet-remote-wrapper {
        height: calc(100vh - 168px) !important;
        border-radius: 16px !important;
    }

    .meet-local-wrapper {
        width: 110px;
        height: 73px;
        bottom: 12px;
        right: 12px;
        border-radius: 10px;
        background: #111827 !important;
    }

    .meet-controls {
        height: 80px !important;
        padding: 0 12px !important;
    }

    .meet-controls-center {
        gap: 6px;
        padding: 6px 10px;
    }

    .ctrl-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 15px !important;
    }

    .end-call-pill {
        width: 48px !important;
    }

    .arrow-btn {
        display: none; /* Hide setting arrows on tiny mobile screens to save space */
    }

    .control-group {
        padding-left: 0;
        background: transparent;
    }

        .control-group .ctrl-btn {
            background: #3c4043 !important;
        }

    .meet-controls-right {
        gap: 6px;
    }
}
