/* ============================================================
   STUDENT PORTAL STYLES (PORTAIL ÉTUDIANT UNADH)
   ============================================================ */

.student-portal-layout {
  min-height: 100vh;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
}

.student-navbar {
  height: 70px;
  background-color: #004724;
  color: #ffffff;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 71, 36, 0.2);
  position: sticky;
  top: 0;
  z-index: 90;
}

.student-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.student-nav-logo {
  width: 40px;
  height: 44px;
  object-fit: contain;
}

.student-nav-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.student-nav-badge {
  font-size: 0.72rem;
  background-color: #10b981;
  color: #ffffff;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 0.5rem;
}

.student-nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.student-profile-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: var(--radius-full);
}

.student-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #004724;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-portal-container {
  max-width: var(--container-max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Student Portal Sub-Navigation Tabs */
.student-subnav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
  padding-bottom: 2px;
}

.student-subnav-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.student-subnav-btn:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-subtle);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.student-subnav-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 700;
}

/* ============================================================
   DIGITAL STUDENT ID CARD (CARTE D'ÉTUDIANT UNADH)
   ============================================================ */
.student-id-card-wrapper {
  perspective: 1000px;
  max-width: 460px;
  width: 100%;
}

.student-id-card {
  background: linear-gradient(135deg, #00361c 0%, #005a2e 50%, #008744 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 54, 28, 0.35);
  border: 1.5px solid rgba(134, 239, 172, 0.4);
}

.student-id-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.id-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.id-card-univ {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.id-card-logo {
  width: 38px;
  height: 42px;
  object-fit: contain;
}

.id-card-univ-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.id-card-univ-motto {
  font-size: 0.65rem;
  color: #86efac;
  letter-spacing: 0.05em;
}

.id-card-badge-official {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background-color: #fef08a;
  color: #854d0e;
  letter-spacing: 0.05em;
}

.id-card-content {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.id-card-photo {
  width: 85px;
  height: 95px;
  border-radius: 12px;
  background-color: #d1fae5;
  color: #004724;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  border: 2px solid #86efac;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.id-card-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.id-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.id-card-matricule {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #86efac;
  font-weight: 600;
}

.id-card-filiere {
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 500;
}

.id-card-footer {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #d1fae5;
}

/* Grades Transcript Grid */
.grades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.grade-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grade-course-code {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  font-weight: 600;
}

.grade-course-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0b1a11;
  margin: 0.2rem 0 0.75rem;
}

.grade-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-light);
}

.grade-score-pill {
  font-size: 1.15rem;
  font-weight: 800;
  color: #008744;
}

.grade-letter-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Timetable / Schedule View */
.timetable-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.timetable-col {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timetable-day-header {
  font-size: 0.9rem;
  font-weight: 800;
  color: #004724;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #86efac;
}

.timetable-slot {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.65rem;
  font-size: 0.8rem;
}

.timetable-slot-time {
  font-weight: 700;
  color: #166534;
  font-size: 0.75rem;
}

.timetable-slot-title {
  font-weight: 700;
  color: #0b1a11;
  margin-top: 2px;
}

.timetable-slot-room {
  font-size: 0.72rem;
  color: #475569;
  margin-top: 2px;
}
