/* Bimpacc LMS styles */
:root {
  --bg: #0f1220;
  --elev: #151a2d;
  --card: #171c31;
  --text: #e7e9f3;
  --muted: #9aa4bf;
  --brand: #5b8aff;
  --brand-2: #7aa2ff;
  --danger: #ff6b6b;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: radial-gradient(1200px 500px at 20% -10%, #1d2442, transparent 60%),
 linear-gradient(180deg, #0e1322 0%, #0a0d18 100%);
}

.auth-body { display: grid; place-items: center; padding: 2rem; }
.auth-card { background: var(--card); width: 100%; max-width: 420px; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #222844; }
.brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.brand-inline { display: flex; align-items: center; gap: .5rem; }
.logo { width: 32px; height: 32px; }
.logo.sm { width: 24px; height: 24px; }
.app-title { margin: 0; font-size: 1.375rem; letter-spacing: .2px; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; }
.label { display: block; margin: .75rem 0; font-size: .9rem; }
.input { width: 100%; background: #0e1322; border: 1px solid #2a3254; color: var(--text); padding: .7rem .9rem; border-radius: 10px; outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,138,255,.15); }
.btn { border: 0; border-radius: 10px; padding: .7rem 1rem; cursor: pointer; color: white; background: #2a3254; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.btn.subtle { background: #202746; color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.w-100 { width: 100%; }

.topbar { display: flex; align-items: center; gap: 1rem; background: #0d1120; padding: .75rem 1rem; border-bottom: 1px solid #1f2542; position: sticky; top: 0; z-index: 20; }
.container { max-width: 1100px; margin: 1rem auto; padding: 0 1rem; }
.page-title { margin: .5rem 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card { background: var(--card); padding: 1rem; border-radius: var(--radius); border: 1px solid #222844; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem; }
.card h3 { margin: .25rem 0; font-size: 1.05rem; }
.spacer { flex: 1; }
.userbox { display: flex; align-items: center; gap: .75rem; }

/* Course layout */
.course-layout { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
.sidebar { background: #0d1120; border-right: 1px solid #1f2542; display: flex; flex-direction: column; }
.pad { padding: .75rem 1rem; }
.lessons { padding: .5rem; display: flex; flex-direction: column; gap: .5rem; overflow: auto; }
.lesson { padding: .6rem .75rem; border-radius: 10px; border: 1px solid #21284a; background: #121737; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; }
.lesson.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(91,138,255,.12) inset; }
.lesson small { color: var(--muted); }
.sidebar-footer { margin-top: auto; padding: .75rem; display: grid; gap: .5rem; }

.viewer { padding: 1rem; }
.viewer-header { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.viewer-title { margin: 0; font-size: 1.25rem; }
.viewer-user { color: var(--muted); font-size: .9rem; }
.player-shell { background: #0b0f1e; border: 1px solid #20274a; border-radius: var(--radius); padding: .75rem; }
.player-container { position: relative; aspect-ratio: 16/9; width: 100%; background: #050814; border-radius: 10px; overflow: hidden; }
.player-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Watermark overlay: diagonal repeated */
.wm { position: absolute; inset: 0; pointer-events: none; opacity: .15; background-size: 260px 160px; background-repeat: repeat; filter: blur(.2px) contrast(1.1); mix-blend-mode: lighten; }

.lesson-meta { margin-top: 1rem; }

@media (max-width: 900px) {
  .course-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .viewer { order: 1; }
}

