/* ==========================================================================
   aiClassrooms - Online Classroom Engine Stylesheet (style-online-class.css)
   Clean, hardware-accelerated, responsive styles for WebRTC virtual classroom
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Animations & Keyframes
   -------------------------------------------------------------------------- */
@keyframes ocPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.4;
    }
}

@keyframes ocSpeakingGlow {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4), 0 4px 20px rgba(0, 0, 0, 0.6);
        border-color: #10b981;
    }
    50% {
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.8), 0 6px 24px rgba(16, 185, 129, 0.35);
        border-color: #34d399;
    }
}

@keyframes ocWaveBar {
    0%, 100% {
        height: 4px;
    }
    50% {
        height: 14px;
    }
}

/* --------------------------------------------------------------------------
   2. Classroom Container & Stages
   -------------------------------------------------------------------------- */
#onlineClassContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0b0f19;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#onlineClassHeader {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

/* Video Stage Grid */
.oc-video-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px 86px 10px;
    box-sizing: border-box;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* Educator Main Stage Tile */
#teacherVideoTile {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Active Speaker Halo */
.oc-speaking-active {
    animation: ocSpeakingGlow 1.6s infinite ease-in-out !important;
}

/* Video Stream Element */
.oc-video-stream {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0b0f19;
}

/* Interactive Student Tiles */
.oc-interactive-student-tile {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

/* Student Avatar / Off-Camera Placeholder */
.student-avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 12px;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   3. Tile Corner Controls, Fit Buttons & Mic Indicators
   -------------------------------------------------------------------------- */
/* Fit / Fill Screen Toggle Button */
.oc-tile-fit-toggle-btn {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    padding: 0;
    transition: background 0.18s ease, transform 0.15s ease;
}

.oc-tile-fit-toggle-btn:hover {
    background: rgba(51, 65, 85, 0.95);
    transform: scale(1.08);
}

.oc-tile-fit-toggle-btn:active {
    transform: scale(0.95);
}

/* Dismiss / Close Tile Button */
.oc-tile-quick-dismiss-btn {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    padding: 0;
    transition: background 0.18s ease, transform 0.15s ease;
}

.oc-tile-quick-dismiss-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    transform: scale(1.08);
}

/* Tile Bottom-Right Mic Button & Wave Stack */
.oc-tile-mic-stack {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 6;
}

/* Dynamic Speaking Wave (Sound Bar Visualizer) */
.oc-speaking-wave,
.teacher-speaking-wave {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2.5px;
    height: 16px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.oc-speaking-wave span,
.teacher-speaking-wave span {
    display: inline-block;
    width: 2.5px;
    height: 6px;
    background: #10b981;
    border-radius: 2px;
    animation: ocWaveBar 0.9s infinite ease-in-out;
}

.oc-speaking-wave span:nth-child(2),
.teacher-speaking-wave span:nth-child(2) {
    animation-delay: 0.18s;
}

.oc-speaking-wave span:nth-child(3),
.teacher-speaking-wave span:nth-child(3) {
    animation-delay: 0.36s;
}

/* Circular 28px Quick-Mute / Mic Status Buttons */
.oc-tile-quick-mute-btn,
.oc-tile-self-mic-btn,
.oc-tile-mic-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
}

.oc-tile-quick-mute-btn:hover,
.oc-tile-self-mic-btn:hover,
.oc-tile-mic-btn:hover {
    transform: scale(1.08);
}

.oc-tile-quick-mute-btn:active,
.oc-tile-self-mic-btn:active,
.oc-tile-mic-btn:active {
    transform: scale(0.95);
}

.oc-mic-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   4. Status Badges & Indicators
   -------------------------------------------------------------------------- */
/* Hand Raised Indicators */
.oc-student-hand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    color: #1e293b;
    font-size: 0.85rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    animation: ocPulse 1.8s infinite ease-in-out;
}

/* Pulsing Status Dot */
.oc-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    display: inline-block;
    animation: ocPulse 1.5s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   5. Full Stage, Dock, Chat Drawer & Media Control Rules (Transferred from JS)
   -------------------------------------------------------------------------- */
/* Mobile Video Native Controls & Big Play Button Suppression Shield */
            #webrtcClassStage video::-webkit-media-controls,
            #webrtcClassStage video::-webkit-media-controls-enclosure,
            #webrtcClassStage video::-webkit-media-controls-panel,
            #webrtcClassStage video::-webkit-media-controls-play-button,
            #webrtcClassStage video::-webkit-media-controls-start-playback-button,
            video.oc-video-stream::-webkit-media-controls,
            video.oc-video-stream::-webkit-media-controls-enclosure,
            video.oc-video-stream::-webkit-media-controls-panel,
            video.oc-video-stream::-webkit-media-controls-play-button,
            video.oc-video-stream::-webkit-media-controls-start-playback-button {
                display: none !important;
                -webkit-appearance: none !important;
                opacity: 0 !important;
                pointer-events: none !important;
            }

            /* Responsive Stage Grid Layout (1, 2, 3, 4 participants) */
            .oc-video-grid {
                flex: 1;
                width: 100%;
                height: 100%;
                min-height: 0;
                overflow: hidden;
                box-sizing: border-box;
                padding: 10px 10px 86px 10px !important; /* Bottom padding strictly clears the floating dock buttons */
                gap: 8px;
                display: flex;
                flex-direction: column;
            }
            .oc-video-grid.oc-layout-1 {
                display: flex !important;
                flex-direction: column !important;
            }
            .oc-video-grid.oc-layout-1 #teacherVideoTile {
                flex: 1 !important;
                width: 100% !important;
                height: 100% !important;
                min-height: 0 !important;
            }
            .oc-video-grid.oc-layout-1 #interactiveStudentsGrid {
                display: none !important;
            }

            /* 2 tiles: Educator + 1 student -> divided in two vertically, horizontally remain same */
            .oc-video-grid.oc-layout-2 {
                display: flex !important;
                flex-direction: column !important;
                gap: 8px !important;
            }
            .oc-video-grid.oc-layout-2 #teacherVideoTile {
                flex: 1 1 0 !important;
                width: 100% !important;
                height: 50% !important;
                max-height: 50% !important;
                min-height: 0 !important;
            }
            .oc-video-grid.oc-layout-2 #interactiveStudentsGrid {
                flex: 1 1 0 !important;
                width: 100% !important;
                height: 50% !important;
                max-height: 50% !important;
                min-height: 0 !important;
                display: flex !important;
                flex-direction: column !important;
                gap: 8px !important;
            }
            .oc-video-grid.oc-layout-2 #interactiveStudentsGrid .oc-interactive-student-tile {
                flex: 1 !important;
                width: 100% !important;
                height: 100% !important;
                min-height: 0 !important;
            }

            /* 3 tiles: Upper remain half, lower half divided horizontally */
            .oc-video-grid.oc-layout-3 {
                display: flex !important;
                flex-direction: column !important;
                gap: 8px !important;
            }
            .oc-video-grid.oc-layout-3 #teacherVideoTile {
                flex: 1 1 0 !important;
                width: 100% !important;
                height: 50% !important;
                max-height: 50% !important;
                min-height: 0 !important;
            }
            .oc-video-grid.oc-layout-3 #interactiveStudentsGrid {
                flex: 1 1 0 !important;
                width: 100% !important;
                height: 50% !important;
                max-height: 50% !important;
                min-height: 0 !important;
                display: flex !important;
                flex-direction: row !important;
                gap: 8px !important;
            }
            .oc-video-grid.oc-layout-3 #interactiveStudentsGrid .oc-interactive-student-tile {
                flex: 1 !important;
                width: 50% !important;
                height: 100% !important;
                min-width: 0 !important;
                min-height: 0 !important;
            }

            /* 4 tiles: 2x2 grid */
            .oc-video-grid.oc-layout-4 {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                grid-template-rows: 1fr 1fr !important;
                gap: 8px !important;
            }
            .oc-video-grid.oc-layout-4 #teacherVideoTile {
                grid-column: 1 !important;
                grid-row: 1 !important;
                width: 100% !important;
                height: 100% !important;
                min-width: 0 !important;
                min-height: 0 !important;
            }
            .oc-video-grid.oc-layout-4 #interactiveStudentsGrid {
                display: contents !important;
            }
            .oc-video-grid.oc-layout-4 #interactiveStudentsGrid .oc-interactive-student-tile:nth-child(1) {
                grid-column: 2 !important;
                grid-row: 1 !important;
                width: 100% !important;
                height: 100% !important;
                min-width: 0 !important;
                min-height: 0 !important;
            }
            .oc-video-grid.oc-layout-4 #interactiveStudentsGrid .oc-interactive-student-tile:nth-child(2) {
                grid-column: 1 !important;
                grid-row: 2 !important;
                width: 100% !important;
                height: 100% !important;
                min-width: 0 !important;
                min-height: 0 !important;
            }
            .oc-video-grid.oc-layout-4 #interactiveStudentsGrid .oc-interactive-student-tile:nth-child(3) {
                grid-column: 2 !important;
                grid-row: 2 !important;
                width: 100% !important;
                height: 100% !important;
                min-width: 0 !important;
                min-height: 0 !important;
            }

            /* Desktop / Landscape View: Side-by-side balanced tiles to prevent extreme horizontal ribbon distortion */
            @media (min-width: 768px) {
                .oc-video-grid.oc-layout-2 {
                    flex-direction: row !important;
                }
                .oc-video-grid.oc-layout-2 #teacherVideoTile {
                    width: 50% !important;
                    height: 100% !important;
                    max-height: 100% !important;
                }
                .oc-video-grid.oc-layout-2 #interactiveStudentsGrid {
                    width: 50% !important;
                    height: 100% !important;
                    max-height: 100% !important;
                    flex-direction: row !important;
                }
                .oc-video-grid.oc-layout-2 #interactiveStudentsGrid .oc-interactive-student-tile {
                    width: 100% !important;
                    height: 100% !important;
                }

                .oc-video-grid.oc-layout-3 {
                    flex-direction: row !important;
                }
                .oc-video-grid.oc-layout-3 #teacherVideoTile {
                    width: 50% !important;
                    height: 100% !important;
                    max-height: 100% !important;
                }
                .oc-video-grid.oc-layout-3 #interactiveStudentsGrid {
                    width: 50% !important;
                    height: 100% !important;
                    max-height: 100% !important;
                    flex-direction: column !important;
                }
                .oc-video-grid.oc-layout-3 #interactiveStudentsGrid .oc-interactive-student-tile {
                    width: 100% !important;
                    height: 50% !important;
                }
            }

            .oc-interactive-student-tile {
                position: relative;
                width: 100%;
                height: 100%;
                min-width: 0;
                min-height: 0;
                background: #1e293b;
                border-radius: 12px;
                overflow: hidden;
                border: 2px solid #3b82f6;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
                display: flex;
                align-items: center;
                justify-content: center;
                box-sizing: border-box;
                transition: transform 0.2s ease, box-shadow 0.2s ease;
            }
            .oc-interactive-student-tile video {
                width: 100%;
                height: 100%;
                object-fit: cover;
                background: #000;
                pointer-events: none;
            }
            .oc-interactive-student-tile video::-webkit-media-controls,
            .oc-interactive-student-tile video::-webkit-media-controls-start-playback-button,
            .oc-interactive-student-tile video::-webkit-media-controls-play-button {
                display: none !important;
                -webkit-appearance: none !important;
                opacity: 0 !important;
                visibility: hidden !important;
            }

            .oc-meeting-dock,
            #webrtcControlsBar {
                position: absolute;
                bottom: 20px;
                left: 50%;
                transform: translateX(-50%);
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 10px;
                padding: 8px 16px;
                background: rgba(15, 23, 42, 0.88);
                backdrop-filter: blur(16px);
                -webkit-backdrop-filter: blur(16px);
                border: 1px solid rgba(255, 255, 255, 0.15);
                border-radius: 9999px;
                box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
                z-index: 10020;
                transition: opacity 0.3s ease, transform 0.3s ease;
                max-width: calc(100vw - 16px);
                box-sizing: border-box;
                overflow-x: auto;
                overflow-y: hidden;
                scrollbar-width: none;
                -ms-overflow-style: none;
                touch-action: pan-x;
            }
            @media (max-width: 480px) {
                .oc-meeting-dock,
                #webrtcControlsBar {
                    bottom: 12px;
                    gap: 8px;
                    padding: 6px 10px;
                    max-width: calc(100vw - 12px);
                }
                .oc-control-btn {
                    width: 44px !important;
                    height: 44px !important;
                }
                .oc-control-btn svg {
                    width: 19px !important;
                    height: 19px !important;
                }
                .oc-control-btn.oc-btn-end {
                    width: 44px !important;
                    height: 44px !important;
                    min-width: 44px !important;
                    max-width: 44px !important;
                }
                .oc-control-btn.oc-btn-end svg {
                    width: 16px !important;
                    height: 16px !important;
                }
                .oc-control-btn.oc-btn-end .oc-end-btn-label {
                    font-size: 7.5px !important;
                }
            }
            .oc-meeting-dock::-webkit-scrollbar,
            #webrtcControlsBar::-webkit-scrollbar {
                display: none;
            }
            .oc-control-btn[style*="display: none"],
            .oc-control-btn[style*="display:none"],
            .oc-control-btn[hidden] {
                display: none !important;
            }
            .oc-control-btn {
                position: relative;
                width: 48px;
                height: 48px;
                border-radius: 50%;
                border: none;
                outline: none;
                padding: 0 !important;
                margin: 0 !important;
                box-sizing: border-box !important;
                background: rgba(255, 255, 255, 0.12);
                color: #ffffff !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                cursor: pointer;
                transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
                flex-shrink: 0;
                user-select: none;
                -webkit-tap-highlight-color: transparent;
                line-height: 1 !important;
            }
            .oc-control-btn svg {
                width: 20px;
                height: 20px;
                display: block;
                flex-shrink: 0;
                pointer-events: none;
                stroke: currentColor;
                fill: none;
            }
            .oc-control-btn svg[fill="currentColor"] {
                fill: currentColor !important;
                stroke: none !important;
            }
            .oc-control-btn:hover {
                background: rgba(255, 255, 255, 0.22);
                transform: translateY(-2px);
            }
            .oc-control-btn:active {
                transform: scale(0.94);
            }
            .oc-control-btn.oc-btn-alert {
                background: #ef4444 !important;
                color: #ffffff !important;
            }
            .oc-control-btn.oc-btn-alert:hover {
                background: #dc2626 !important;
            }
            .oc-control-btn.oc-btn-amber {
                background: #f59e0b !important;
                color: #ffffff !important;
                animation: ocPulseHand 1.8s infinite;
            }
            @keyframes ocPulseHand {
                0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
                50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
            }
            .oc-control-btn.oc-btn-end {
                background: #dc2626 !important;
                color: #ffffff !important;
                width: 48px !important;
                height: 48px !important;
                min-width: 48px !important;
                max-width: 48px !important;
                border-radius: 50% !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                padding: 0 !important;
                gap: 1px !important;
                flex-shrink: 0 !important;
                box-sizing: border-box !important;
                overflow: hidden !important;
            }
            .oc-control-btn.oc-btn-end:hover {
                background: #b91c1c !important;
            }
            .oc-control-btn.oc-btn-end svg {
                width: 17px !important;
                height: 17px !important;
                margin: 0 !important;
                padding: 0 !important;
                display: block !important;
            }
            .oc-control-btn.oc-btn-end .oc-end-btn-label {
                display: block !important;
                font-size: 8.5px !important;
                font-weight: 700 !important;
                line-height: 1 !important;
                color: #ffffff !important;
                text-transform: uppercase !important;
                letter-spacing: 0.3px !important;
                margin: 0 !important;
                padding: 0 !important;
                white-space: nowrap !important;
                pointer-events: none !important;
            }
            @media (hover: hover) and (pointer: fine) {
                .oc-control-btn[data-tooltip]::after {
                    content: attr(data-tooltip);
                    position: absolute;
                    bottom: calc(100% + 10px);
                    left: 50%;
                    transform: translateX(-50%) translateY(4px);
                    background: rgba(15, 23, 42, 0.95);
                    color: #f8fafc;
                    padding: 5px 10px;
                    border-radius: 6px;
                    font-size: 0.75rem;
                    font-weight: 600;
                    white-space: nowrap;
                    pointer-events: none;
                    opacity: 0;
                    transition: opacity 0.15s ease, transform 0.15s ease;
                    border: 1px solid rgba(255, 255, 255, 0.15);
                    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
                    z-index: 10030;
                }
                .oc-control-btn[data-tooltip]:hover::after {
                    opacity: 1;
                    transform: translateX(-50%) translateY(0);
                }
            }
            .oc-btn-badge {
                position: absolute;
                top: -3px;
                right: -3px;
                background: #ef4444;
                color: #ffffff;
                font-size: 0.68rem;
                font-weight: 700;
                min-width: 18px;
                height: 18px;
                padding: 0 4px;
                border-radius: 9px;
                display: none;
                align-items: center;
                justify-content: center;
                border: 2px solid #0f172a;
                box-sizing: border-box;
            }
            .oc-header-hidden {
                opacity: 0 !important;
                pointer-events: none !important;
                transform: translateY(-100%) !important;
            }
            .oc-dock-hidden,
            #webrtcControlsBar.oc-dock-hidden {
                opacity: 0 !important;
                pointer-events: none !important;
                transform: translate(-50%, 20px) !important;
            }
            #onlineClassHeader {
                transition: opacity 0.3s ease, transform 0.3s ease;
            }
            .oc-chat-drawer {
                position: fixed;
                background: #ffffff;
                z-index: 10025;
                display: flex;
                flex-direction: column;
                box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
                transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                overflow: hidden;
            }
            .oc-chat-drawer input#ephemeralChatInput {
                flex: 1 1 auto !important;
                width: 0 !important;
                min-width: 0 !important;
                max-width: none !important;
                margin: 0 !important;
                font-size: 14px !important;
                height: 40px !important;
                padding: 0 12px !important;
                box-sizing: border-box !important;
                border: 1px solid #cbd5e1 !important;
                border-radius: 8px !important;
                background: #ffffff !important;
                color: #1e293b !important;
            }
            .oc-chat-drawer button#sendEphemeralChatBtn {
                flex: 0 0 auto !important;
                width: auto !important;
                min-width: auto !important;
                max-width: none !important;
                margin: 0 !important;
                height: 40px !important;
                padding: 0 18px !important;
                font-size: 14px !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                border-radius: 8px !important;
                background: #2563eb !important;
                color: #ffffff !important;
                border: none !important;
                font-weight: 600 !important;
                box-shadow: none !important;
                transform: none !important;
                cursor: pointer !important;
            }
            @media (min-width: 769px) {
                .oc-chat-drawer {
                    right: 20px;
                    bottom: 84px;
                    width: 360px;
                    height: 520px;
                    max-height: calc(100vh - 120px);
                    border-radius: 16px;
                    border: 1px solid rgba(226, 232, 240, 0.8);
                }
            }
            #onlineClassHeader .oc-control-btn {
                width: 36px !important;
                height: 36px !important;
                min-width: 36px !important;
                max-width: 36px !important;
                border: 1px solid rgba(255, 255, 255, 0.2);
            }
            #onlineClassHeader .oc-control-btn svg {
                width: 17px !important;
                height: 17px !important;
            }
            @media (max-width: 768px) {
                .oc-meeting-dock,
                #webrtcControlsBar {
                    bottom: max(14px, env(safe-area-inset-bottom, 14px));
                    gap: 10px;
                    padding: 6px 14px;
                    max-width: calc(100vw - 12px);
                }
                .oc-control-btn {
                    width: 44px;
                    height: 44px;
                    flex-shrink: 0;
                    min-width: 44px;
                    padding: 0 !important;
                    margin: 0 !important;
                }
                .oc-control-btn svg {
                    width: 20px;
                    height: 20px;
                    display: block;
                    flex-shrink: 0;
                }
                .oc-control-btn.oc-btn-end {
                    width: 44px !important;
                    height: 44px !important;
                    min-width: 44px !important;
                    max-width: 44px !important;
                    padding: 0 !important;
                    border-radius: 50% !important;
                    flex-direction: column !important;
                }
                .oc-control-btn.oc-btn-end svg {
                    width: 15px !important;
                    height: 15px !important;
                }
                .oc-control-btn.oc-btn-end .oc-end-btn-label {
                    display: block !important;
                    font-size: 8px !important;
                    line-height: 1 !important;
                }
                #onlineClassOverlay ~ #toastContainer,
                body:has(#onlineClassOverlay) #toastContainer {
                    top: 56px !important;
                    bottom: auto !important;
                }
                #ocShareDocOptionBtn:hover,
                #ocShareFullScreenOptionBtn:hover {
                    background: rgba(51, 65, 85, 0.9) !important;
                    border-color: rgba(96, 165, 250, 0.6) !important;
                }
                #ocDocPrevBtn:hover:not(:disabled),
                #ocDocNextBtn:hover:not(:disabled) {
                    background: rgba(255, 255, 255, 0.25) !important;
                }
                #ocDocPrevBtn:disabled,
                #ocDocNextBtn:disabled {
                    opacity: 0.35 !important;
                    cursor: not-allowed !important;
                }
                #ocZoomResetBtn:hover {
                    background: rgba(30, 41, 59, 0.95) !important;
                    border-color: rgba(255, 255, 255, 0.4) !important;
                }
                .oc-chat-drawer {
                    left: 0;
                    right: 0;
                    bottom: 0;
                    width: 100%;
                    max-width: 100%;
                    height: 65vh;
                    max-height: 80vh;
                    border-radius: 20px 20px 0 0;
                    padding-bottom: env(safe-area-inset-bottom, 0);
                }
            }
            .oc-interactive-student-tile {
                position: relative;
                width: 160px;
                height: 110px;
                background: #1e293b;
                border-radius: 10px;
                overflow: hidden;
                border: 2px solid #334155;
                box-shadow: 0 4px 10px rgba(0,0,0,0.3);
                display: flex;
                align-items: center;
                justify-content: center;
                transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
                flex-shrink: 0;
            }
            .oc-interactive-student-tile.oc-speaking-active {
                border-color: #22c55e !important;
                box-shadow: 0 0 14px rgba(34, 197, 94, 0.65), 0 4px 10px rgba(0,0,0,0.3) !important;
                transform: scale(1.02);
            }
            #teacherVideoTile.oc-speaking-active {
                border: 2px solid #22c55e !important;
                box-shadow: 0 0 16px rgba(34, 197, 94, 0.5), 0 4px 20px rgba(0,0,0,0.5) !important;
            }
            .oc-speaking-wave {
                display: inline-flex;
                align-items: center;
                gap: 2px;
                height: 10px;
                vertical-align: middle;
            }
            .oc-speaking-wave span {
                display: block;
                width: 2.5px;
                height: 3px;
                background: #22c55e;
                border-radius: 1px;
                animation: ocSpeakingWave 0.6s infinite ease-in-out;
            }
            .oc-speaking-wave span:nth-child(2) { animation-delay: 0.15s; }
            .oc-speaking-wave span:nth-child(3) { animation-delay: 0.3s; }
            @keyframes ocSpeakingWave {
                0%, 100% { height: 3px; }
                50% { height: 10px; }
            }
