/* styles.css - Modern Design System */

:root {
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Theme Palette (HSL) */
    --bg-dark: 224 71% 4%;
    --bg-card: 224 71% 7%;
    --border-glass: 224 40% 20%;
    
    --primary: 250 89% 65%;
    --primary-hover: 250 89% 58%;
    --secondary: 198 93% 60%;
    --secondary-hover: 198 93% 52%;

    --danger: 350 89% 60%;
    --danger-hover: 350 89% 50%;
    --success: 142 70% 50%;
    
    --text-main: 220 20% 95%;
    --text-muted: 220 15% 65%;
    --text-inverse: 224 71% 4%;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: hsl(var(--bg-dark));
    color: hsl(var(--text-main));
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients */
.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsl(var(--primary)) 0%, transparent 80%);
    top: -10%;
    left: -10%;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, hsl(var(--secondary)) 0%, transparent 80%);
    bottom: -5%;
    right: -5%;
}
.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, hsl(var(--danger)) 0%, transparent 80%);
    top: 40%;
    left: 45%;
}

/* UI Layout Core */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.glass {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

/* Header */
.app-header {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    font-size: 26px;
    color: hsl(var(--primary));
    filter: drop-shadow(0 0 8px hsl(var(--primary)/0.5));
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo-text span {
    color: hsl(var(--primary));
}

.header-status .status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.status-badge.offline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.status-badge.offline i { color: #6b7280; }
.status-badge.live {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}
.status-badge.live i {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Views Management */
.view-section {
    display: none;
    flex: 1;
    padding: 40px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}
.view-section.active {
    display: block;
}

/* View 1: Portal Screen */
.portal-hero {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}
.portal-hero h1 {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
}
.gradient-text {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.portal-hero p {
    font-size: 18px;
    color: hsl(var(--text-muted));
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.portal-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.portal-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
}
.hover-lift:hover {
    transform: translateY(-8px);
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}
.teacher-accent {
    background: rgba(99, 102, 241, 0.1);
    color: hsl(var(--primary));
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.student-accent {
    background: rgba(14, 165, 233, 0.1);
    color: hsl(var(--secondary));
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.portal-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}
.portal-card p {
    color: hsl(var(--text-muted));
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    flex: 1;
}

/* Buttons */
.btn {
    font-family: var(--font-primary);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-full {
    width: 100%;
}
.btn-primary {
    background: hsl(var(--primary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    background: hsl(var(--primary-hover));
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: hsl(var(--text-main));
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}
.btn-danger {
    background: hsl(var(--danger));
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.btn-danger:hover {
    background: hsl(var(--danger-hover));
}
.btn-text {
    background: transparent;
    color: hsl(var(--text-muted));
}
.btn-text:hover {
    color: hsl(var(--text-main));
}
.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
}

/* Dashboard View */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.dashboard-header h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 30px;
}
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.card-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-icon {
    color: hsl(var(--primary));
}
.card-body {
    padding: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--text-muted));
    letter-spacing: 0.5px;
}
.form-group input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}
.form-group input:focus {
    border-color: hsl(var(--primary));
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.inline-form {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
    align-items: flex-end;
}
.inline-form .form-group {
    margin-bottom: 0;
    flex: 1;
}

/* Tables */
.student-list-container h4 {
    font-size: 14px;
    font-weight: 700;
    color: hsl(var(--text-muted));
    margin-bottom: 12px;
}
.table-responsive {
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}
.table th, .table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.table th {
    font-weight: 700;
    color: hsl(var(--text-muted));
}
.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.token-badge {
    background: rgba(14, 165, 233, 0.1);
    color: hsl(var(--secondary));
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Student Verification View */
.student-join-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}
.login-card {
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
}
.btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
}
.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.login-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    color: hsl(var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}
.login-header h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}
.login-header p {
    color: hsl(var(--text-muted));
    font-size: 13px;
    line-height: 1.5;
}
.error-msg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
}
.error-msg.hide {
    display: none;
}

/* Live Classroom View */
#view-classroom.view-section {
    padding: 15px !important;
    margin: 0 auto;
    height: calc(100vh - 85px);
    max-height: calc(100vh - 85px);
    overflow: hidden;
    display: none;
}
#view-classroom.view-section.active {
    display: block;
    height: calc(100vh - 105px); /* Leaves a safety margin of 35px at the bottom of the screen */
    max-height: calc(100vh - 105px);
    overflow: hidden;
}

.classroom-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    grid-template-rows: 100%;
    gap: 15px;
    height: 100%;
    position: relative;
}

@media (max-width: 900px) {
    #view-classroom.view-section,
    #view-classroom.view-section.active {
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 10px !important;
        display: block;
    }
    .classroom-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 15px;
    }
    .classroom-drawer {
        height: 480px;
    }
}

.classroom-workspace {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative; /* Context anchor for absolute child .control-hud */
}

.classroom-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    flex-shrink: 0;
}
.classroom-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.room-badge {
    background: rgba(255, 255, 255, 0.08);
    color: hsl(var(--text-muted));
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4px;
}

.recording-status-indicator {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.recording-status-indicator.hide {
    display: none;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    animation: pulse 1.2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.class-timer {
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    color: hsl(var(--text-muted));
}

/* Video Stream Grid */
.video-grid {
    flex: 1 1 0%;
    height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    overflow-y: auto;
    padding-bottom: 80px; /* Space for control HUD */
    align-content: start;
}

.video-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(15, 23, 42, 0.6);
}
.video-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotateY(180deg); /* Mirror effect */
}
/* Disable mirror effect for screenshare */
.video-stream.screenshare {
    transform: rotateY(0deg);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}
.participant-name {
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.participant-status {
    display: flex;
    gap: 6px;
}
.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: hsl(var(--text-muted));
}
.status-icon.active {
    color: #fff;
}
.status-icon.muted {
    color: #ef4444;
}

/* Floating Control HUD */
.control-hud {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}
.hud-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.hud-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.hud-btn.active-state {
    background: #fff;
    color: #0f172a;
}
.hud-btn.active-state.btn-accent-red {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}
.hud-btn.muted-state {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}
.hud-btn.muted-state:hover {
    background: rgba(239, 68, 68, 0.35);
}
.btn-accent-blue {
    color: hsl(var(--secondary));
}
.btn-accent-red {
    color: #ef4444;
}
.btn-danger {
    background: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
    background: #dc2626;
}

/* Collaborative Drawer (Sidebar) */
.classroom-drawer {
    border-radius: var(--radius-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}
.drawer-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.drawer-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px;
    color: hsl(var(--text-muted));
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.drawer-tab.active {
    color: #fff;
    border-bottom: 2px solid hsl(var(--primary));
    background: rgba(255,255,255,0.02);
}

.drawer-content {
    height: calc(100% - 45px); /* Header tabs are 45px, rest goes to content */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-pane {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.tab-pane.active {
    display: flex;
}

/* Chat Tab Layout */
.chat-messages {
    height: calc(100% - 60px); /* Explicitly reserve exactly 60px at the bottom for the input wrapper */
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    animation: chatIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes chatIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.received {
    background: rgba(255,255,255,0.05);
    border-bottom-left-radius: 2px;
    align-self: flex-start;
}
.chat-msg.sent {
    background: hsl(var(--primary));
    color: #fff;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}
.chat-msg-sender {
    font-size: 10px;
    font-weight: 700;
    color: hsl(var(--text-muted));
    margin-bottom: 4px;
}
.chat-msg.sent .chat-msg-sender {
    color: rgba(255,255,255,0.7);
}
.system-message {
    text-align: center;
    font-size: 11px;
    color: hsl(var(--text-muted));
    background: rgba(255,255,255,0.03);
    padding: 6px 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.chat-input-wrapper {
    height: 60px; /* Locked to exactly 60px height */
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.3);
    box-sizing: border-box;
}
.chat-input-wrapper input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 25px;
    padding: 10px 16px;
    color: #fff;
    outline: none;
    font-size: 13px;
}
.chat-input-wrapper input:focus {
    border-color: hsl(var(--primary));
}
.btn-chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: hsl(var(--primary));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.btn-chat-send:hover {
    background: hsl(var(--primary-hover));
}

/* Participants List Tab */
.participants-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
}
.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
}
.participant-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: hsl(var(--primary));
}
.host-item .avatar {
    background: rgba(99, 102, 241, 0.15);
    color: #fbbf24;
}
.name {
    font-size: 13px;
    font-weight: 600;
    display: block;
}
.role {
    font-size: 10px;
    color: hsl(var(--text-muted));
    display: block;
}

.participant-item-actions {
    display: flex;
    gap: 8px;
}
.participant-item-actions button {
    background: transparent;
    border: none;
    color: hsl(var(--text-muted));
    cursor: pointer;
    font-size: 13px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.participant-item-actions button:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.participant-item-actions button.action-mute.muted {
    color: #ef4444;
}
.participant-item-actions button.action-kick:hover {
    color: #ef4444;
}

/* Past Recordings Logs CSS */
.recording-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.recording-card {
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.recording-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.recording-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: monospace;
}
.recording-title {
    font-size: 14px;
    font-weight: 700;
}
.recording-date {
    font-size: 11px;
    color: hsl(var(--text-muted));
}
.recording-actions {
    display: flex;
    gap: 10px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: hsl(var(--text-muted));
}
.empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Utilities */
.mt-6 { margin-top: 24px; }
.hide { display: none !important; }

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.01);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.15);
}

/* Modal Overlay & Passcode UI */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 17, 0.7);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-overlay.hide {
    display: none !important;
}

/* Anti-Scraping & Watermarking Security */
body {
    user-select: none !important;
    -webkit-user-select: none !important;
}

.watermark-overlay {
    position: absolute;
    top: 50px;
    left: 50px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 50px;
    pointer-events: none;
    z-index: 99;
    white-space: nowrap;
    user-select: none;
    transition: top 0.2s linear, left 0.2s linear;
}

/* Universal Viewport Constraints Mode (All Browser Support) */
html.classroom-mode,
body.classroom-mode {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.classroom-mode .app-container {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

body.classroom-mode #view-classroom.view-section.active {
    height: calc(100vh - 100px) !important;
    max-height: calc(100vh - 100px) !important;
    overflow: hidden !important;
    display: block !important;
    box-sizing: border-box !important;
}

