/* Student Portal Workspace Theme (Child-Friendly, Ruled Notebook Slate & Clean Drawer) */
.student-body {
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF6F1 100%);
  color: #1E293B;
}

.student-layout {
  display: flex;
  min-height: 100vh;
}

.student-sidebar {
  width: 265px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #1B6E25 0%, #0E4D1F 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.9rem;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.12);
}

.student-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0.4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  text-decoration: none;
}

.student-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 2px;
}

.student-profile-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  margin: 0.9rem 0;
  font-size: 0.85rem;
}

.student-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.student-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.student-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(2px);
}

.student-nav a.active {
  background: #FDE047;
  color: #0F172A;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.student-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.student-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 30;
}

.student-menu-toggle {
  display: none;
  appearance: none;
  background: #1B6E25;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.student-content {
  padding: 1.5rem;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
}

.student-banner-guest {
  background: linear-gradient(90deg, #EFF6FF 0%, #F0FDF4 100%);
  border: 1.5px solid #93C5FD;
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Interactive Writing Slate */
.slate-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.letter-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 0.4rem;
  max-height: 290px;
  overflow-y: auto;
  padding: 0.35rem;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}

.letter-chip {
  appearance: none;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 0.4rem 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F172A;
  cursor: pointer;
  transition: all 0.14s ease;
}

.letter-chip:hover {
  border-color: #1B6E25;
  background: #F0FDF4;
}

.letter-chip.is-active {
  background: #1B6E25;
  color: #FFFFFF;
  border-color: #14532D;
}

.slate-board-wrap {
  position: relative;
  background: #FFFDF7;
  border: 2px solid #94A3B8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.06);
  touch-action: none;
}

.slate-canvas {
  display: block;
  width: 100%;
  height: 360px;
  cursor: crosshair;
  touch-action: none;
}

.slate-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.75rem 0;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  cursor: pointer;
}

.color-swatch.is-active {
  outline: 2px solid #0F172A;
  outline-offset: 2px;
}

.activity-media-thumb {
  width: 86px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
}

.remark-box {
  background: #FEF9C3;
  border-left: 4px solid #CA8A04;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  margin-top: 0.45rem;
}

@media (max-width: 920px) {
  .slate-grid {
    grid-template-columns: 1fr;
  }
  .student-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
  .student-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }
  .student-sidebar.is-open {
    transform: translateX(0);
  }
  .student-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 55;
  }
  .student-sidebar-backdrop.is-open {
    display: block;
  }
  .student-content {
    padding: 1rem;
  }
}

/* Student Videos In-Page Theater & Grid */
.student-video-theater {
  border: 2px solid #CBD5E1;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}
.student-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  background: #0F172A;
  overflow: hidden;
}
.student-video-iframe,
.student-video-element {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000000;
}
.student-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: #F8FAFC;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}
.student-video-placeholder-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #FDE047;
}
.student-video-card {
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.student-video-card.is-playing {
  border: 2px solid #1B6E25;
  background: #F0FDF4;
  box-shadow: 0 8px 20px rgba(27, 110, 37, 0.12);
}
.student-video-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  margin-bottom: 0.65rem;
  aspect-ratio: 16 / 9;
  background: #0F172A;
}
.student-video-thumb img,
.student-video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
