/* ════════════════════════════════════════════════════════════
   BRAINVEDA — STUDENT-SPECIFIC STYLES (Day 6)
   ════════════════════════════════════════════════════════════ */

/* ── Notification Bell ──────────────────────────────────────── */
.notif-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.notif-bell {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.notif-bell:hover {
  color: #f97316;
  background: rgba(249,115,22,0.1);
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  width: 320px;
  background: #1c1c1e;
  border: 1px solid #2a2a2e;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 9999;
  display: none;
  overflow: hidden;
}
.notif-dropdown.open {
  display: block;
}
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #2a2a2e;
}
.notif-header span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.notif-mark-all {
  background: none;
  border: none;
  color: #f97316;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.notif-mark-all:hover { background: rgba(249,115,22,0.1); }
.notif-list {
  max-height: 320px;
  overflow-y: auto;
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #1f1f22;
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover { background: #232326; }
.notif-item.unread { background: rgba(249,115,22,0.06); }
.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}
.notif-item-msg {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}
.notif-item-time {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
}
.notif-empty {
  padding: 24px 16px;
  text-align: center;
  color: #666;
  font-size: 13px;
}
.notif-loading {
  padding: 16px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

/* ── Student Submenu ───────────────────────────────────────── */
.student-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.student-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, background 0.2s;
}
.student-menu-btn:hover, .student-menu-btn.active {
  color: #f97316;
  background: rgba(249,115,22,0.1);
}
.student-submenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1c1c1e;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  min-width: 180px;
  z-index: 9999;
  display: none;
  overflow: hidden;
}
.student-submenu.open { display: block; }
.student-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.student-submenu a:hover {
  background: rgba(249,115,22,0.08);
  color: #f97316;
}
.student-submenu a i { width: 16px; text-align: center; }

/* ── Profile Page ──────────────────────────────────────────── */
.profile-card {
  background: #1a1a1d;
  border: 1px solid #2a2a2e;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .profile-stats-row { grid-template-columns: repeat(2, 1fr); }
}
.profile-stat {
  background: #1a1a1d;
  border: 1px solid #2a2a2e;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.profile-stat .stat-num {
  font-size: 26px;
  font-weight: 700;
  color: #f97316;
  display: block;
}
.profile-stat .stat-lbl {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  display: block;
}
.profile-form .fg {
  margin-bottom: 16px;
}
.profile-form label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
  font-weight: 500;
}
.profile-form input {
  width: 100%;
  background: #0f0f10;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.profile-form input:focus {
  outline: none;
  border-color: #f97316;
}
.profile-form input[readonly] {
  color: #666;
  cursor: not-allowed;
}
.field-hint {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
  display: block;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
}

/* ── Search Bar ────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: #1a1a1d;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  padding: 0 14px;
  gap: 8px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: #f97316; }
.search-icon { color: #555; font-size: 14px; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  padding: 11px 0;
  font-family: inherit;
}
.search-input::placeholder { color: #555; }
.search-clear {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  display: none;
}
.search-clear:hover { color: #f97316; }

/* ── Content Badges ────────────────────────────────────────── */
.new-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}
.attempted-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99,102,241,0.15);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,0.3);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}
.recommended-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(251,191,36,0.12);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.25);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}
.solved-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(52,211,153,0.12);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.25);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}
.diff-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}
.diff-badge.easy   { background: rgba(52,211,153,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.25); }
.diff-badge.medium { background: rgba(251,146,60,0.12);  color: #fb923c; border: 1px solid rgba(251,146,60,0.25); }
.diff-badge.hard   { background: rgba(239,68,68,0.12);   color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.diff-badge.board        { background: rgba(96,165,250,0.12); color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.diff-badge.competitive  { background: rgba(167,139,250,0.12); color: #a78bfa; border: 1px solid rgba(167,139,250,0.25); }

/* ── DPP Number & Difficulty ───────────────────────────────── */
.dpp-num {
  font-size: 11px;
  font-weight: 700;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}
.dpp-diff-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 4px;
}

/* ── Video Meta Row ────────────────────────────────────────── */
.vc-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.vc-duration, .vc-views {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #888;
}
.vc-duration i { color: #f97316; }
.vc-views i    { color: #60a5fa; }

/* ── Mock Test Actions ─────────────────────────────────────── */
.mock-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ── Helpful Button ────────────────────────────────────────── */
.helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.2);
  color: #34d399;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.helpful-btn:hover {
  background: rgba(52,211,153,0.16);
  border-color: rgba(52,211,153,0.4);
}
.helpful-btn.active {
  background: rgba(52,211,153,0.2);
  border-color: #34d399;
}
.helpful-count { font-size: 12px; color: #888; }

/* ── Doubt Image ───────────────────────────────────────────── */
.doubt-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 10px;
  margin: 12px 0;
  background: #1a1a1d;
}
.featured-doubt {
  border: 1px solid rgba(251,191,36,0.25);
  background: rgba(251,191,36,0.03);
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(251,191,36,0.12);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

/* ── PYQ Year Groups ───────────────────────────────────────── */
.pyq-year-group {
  margin-bottom: 12px;
  border: 1px solid #2a2a2e;
  border-radius: 12px;
  overflow: hidden;
}
.pyq-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #1a1a1d;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.pyq-year-header:hover { background: #1f1f22; }
.pyq-year-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pyq-year-count {
  font-size: 11px;
  background: rgba(249,115,22,0.15);
  color: #f97316;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}
.pyq-year-toggle {
  color: #888;
  font-size: 13px;
  transition: transform 0.25s;
}
.pyq-year-header.open .pyq-year-toggle { transform: rotate(180deg); }
.pyq-year-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 16px;
  background: #141416;
}
.pyq-year-body.collapsed { display: none; }
.pyq-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ── Leaderboard Tabs ──────────────────────────────────────── */
.lb-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.lb-tab-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #2a2a2e;
  background: #1a1a1d;
  color: #888;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.lb-tab-btn.active, .lb-tab-btn:hover {
  background: #f97316;
  color: #fff;
  border-color: #f97316;
}
.my-rank-card {
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(234,88,12,0.06));
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.my-rank-num {
  font-size: 32px;
  font-weight: 800;
  color: #f97316;
  min-width: 48px;
  text-align: center;
}
.my-rank-info { flex: 1; }
.my-rank-name { font-size: 15px; font-weight: 600; color: #fff; }
.my-rank-pts  { font-size: 13px; color: #888; margin-top: 2px; }

/* ── How It Works ──────────────────────────────────────────── */
.hiw-section {
  padding: 60px 0;
}
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
  position: relative;
}
@media (max-width: 768px) {
  .hiw-steps { grid-template-columns: 1fr 1fr; }
  .hiw-arrow { display: none; }
}
@media (max-width: 480px) {
  .hiw-steps { grid-template-columns: 1fr; }
}
.hiw-step {
  text-align: center;
  position: relative;
}
.hiw-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}
.hiw-step h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.hiw-step p {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}
.hiw-arrow {
  position: absolute;
  top: 28px;
  right: -12px;
  font-size: 18px;
  color: #f97316;
  z-index: 2;
  opacity: 0.6;
}

/* ── Recent Uploads ────────────────────────────────────────── */
.recent-uploads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.ru-card {
  background: #1a1a1d;
  border: 1px solid #2a2a2e;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s, border-color 0.18s;
}
.ru-card:hover {
  transform: translateY(-3px);
  border-color: #f97316;
}
.ru-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.ru-note-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f1f22, #16161a);
  font-size: 32px;
}
.ru-info { padding: 10px 12px; }
.ru-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}
.ru-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #2a2a2e;
  background: #1a1a1d;
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.pg-btn:hover, .pg-btn.active {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}
.pg-btn.disabled {
  color: #444;
  pointer-events: none;
  background: #141416;
}
.pg-info {
  font-size: 13px;
  color: #888;
  padding: 0 6px;
}

/* ── Admin field-hint ──────────────────────────────────────── */
.field-hint {
  display: block;
  font-size: 11px;
  color: #555;
  margin-top: 4px;
}

/* ── Pinned Important Date (Task 8) ─────────────────────────── */
.date-item.pinned-date {
  border: 2px solid #f97316;
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(249,115,22,0.07);
  position: relative;
}
.pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f97316;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.date-desc {
  font-size: 12px;
  color: var(--gray, #888);
  margin-top: 4px;
}

/* ── Chapter grouping for videos (Task 5) ───────────────────── */
.chapter-group {
  margin-bottom: 28px;
}
.chapter-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-2, #1a2236);
  border: 1px solid var(--border, #2a3547);
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  transition: background 0.2s;
}
.chapter-group-header:hover {
  background: rgba(249,115,22,0.08);
}
.chapter-group-header h3 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--white, #fff);
}
.chapter-toggle-icon {
  color: #f97316;
  font-size: 14px;
  transition: transform 0.3s;
}
.chapter-group-header.collapsed .chapter-toggle-icon {
  transform: rotate(-90deg);
}
.chapter-group-body {
  border: 1px solid var(--border, #2a3547);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 16px;
  background: var(--navy, #111827);
}
.chapter-group-body.hidden {
  display: none;
}
.chapter-count-pill {
  background: rgba(249,115,22,0.15);
  color: #f97316;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── Notes sort dropdown (Task 6) ───────────────────────────── */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.sort-label {
  color: var(--gray, #888);
  font-size: 13px;
  white-space: nowrap;
}
.sort-select {
  background: var(--navy-2, #1a2236);
  border: 1px solid var(--border, #2a3547);
  color: var(--white, #fff);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.sort-select:focus {
  border-color: #f97316;
}

/* ── Dashboard activity sections (Task 9) ───────────────────── */
.dash-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  padding: 16px 20px;
}
.dash-activity-card {
  background: var(--navy, #111827);
  border: 1px solid var(--border, #2a3547);
  border-radius: 10px;
  padding: 12px;
  transition: border-color 0.2s;
}
.dash-activity-card:hover {
  border-color: #f97316;
}
.dash-activity-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}
.dash-activity-card h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white, #fff);
  margin: 0 0 4px;
  line-height: 1.4;
}
.dash-activity-card p {
  font-size: 11px;
  color: var(--gray, #888);
  margin: 0;
}
.dash-dotd-card {
  background: var(--navy, #111827);
  border: 1px solid var(--border, #2a3547);
  border-left: 4px solid #f97316;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 20px 20px;
}
.dash-dotd-card .dotd-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--white, #fff);
  margin: 8px 0 6px;
}
.dash-next-dates {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-date-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-date-circle {
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(249,115,22,0.15);
  border: 2px solid #f97316;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #f97316;
  line-height: 1.2;
}
.dash-date-info h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white, #fff);
  margin: 0 0 2px;
}
.dash-date-info p {
  font-size: 11px;
  color: var(--gray, #888);
  margin: 0;
}

/* ── Registration Form — Validation & Strength ─────────────── */
.field-error {
  display: none;
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}
.pw-strength-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}
.pw-strength-label {
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}
