@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --surface: rgba(30, 41, 59, 0.7);
    --surface-solid: #1e293b;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.blob-1 { top: -10%; left: -10%; width: 400px; height: 400px; background: var(--primary); }
.blob-2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: var(--secondary); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.glass-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.login-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { max-width: 400px; width: 100%; }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; background: linear-gradient(to right, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.login-header p { color: var(--text-muted); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.form-control { width: 100%; padding: 0.75rem 1rem; border-radius: 8px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); color: var(--text); font-family: 'Inter', sans-serif; transition: all 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); }

.btn { display: inline-flex; justify-content: center; align-items: center; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: none; font-family: 'Inter', sans-serif; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; width: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px var(--primary-glow); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-danger { background: rgba(239, 68, 68, 0.8); color: white; }
.btn-danger:hover { background: var(--danger); }

.error-message { color: var(--danger); text-align: center; margin-top: 1rem; font-size: 0.875rem; display: none; }

.navbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.navbar-brand h2 { font-weight: 700; background: linear-gradient(to right, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.navbar-user { display: flex; align-items: center; gap: 1rem; }

.classes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.class-card { position: relative; overflow: hidden; transition: transform 0.3s ease; }
.class-card:hover { transform: translateY(-5px); }
.class-status { position: absolute; top: 1rem; right: 1rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.status-live { background: rgba(16, 185, 129, 0.2); color: var(--success); border: 1px solid var(--success); animation: pulse 2s infinite; }
.class-content { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.class-content h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.class-content p { color: var(--text-muted); font-size: 0.875rem; }

.classroom-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; height: calc(100vh - 120px); }
@media (max-width: 900px) { .classroom-layout { grid-template-columns: 1fr; height: auto; } }

.video-container { background: #000; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; min-height: 400px; height: 100%; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.video-container video { width: 100%; height: 100%; object-fit: contain; }
.video-container video::-webkit-media-controls, .video-container video::-webkit-media-controls-enclosure, .video-container video::-webkit-media-controls-panel { display: none !important; opacity: 0 !important; }
.fullscreen-btn { font-family: 'Inter', sans-serif; position: absolute; bottom: 1rem; right: 1rem; background: rgba(0, 0, 0, 0.6); color: white; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 0.5rem 1rem; cursor: pointer; z-index: 10; display: none; backdrop-filter: blur(4px); transition: 0.3s; }
.fullscreen-btn:hover { background: rgba(0, 0, 0, 0.9); }
.no-video-message { position: absolute; text-align: center; color: var(--text-muted); padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.controls-bar { margin-top: 1rem; display: flex; gap: 1rem; justify-content: center; }

.attendance-panel { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.attendance-panel h3 { font-size: 1.1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 0.5rem;}
.attendance-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; padding-right: 5px; }
.attendance-list::-webkit-scrollbar { width: 6px; }
.attendance-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.attendance-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; background: rgba(0,0,0,0.2); border-radius: 8px; border: 1px solid var(--border); }
.attendance-item .name { font-weight: 500; font-size: 0.9rem; }
.attendance-item .time { color: var(--text-muted); font-size: 0.75rem; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
