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

:root {
  --bg-primary: #050505;
  --bg-secondary: #0d0d0d;
  --bg-card: #151515;
  --color-cyan: #00d4ff;
  --color-orange: #ff9f43;
  --color-text-dim: #b3b3b3;
  --color-white: #ffffff;
  --sidebar-w-slim: 80px;
  --sidebar-w-full: 250px;
  --radius-l: 1.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--color-cyan) #000;
}

body {
  background-color: var(--bg-primary);
  color: var(--color-white);
  min-height: 100vh;
  display: flex;
}

/* Sidebar Wrapper */
.main-wrapper {
  display: flex;
  width: 100%;
}

aside#sidebar-container {
  width: var(--sidebar-w-slim);
  flex-shrink: 0;
  transition: width 0.3s ease;
}

@media (min-width: 769px) {
    aside#sidebar-container:has(.sidebar:hover), 
    aside#sidebar-container:has(.sidebar.active) {
        width: var(--sidebar-w-full);
    }
}

/* Main Content Wrapper */
main.content-area {
  flex: 1;
  padding: 2.5rem 3.5rem;
  background: radial-gradient(circle at 0% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 40%);
  transition: padding 0.3s ease;
}

.top-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.welcome-msg {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  margin-bottom: 2rem;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  grid-column: span 2;
}

/* Card Styles */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-l);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

/* Welcome Back Card */
.welcome-card {
  background: linear-gradient(135deg, #151515, #1d1d1d);
  min-height: 250px;
}

.welcome-card h1 {
  font-size: 2.4rem;
  margin-top: 2rem;
  font-weight: 700;
}

.welcome-card h1 span {
  color: var(--color-cyan);
  display: block;
}

.welcome-card p.semester-track {
  color: var(--color-text-dim);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

.progress-section {
  width: 100%;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 0.8rem;
}

.progress-header span:last-child {
  color: var(--color-cyan);
}

.progress-bar-bg {
  height: 10px;
  background: #252525;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Activity Rings Card */
.activity-card {
  display: flex;
  flex-direction: column;
}

.activity-card h3 {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.rings-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rings-visual {
  position: relative;
  width: 180px;
  height: 180px;
}

.rings-visual svg {
  transform: rotate(-90deg);
}

.ring-circle {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
}

.ring-bg {
  stroke: #1a1a1a;
}

.ring-1 { stroke: #ffffff; } /* Attendance */
.ring-2 { stroke: var(--color-cyan); } /* Lectures */
.ring-3 { stroke: #ff9f43; } /* Assignments */

.rings-legend {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legend-item {
  display: flex;
  flex-direction: column;
}

.legend-item label {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legend-item span {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Status Tiles */
.tile {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 110px;
}

.tile-icon {
  font-size: 1.8rem;
  color: var(--color-cyan);
}

.tile-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Alert Tile */
.alert-tile {
  grid-column: span 1.5; /* Larger for long alerts */
  background: rgba(255, 159, 67, 0.05);
  border: 1px solid rgba(255, 159, 67, 0.1);
}

.alert-tile .tile-icon {
  color: var(--color-orange);
}

.alert-tile h2 {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.alert-tile p {
  color: var(--color-orange);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Next Session */
.session-tile {
  border-left: 4px solid var(--color-cyan);
}

.session-tile h2 {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
}

.session-tile h3 {
  font-size: 1.2rem;
  margin: 0.3rem 0;
}

.session-tile p {
  font-size: 0.8rem;
  color: #888;
}

/* Sidebar Specifics */
.sidebar {
  height: 100vh;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  width: var(--sidebar-w-slim);
  left: 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease-in-out;
  z-index: 9999;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
}

.sidebar:hover, .sidebar.active {
  width: var(--sidebar-w-full);
}

/* For mobile: hidden by default */
@media (max-width: 768px) {
    #sidebar.sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-w-full);
    }
    #sidebar.sidebar.active {
        transform: translateX(0);
    }
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
}

.logo-icon {
  color: var(--color-white);
  min-width: var(--sidebar-w-slim);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.logo-icon i, .logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.sidebar:hover .logo-text, .sidebar.active .logo-text {
    opacity: 1;
    visibility: visible;
}

.nav-icons {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nav-icons a {
  color: #888;
  height: 52px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  width: 100%;
  position: relative;
  text-decoration: none;
}

.nav-icons a i, .nav-icons a svg {
    min-width: var(--sidebar-w-slim);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: min-width 0.3s ease;
}

.sidebar:hover .nav-icons a i, 
.sidebar:hover .nav-icons a svg,
.sidebar.active .nav-icons a i,
.sidebar.active .nav-icons a svg {
    min-width: 65px; /* Decrease gap on open */
}

/* Ensure SVG icons have visibility */
.nav-icons a svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.link-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: opacity 0.2s;
    color: #999;
}

.sidebar:hover .link-label, .sidebar.active .link-label {
    opacity: 1;
    visibility: visible;
}

.nav-icons a.active, .nav-icons a:hover {
  color: var(--color-cyan);
}

.nav-icons a.active i, .nav-icons a.active svg {
    color: var(--color-cyan);
}

.nav-icons a.active .link-label {
    color: var(--color-cyan);
}

.nav-icons a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--color-cyan);
    box-shadow: 0 0 15px var(--color-cyan);
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2rem;
  width: 100%;
}

.user-pfp-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    cursor: pointer;
}

.pfp-small {
  width: 32px;
  height: 32px;
  min-width: 32px; /* Fix distortions */
  height: 32px;
  border-radius: 50%;
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto; /* Center when slim */
  transition: all 0.3s ease;
  object-fit: cover;
}

/* Specific centering logic for PFP in slim vs full */
.user-pfp-container .pfp-wrapper {
    min-width: var(--sidebar-w-slim);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.sidebar:hover .pfp-wrapper, .sidebar.active .pfp-wrapper {
    min-width: 65px; /* Sync with nav icons gap reduction */
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    margin-right: 1.5rem;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
}

.close-sidebar {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #444;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .close-sidebar {
        display: block;
    }
}

/* Responsive Table for Admin */
.admin-table-container {
  margin-top: 3rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 1.2rem;
  border-bottom: 1px solid #222;
}

th {
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.75rem;
}

input.admin-input {
  background: #111;
  border: 1px solid #333;
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  width: 100%;
}

button.save-btn {
  background: var(--color-cyan);
  border: none;
  color: black;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s;
}

button.save-btn:hover {
  opacity: 0.8;
}

/* Shimmer Loading */
.loading-shimmer {
  background: linear-gradient(90deg, #151515 25%, #252525 50%, #151515 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Lesson Page Layout (Three-Column Feel) */
.lesson-page {
    padding: 2rem 4rem;
}

.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.lesson-header .header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lesson-info .track-name {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--color-cyan);
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.lesson-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

.terminal-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 320px;
}

.terminal-search i {
    color: var(--color-cyan);
    font-size: 0.9rem;
}

.terminal-search input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-family: monospace;
    font-size: 0.9rem;
}

.lesson-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    transition: all 0.5s ease;
}

/* Theater Mode Styling */
.lesson-grid.theater-mode {
    grid-template-columns: 1fr;
}

.lesson-grid.theater-mode .module-content {
    margin-top: 3rem;
    height: auto;
}

.lesson-grid.theater-mode .video-container {
    aspect-ratio: 21 / 9; /* Cinematic aspect */
}

/* Video Player */
.video-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-container {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 1.2rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-left, .controls-right {
    display: flex;
    gap: 1rem;
}

.player-btn {
    background: #111;
    border: 1px solid #222;
    color: #ccc;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.player-btn:hover {
    background: #222;
    color: white;
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.theater-btn {
    background: rgba(255, 255, 255, 0.05);
}

/* Module Sidebar (Right) */
.module-content {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.module-content h3 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.module-scroll {
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem;
}

.module-scroll::-webkit-scrollbar {
    width: 4px;
}
.module-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.module-scroll::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.module-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.module-header-card {
    background: #202020;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    position: relative;
    border-left: 4px solid var(--color-cyan);
    margin-bottom: 1rem;
}

.module-header-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: white;
    margin-bottom: 0.2rem;
}

.module-header-card p {
    font-size: 0.7rem;
    color: var(--color-cyan);
    font-weight: 600;
    text-transform: uppercase;
}

.lecture-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lecture-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.lecture-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lecture-item.current {
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.lecture-play {
    color: var(--color-white);
    font-size: 1.2rem;
    opacity: 0.6;
}

.lecture-item.current .lecture-play {
    color: var(--color-white);
    opacity: 1;
}

.lecture-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #eee;
    line-height: 1.4;
}

.lecture-duration {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.2rem;
}

.view-more-btn {
    width: 100%;
    background: transparent;
    border-top: 1px solid #222;
    border-bottom: none;
    border-left: none;
    border-right: none;
    color: var(--color-cyan);
    padding: 1.2rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.view-more-btn:hover {
    color: white;
}

/* Assignment Hub Layout */
.assignment-hub {
    padding: 2rem 4rem;
}

.assignment-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.active-task-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.task-badge {
    background: #e67e22; /* Orange for Active Task */
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.task-icon {
    background: rgba(0, 212, 255, 0.05);
    color: var(--color-cyan);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.active-task-card h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
}

.task-section {
    margin-bottom: 2rem;
}

.task-section h4 {
    color: var(--color-cyan);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.task-section p {
    color: #888;
    line-height: 1.6;
    font-size: 1rem;
}

.task-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-steps li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #ccc;
    font-size: 0.9rem;
}

.task-steps li i {
    color: #2ecc71; /* Green checkmarks */
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

/* Submission Portal (Right) */
.submission-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.submit-box {
    background: rgba(0, 212, 255, 0.02);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.submit-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 1.2rem;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--color-cyan);
}

.submit-btn {
    background: var(--color-cyan);
    color: #000;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.submit-note {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.countdown-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.countdown-timer {
    display: flex;
    gap: 1.5rem;
}

.timer-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.time-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.time-label {
    font-size: 0.65rem;
    color: #555;
    margin-top: 0.3rem;
}

/* Tracking Table */
.tracking-section {
    margin-top: 2rem;
}

.tracking-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.tracking-table-container {
    background: var(--bg-card);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.tracking-table-container table {
    width: 100%;
    border-collapse: collapse;
}

.tracking-table-container th {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
}

.tracking-table-container td {
    padding: 1.5rem;
    border-bottom: 1px solid #222;
    font-size: 0.9rem;
    color: #ccc;
}

.tracking-table-container tr:last-child td {
    border-bottom: none;
}

.cyan-text {
    color: var(--color-cyan);
    font-weight: 700;
}

.feedback-cell {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.loading-cell {
    text-align: center;
    padding: 3rem !important;
    color: #555;
}

/* Report Page Layout */
.report-page {
    padding: 2rem 4rem;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.stats-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.stats-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.stats-main {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 1.5rem;
}

.stats-value {
    font-size: 4.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stats-unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-cyan);
}

.stats-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #222;
    padding-top: 1.5rem;
}

.sub-stat p {
    font-size: 0.65rem;
    color: #555;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.sub-stat span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ccc;
}

.stat-highlight {
    color: var(--color-cyan) !important;
}

/* Attendance Card Specifics */
.attendance-card .stats-main {
    flex-wrap: wrap;
    gap: 1.5rem;
}

.active-badge {
    height: fit-content;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.streak-sub-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.streak-sub-card p {
    font-size: 0.8rem;
    color: #666;
}

.streak-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2ecc71; /* Green for consistency */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.streak-val i {
    color: #e67e22; /* Fire icon color */
    font-size: 1.1rem;
}

/* Chart Container Box */
.chart-container-box {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.trajectory-label {
    font-size: 0.8rem;
    color: #2ecc71;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.canvas-wrapper {
    height: 350px;
    width: 100%;
}

/* Settings Page Layout */
.settings-page {
    padding: 2rem 4rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 1rem;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.settings-nav-item {
    background: transparent;
    border: none;
    color: #888;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.settings-nav-item i {
    font-size: 1.1rem;
}

.settings-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.settings-nav-item.active {
    background: rgba(0, 212, 255, 0.05);
    color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.05);
}

/* Form Styles */
.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.section-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

/* Avatar Selection Grid */
.avatar-selection-area {
    margin-bottom: 3.5rem;
}

.selection-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    gap: 1.5rem;
}

.avatar-option {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 15px;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #000;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.3s;
}

.avatar-option:hover img {
    opacity: 0.9;
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.avatar-option.selected img {
    opacity: 1;
}

.selection-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--color-cyan);
    color: black;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-option.selected .selection-check {
    transform: translate(-50%, -50%) scale(1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-input {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-input label {
    font-size: 0.75rem;
    color: var(--color-cyan);
    font-weight: 700;
    letter-spacing: 0.8px;
    opacity: 0.9;
}

.form-input input, .form-input textarea {
    background: #0d0d0d;
    border: 1px solid #222;
    padding: 1.2rem;
    border-radius: 12px;
    color: white;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
}

.form-input input:focus, .form-input textarea:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.mt-1 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.save-settings-btn {
    margin-top: 3rem;
    background: var(--color-cyan);
    color: black;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.save-settings-btn:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

/* Custom Toggles */
.setting-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid #222;
}

.toggle-info p {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.toggle-info span {
    font-size: 0.8rem;
    color: #666;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-cyan);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
