/* ========================
   MAIN PAGE HEADER
   ======================== */

.main-header {
  background: rgb(6 38 95);
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
  z-index: 1001; /* Ensure header stays above sidebar */
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
}

.header-image {
  max-width: 285px;
  max-height: 65px;
  width: auto;
  height: auto;
  flex-shrink: 0;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-notifications {
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.header-notifications:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-notifications .badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  animation: pulse 2s infinite;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #3498db;
}

.header-user-profile {
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.header-user-profile:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-logout {
  background-color: rgba(231, 76, 60, 0.8);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logout:hover {
  background-color: rgba(231, 76, 60, 1);
  transform: translateY(-1px);
}

.header-text {
  color: white;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.header-logo img {
  width: 28px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.header-content-text {
  flex: 1;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.header-subtitle {
  font-size: 0.8rem;
  margin: 0.2rem 0 0 0;
  opacity: 0.9;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive header styles */
@media (min-width: 768px) {
  .header-content {
    padding-left: 0; /* Remove sidebar alignment on desktop since toggle is in header */
  }
  
  .header-image {
    position: static; /* Reset absolute positioning for desktop */
    transform: none; /* Reset transform for desktop */
    margin-left: 0; /* Reset margin for desktop */
  }
}

@media (max-width: 767px) {
  .main-header {
    height: 70px;
    padding: 0 1rem;
  }
  
  .header-content {
    gap: 0.8rem;
    padding-left: 0; /* Remove sidebar alignment on mobile */
  }
  
  .header-image {
    max-width: 200px;
    max-height: 50px;
    width: auto;
    height: auto;
    position: static; /* Reset absolute positioning for mobile */
    transform: none; /* Reset transform for mobile */
    margin-left: 0; /* Reset margin for mobile */
  }
  
  .header-controls {
    gap: 1rem;
  }
  
  .header-logo {
    width: 35px;
    height: 35px;
  }
  
  .header-logo img {
    width: 24px;
  }
  
  .header-title {
    font-size: 1.2rem;
  }
  
  .header-subtitle {
    font-size: 0.7rem;
  }
  
  .mobile-menu-toggle {
    font-size: 1.3rem;
    padding: 0.4rem;
  }
  
  .header-notifications {
    padding: 0.4rem;
  }
  
  .theme-toggle {
    padding: 0.4rem;
    font-size: 1rem;
  }
  
  .header-user-profile {
    padding: 0.4rem;
  }
  
  .header-logout {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .main-header {
    height: 60px;
    padding: 0 0.75rem;
  }
  
  .header-content {
    gap: 0.6rem;
    padding-left: 0; /* Remove sidebar alignment on small mobile */
  }
  
  .header-image {
    max-width: 150px;
    max-height: 40px;
    width: auto;
    height: auto;
    position: static; /* Reset absolute positioning for small mobile */
    transform: none; /* Reset transform for small mobile */
    margin-left: 0; /* Reset margin for small mobile */
  }
  
  .header-controls {
    gap: 0.75rem;
  }
  
  .header-logo {
    width: 30px;
    height: 30px;
  }
  
  .header-logo img {
    width: 20px;
  }
  
  .header-title {
    font-size: 1rem;
  }
  
  .header-subtitle {
    font-size: 0.65rem;
  }
  
  .mobile-menu-toggle {
    font-size: 1.2rem;
    padding: 0.3rem;
  }
  
  .header-notifications {
    padding: 0.3rem;
  }
  
  .theme-toggle {
    padding: 0.3rem;
    font-size: 0.9rem;
  }
  
  .header-user-profile {
    padding: 0.3rem;
  }
  
  .header-logout {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Dark theme support for header */
[data-theme="dark"] .main-header {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .header-logo {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ========================
   CSS Variables for Theme Support
   ======================== */
:root {
  /* Light Theme Colors - Minimal but Colorful */
  --primary-color: #6366f1;
  --secondary-color: #06b6d4;
  --accent-color: rgb(6 38 95);
  --background-color: #f8fafc;
  --surface-color: #ffffff;
  --sidebar-bg: #f8fafc;
  --navbar-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.08);
  --hover-bg: rgba(52, 73, 94, 0.06);
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --success-color: #10b981;
  --info-color: #3498DB;
  --card-bg: #FFFFFF;
  --card-hover: #F8F9FA;
  --text-disabled: #BDC3C7;
}

/* Dark Theme Colors - Minimalistic */
[data-theme="dark"] {
  --background-color: #1A1D23;
  --surface-color: #25282E;
  --sidebar-bg: #202329;
  --navbar-bg: #25282E;
  --text-primary: #E8EAED;
  --text-secondary: #9AA0A6;
  --border-color: #3C4043;
  --shadow: rgba(0, 0, 0, 0.3);
  --hover-bg: rgba(232, 234, 237, 0.08);
  --card-bg: #25282E;
  --card-hover: #2A2D34;
  --text-disabled: #5A6169;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  transition: all 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* Background animations removed - only particle animations remain in login.html */

/* Utility Classes */
.loading {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Layout Styles */
.sidebar {
  position: fixed;
  left: 0;
  top: 80px; /* Adjusted for header height */
  width: 280px;
  height: calc(100vh - 80px); /* Correct calculation for 80px header */
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Sidebar hidden state for desktop */
.sidebar.sidebar-hidden {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--primary-color);
}

.sidebar-header h2 {
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--text-white);
  padding: 4px;
}

.sidebar-content {
  padding: 1rem 0;
  height: calc(100% - 120px); /* Account for header */
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-content ul {
  list-style: none;
}

.sidebar-content li {
  margin: 0.25rem 0;
}

.sidebar-content a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  margin: 0 0.5rem;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.sidebar-content a::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.5s ease;
}

.sidebar-content a:hover::before {
  left: 100%;
}

.sidebar-content a:hover {
  background-color: var(--hover-bg);
  color: var(--accent-color);
  transform: translateX(4px);
}

.sidebar-content a.active {
  background-color: var(--accent-color);
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.25);
}

.sidebar-content a i {
  width: 20px;
  text-align: center;
}

.badge {
  background-color: var(--danger-color);
  color: var(--text-white);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  margin-left: auto;
}

/* Main Content Area */
.main {
  margin-left: 280px;
  margin-top: 80px;
  height: calc(100vh - 80px);
  background-color: var(--background-color);
  transition: margin-left 0.3s ease;
  overflow: hidden;
}

/* Main content when sidebar is hidden */
.main.sidebar-hidden {
  margin-left: 0;
}

/* Navbar removed for minimal design */

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--hover-bg);
  color: var(--accent-color);
}

.notifications {
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.notifications:hover {
  background-color: var(--hover-bg);
}

.notifications .badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.user-profile:hover {
  background-color: var(--hover-bg);
}

.user-info {
  text-align: right;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.user-role {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.user button {
  background-color: var(--danger-color);
  color: var(--text-white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user button:hover {
  background-color: #B84848;
  transform: translateY(-1px);
}

/* Dashboard Content */
.dashboard-content {
  padding: 0;
  height: calc(100vh - 80px);
  overflow: hidden;
}

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Entrance Animation for Stat Cards */
.quick-stats .stat-card {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease forwards;
}

.quick-stats .stat-card:nth-child(1) { animation-delay: 0.9s; }
.quick-stats .stat-card:nth-child(2) { animation-delay: 1.0s; }
.quick-stats .stat-card:nth-child(3) { animation-delay: 1.1s; }
.quick-stats .stat-card:nth-child(4) { animation-delay: 1.2s; }

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.stat-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
  transition: height 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px var(--shadow);
  background-color: var(--card-hover);
}

.stat-card:hover::after {
  height: 100%;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.stat-icon.blue { background-color: var(--info-color); }
.stat-icon.green { background-color: var(--success-color); }
.stat-icon.yellow { background-color: var(--warning-color); }
.stat-icon.red { background-color: var(--danger-color); }

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Student Profile Section */
.student-profile-section {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.1s forwards;
}

.profile-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    transform: translateX(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) rotate(45deg);
  }
}

.profile-photo-container {
  position: relative;
  flex-shrink: 0;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  transition: all 0.3s ease;
  cursor: pointer;
}

.profile-photo:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  color: white;
  font-size: 0.85rem;
}

.photo-overlay i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.profile-photo-container:hover .photo-overlay {
  opacity: 1;
}

.profile-basic-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
}

.profile-role {
  font-size: 1rem;
  color: var(--text-white);
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

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

.profile-detail label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.profile-detail span {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem;
}

.profile-actions button {
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.profile-actions button:hover {
  background-color: var(--primary-color-dark);
}

.profile-basic-info {
  flex: 1;
  z-index: 1;
}

.student-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.student-id {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.student-program {
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.status-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.status-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.status-badge.active {
  background: var(--success-color);
  border-color: var(--success-color);
}

.status-badge.semester {
  background: var(--info-color);
  border-color: var(--info-color);
}

.profile-details {
  padding: 2rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-color);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: var(--hover-bg);
  transform: translateX(4px);
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-white);
  flex-shrink: 0;
}

.detail-icon.calendar { background-color: var(--info-color); }
.detail-icon.graduation { background-color: var(--success-color); }
.detail-icon.user { background-color: var(--warning-color); }
.detail-icon.building { background-color: var(--danger-color); }
.detail-icon.envelope { background-color: var(--secondary-color); }
.detail-icon.phone { background-color: var(--primary-color); }

.detail-content {
  flex: 1;
}

.detail-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.detail-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.profile-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.profile-btn:hover::before {
  left: 100%;
}

.profile-btn.primary {
  background-color: var(--accent-color);
  color: var(--text-white);
}

.profile-btn.primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.profile-btn.secondary {
  background-color: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.profile-btn.secondary:hover {
  background-color: var(--hover-bg);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.profile-btn.outline {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.profile-btn.outline:hover {
  background-color: var(--accent-color);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ========================
   SIMPLIFIED DASHBOARD STYLES
   ======================== */

.student-info-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--shadow);
  border: 1px solid var(--border-color);
  text-align: center;
}

.student-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.student-basic-info {
  flex: 1;
  text-align: center;
}

.student-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.student-program {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0 0;
}

.student-advisor {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0.5rem 0 0 0;
  font-weight: 500;
}

/* Page Links Section */
.page-links-section {
  margin-top: 2rem;
}

.page-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.page-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px var(--shadow);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--accent-color);
}

.page-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.page-card-content h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Responsive adjustments for minimal dashboard */
@media (max-width: 1200px) {
  .pages-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .pages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .minimal-dashboard {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .welcome-section {
    padding: 0.75rem;
  }
  
  .welcome-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .student-stats {
    gap: 1rem;
  }
  
  .stat-item {
    font-size: 0.75rem;
  }
  
  .pages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .page-card {
    padding: 0.5rem;
    min-height: 70px;
    max-height: 70px;
  }
  
  .page-card-icon {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }
  
  .page-card-content h3 {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .minimal-dashboard {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .welcome-section {
    padding: 0.5rem;
  }
  
  .welcome-section h2 {
    font-size: 1.1rem;
  }
  
  .student-stats {
    gap: 0.75rem;
  }
  
  .stat-item {
    font-size: 0.7rem;
  }
  
  .pages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  
  .page-card {
    padding: 0.4rem;
    min-height: 60px;
    max-height: 60px;
  }
  
  .page-card-icon {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }
  
  .page-card-content h3 {
    font-size: 0.6rem;
  }
}

/* ========================
   MINIMAL DASHBOARD STYLES
   ======================== */

/* Minimal Dashboard Container */
.minimal-dashboard {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
  overflow: hidden;
}

/* Welcome Section */
.welcome-section {
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px var(--shadow);
}

.welcome-section h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.student-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-item i {
  color: var(--accent-color);
  width: 14px;
}

.stat-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Pages Grid - 6 cards per row */
.pages-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  overflow: hidden;
  align-content: start;
}

.page-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 85px;
  max-height: 85px;
}

.page-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

/* Different minimal colors for each card */
.page-card:nth-child(1) .page-card-icon {
  background: linear-gradient(135deg, #3498db, #2980b9); /* Blue */
}

.page-card:nth-child(2) .page-card-icon {
  background: linear-gradient(135deg, #27ae60, #229954); /* Green */
}

.page-card:nth-child(3) .page-card-icon {
  background: linear-gradient(135deg, #e74c3c, #c0392b); /* Red */
}

.page-card:nth-child(4) .page-card-icon {
  background: linear-gradient(135deg, #f39c12, #e67e22); /* Orange */
}

.page-card:nth-child(5) .page-card-icon {
  background: linear-gradient(135deg, #9b59b6, #8e44ad); /* Purple */
}

.page-card:nth-child(6) .page-card-icon {
  background: linear-gradient(135deg, #1abc9c, #16a085); /* Teal */
}

.page-card:nth-child(7) .page-card-icon {
  background: linear-gradient(135deg, #34495e, #2c3e50); /* Dark Gray */
}

.page-card:nth-child(8) .page-card-icon {
  background: linear-gradient(135deg, #e91e63, #ad1457); /* Pink */
}

.page-card:nth-child(9) .page-card-icon {
  background: linear-gradient(135deg, #ff5722, #d84315); /* Deep Orange */
}

.page-card:nth-child(10) .page-card-icon {
  background: linear-gradient(135deg, #607d8b, #455a64); /* Blue Gray */
}

.page-card:nth-child(11) .page-card-icon {
  background: linear-gradient(135deg, #795548, #5d4037); /* Brown */
}

.page-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.page-card:hover .page-card-icon {
  transform: scale(1.1);
}

.page-card-content h3 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.section-title i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0.25rem 0 0 2rem;
}

.view-all-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

/* Quick Actions Section */
.quick-actions-section {
  margin: 2rem 0;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.quick-action-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quick-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--accent-color);
  background: var(--card-hover);
}

.quick-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.6s ease;
}

.quick-action-card:hover::before {
  left: 100%;
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.quick-action-card:hover .action-icon {
  transform: scale(1.1);
}

.action-icon.grades { background: linear-gradient(135deg, #27AE60, #2ECC71); }
.action-icon.payments { background: linear-gradient(135deg, #E74C3C, #EC7063); }
.action-icon.advising { background: linear-gradient(135deg, #3498DB, #5DADE2); }
.action-icon.attendance { background: linear-gradient(135deg, #F39C12, #F7DC6F); }

.action-content {
  flex: 1;
}

.action-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.action-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.action-arrow {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.quick-action-card:hover .action-arrow {
  color: var(--accent-color);
  transform: translateX(4px);
}

/* Recent Activity Section */
.recent-activity-section {
  margin: 2rem 0;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-color);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: var(--hover-bg);
  transform: translateX(4px);
  border-color: var(--accent-color);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.activity-icon.new { background: var(--success-color); }
.activity-icon.payment { background: var(--danger-color); }
.activity-icon.advising { background: var(--info-color); }
.activity-icon.evaluation { background: var(--warning-color); }

.activity-content {
  flex: 1;
}

.activity-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.activity-content p {
  margin: 0 0 0.25rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-disabled);
  font-style: italic;
}

/* Enhanced Dashboard Grid Section */
.dashboard-grid-section {
  margin: 2rem 0;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
}

/* Responsive adjustments for new sections */
@media (max-width: 767px) {
  .quick-actions-section,
  .recent-activity-section {
    margin: 1rem 0;
    padding: 1rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .section-subtitle {
    margin-left: 0;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .quick-action-card {
    padding: 1rem;
  }
  
  .action-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .action-content h3 {
    font-size: 0.9rem;
  }
  
  .action-content p {
    font-size: 0.8rem;
  }
  
  .activity-item {
    padding: 0.75rem;
  }
  
  .activity-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .quick-action-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .action-arrow {
    display: none;
  }
  
  .activity-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Animation enhancements */
.quick-actions-section,
.recent-activity-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.quick-actions-section {
  animation-delay: 0.2s;
}

.recent-activity-section {
  animation-delay: 0.4s;
}

/* Entrance Animation */
.dashboard .card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.dashboard .card:nth-child(1) { animation-delay: 0.1s; }
.dashboard .card:nth-child(2) { animation-delay: 0.2s; }
.dashboard .card:nth-child(3) { animation-delay: 0.3s; }
.dashboard .card:nth-child(4) { animation-delay: 0.4s; }
.dashboard .card:nth-child(5) { animation-delay: 0.5s; }
.dashboard .card:nth-child(6) { animation-delay: 0.6s; }
.dashboard .card:nth-child(7) { animation-delay: 0.7s; }
.dashboard .card:nth-child(8) { animation-delay: 0.8s; }
.dashboard .card:nth-child(9) { animation-delay: 0.9s; }
.dashboard .card:nth-child(10) { animation-delay: 1.0s; }
.dashboard .card:nth-child(11) { animation-delay: 1.1s; }
.dashboard .card:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px var(--shadow);
  min-height: 160px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.6s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px var(--shadow);
  background-color: var(--card-hover);
  border-color: var(--accent-color);
}

.card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent-color);
  position: relative;
  z-index: 1;
}

.card:hover i {
  transform: scale(1.15) rotate(5deg);
  color: var(--primary-color);
  filter: drop-shadow(0 4px 8px rgba(52, 152, 219, 0.3));
}

.card span {
  font-weight: 600;
  font-size: 1rem;
}

/* ========================
   COMPREHENSIVE RESPONSIVE DESIGN
   Mobile-First Approach with Enhanced Breakpoints
   ======================== */

/* Mobile Base Styles (320px+) */
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  
  .main-header {
    height: 70px;
  }
  
  .sidebar {
    transform: translateX(-100%);
    width: 100%;
    z-index: 2000;
    top: 70px; /* Adjusted for mobile header height */
    height: calc(100vh - 70px);
  }
  
  .sidebar.mobile-hidden, .sidebar.sidebar-hidden {
    transform: translateX(-100%);
  }
  
  .sidebar:not(.mobile-hidden), .sidebar:not(.sidebar-hidden) {
    transform: translateX(0);
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  }
  
  .main {
    margin-left: 0;
    margin-top: 70px; /* Adjusted for mobile header */
    height: calc(100vh - 70px);
  }
  
  .main.sidebar-hidden {
    margin-left: 0;
  }
  
  .navbar {
    padding: 0.75rem 1rem;
    height: auto;
    min-height: 60px;
  }
  
  .navbar-left {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  
  .user {
    gap: 0.5rem;
  }
  
  .user-info {
    display: none;
  }
  
  .user button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .theme-toggle {
    padding: 0.4rem;
    font-size: 1rem;
  }
  
  /* Dashboard Content */
  .dashboard-content {
    padding: 1rem;
  }
  
  /* Quick Stats Grid */
  .quick-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .stat-card {
    padding: 1rem;
    min-height: 120px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  /* Profile Section */
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .profile-photo {
    width: 100px;
    height: 100px;
  }
  
  .student-name {
    font-size: 1.5rem;
  }
  
  .student-id {
    font-size: 1rem;
  }
  
  .student-program {
    font-size: 0.9rem;
  }
  
  .status-badges {
    justify-content: center;
  }
  
  .profile-details {
    padding: 1rem;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .detail-item {
    padding: 0.75rem;
  }
  
  .detail-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .detail-label {
    font-size: 0.75rem;
  }
  
  .detail-value {
    font-size: 0.9rem;
  }
  
  .profile-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .profile-btn {
    padding: 0.75rem 1rem;
    justify-content: center;
    font-size: 0.85rem;
  }
  
  /* Dashboard Grid */
  .dashboard {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .card {
    padding: 1.5rem 1rem;
    min-height: 130px;
  }
  
  .card i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .card span {
    font-size: 0.9rem;
  }
  
  /* Show mobile bottom navigation */
  .mobile-bottom-nav {
    display: flex;
  }
  
  .mobile-menu-overlay {
    display: block;
  }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
  .main {
    margin-top: 60px;
    height: calc(100vh - 60px);
  }
  
  .dashboard-content {
    height: calc(100vh - 60px);
    overflow: hidden;
  }
}
  
  .navbar {
    padding: 0.5rem 0.75rem;
  }
  
  .dashboard-content {
    padding: 0.75rem;
  }
  
  /* Removed unused .dashboard-title and .dashboard-subtitle classes */
  .dashboard-content {
    padding: 0.75rem;
  }
  
  /* Removed unused .dashboard-title and .dashboard-subtitle classes */
  
  .quick-stats {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .stat-card {
    padding: 0.75rem;
    min-height: 100px;
  }
  
  .stat-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .stat-value {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .profile-header {
    padding: 1rem;
  }
  
  .profile-photo {
    width: 80px;
    height: 80px;
  }
  
  .student-name {
    font-size: 1.3rem;
  }
  
  .student-id {
    font-size: 0.9rem;
  }
  
  .student-program {
    font-size: 0.8rem;
  }
  
  .profile-details {
    padding: 0.75rem;
  }
  
  .details-grid {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .detail-item {
    padding: 0.5rem;
  }
  
  .detail-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .detail-label {
    font-size: 0.7rem;
  }
  
  .detail-value {
    font-size: 0.8rem;
  }
  
  .profile-actions {
    gap: 0.5rem;
  }
  
  .profile-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .dashboard {
    gap: 0.75rem;
  }
  
  .card {
    padding: 1rem;
    min-height: 110px;
  }
  
  .card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .card span {
    font-size: 0.8rem;
  }


/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .sidebar {
    width: 240px;
    top: 80px;
    height: calc(100vh - 80px);
  }
  
  .sidebar.sidebar-hidden {
    transform: translateX(-100%);
  }
  
  .main {
    margin-left: 240px;
    margin-top: 80px;
  }
  
  .main.sidebar-hidden {
    margin-left: 0;
  }
  
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .dashboard-content {
    padding: 1rem;
  }
  
  /* Removed unused .dashboard-title class */
  
  .quick-stats {
    grid-template-columns: 1fr;
  }
  
  .dashboard {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .profile-header {
    flex-direction: row;
    text-align: left;
  }
  
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Desktop (≥1200px) */
@media (min-width: 1200px) {
  .sidebar {
    width: 280px;
    top: 80px;
    height: calc(100vh - 80px);
  }
  
  .sidebar.sidebar-hidden {
    transform: translateX(-100%);
  }
  
  .main {
    margin-left: 280px;
    margin-top: 80px;
  }
  
  .main.sidebar-hidden {
    margin-left: 0;
  }
  
  .dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 3rem;
  }
  
  .quick-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .dashboard {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* ========================
   ENHANCED MOBILE BOTTOM NAVIGATION
   ======================== */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  display: none;
  justify-content: space-around;
  align-items: center;
  height: 70px;
  z-index: 1000;
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 0 0.5rem;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  min-width: 50px;
  position: relative;
  flex: 1;
  max-width: 80px;
}

.nav-item i {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.nav-item span {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 0 0 3px 3px;
}

.nav-item:hover i,
.nav-item.active i {
  color: var(--primary-color);
  transform: scale(1.15);
}

.nav-item:hover span,
.nav-item.active span {
  color: var(--primary-color);
  font-weight: 600;
}

/* Enhanced Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
}

.mobile-menu-content {
  background: var(--card-bg);
  width: 100%;
  max-height: 70vh;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-color);
  position: relative;
}

.mobile-menu-header::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
}

.mobile-menu-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.close-mobile-menu {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.close-mobile-menu:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
  transform: scale(1.1);
}

.mobile-menu-items {
  padding: 1rem;
  max-height: calc(70vh - 140px);
  overflow-y: auto;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  position: relative;
  border: 1px solid transparent;
}

.mobile-menu-item:hover {
  background: var(--hover-bg);
  border-color: var(--accent-color);
  transform: translateX(4px);
}

.mobile-menu-item i {
  width: 24px;
  font-size: 1.1rem;
  color: var(--accent-color);
  text-align: center;
}

.mobile-menu-item span {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.mobile-menu-item .badge {
  background: var(--danger-color);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  margin-left: auto;
  min-width: 18px;
  text-align: center;
}

.mobile-menu-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--surface-color);
}

.mobile-logout-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--danger-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-logout-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

/* ========================
   RESPONSIVE UTILITIES & PERFORMANCE
   ======================== */

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/* Optimize touch interactions */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  -webkit-touch-callout: none;
}

/* Improve text rendering on mobile */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal scroll */
.main {
  overflow-x: hidden;
}

/* Safe area support for modern mobile devices */
@supports (padding: max(0px)) {
  .mobile-bottom-nav {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
  
  .navbar {
    padding-top: max(1rem, env(safe-area-inset-top));
  }
}

/* Dark theme support for mobile navigation */
[data-theme="dark"] .mobile-bottom-nav {
  background: var(--surface-color);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .mobile-menu-content {
  background: var(--card-bg);
}

/* Focus management for accessibility */
.mobile-menu-item:focus,
.nav-item:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Loading states for better perceived performance */
.page-loading {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
  .sidebar,
  .mobile-bottom-nav,
  .mobile-menu-overlay,
  .navbar {
    display: none !important;
  }
  
  .main {
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav-item,
  .mobile-menu-item {
    border: 1px solid;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 767px) and (orientation: landscape) {
  .main-header {
    height: 60px;
  }
  
  .header-title {
    font-size: 1rem;
  }
  
  .header-subtitle {
    font-size: 0.7rem;
  }
  
  .header-logo {
    width: 40px;
    height: 40px;
  }
  
  .header-logo img {
    width: 30px;
  }
  
  .sidebar {
    top: 60px;
    height: calc(100vh - 60px);
  }
  
  .main {
    margin-top: 60px;
  }
  
  .mobile-bottom-nav {
    height: 60px;
  }
  
  .nav-item {
    padding: 0.3rem;
  }
  
  .nav-item span {
    font-size: 0.6rem;
  }
  
  .main {
    padding-bottom: 70px;
  }
  
  .navbar {
    min-height: 50px;
    padding: 0.5rem 1rem;
  }
}

/* Very wide screens */
@media (min-width: 1600px) {
  .sidebar {
    width: 300px;
    top: 80px;
    height: calc(100vh - 80px);
  }
  
  .main {
    margin-left: 300px;
    margin-top: 80px;
  }
  
  .dashboard-content {
    max-width: 1600px;
    margin: 0 auto;
  }
}

/* Additional mobile navigation enhancements */
@media (max-width: 480px) {
  .mobile-bottom-nav {
    height: 65px;
  }
  
  .nav-item {
    padding: 0.4rem;
    min-width: 45px;
  }
  
  .nav-item i {
    font-size: 1.1rem;
  }
  
  .nav-item span {
    font-size: 0.65rem;
  }
  
  .main {
    padding-bottom: 75px;
  }
  
  .mobile-menu-content {
    max-height: 75vh;
  }
  
  .mobile-menu-items {
    max-height: calc(75vh - 140px);
  }
}

/* Dark theme support for mobile navigation */
[data-theme="dark"] .mobile-bottom-nav {
  background: var(--card-bg);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .mobile-menu-content {
  background: var(--card-bg);
}

[data-theme="dark"] .mobile-menu-header {
  background: var(--surface-color);
}

[data-theme="dark"] .mobile-menu-footer {
  background: var(--surface-color);
}

@media (max-width: 1024px) {
  .main {
    margin-left: 0;
    margin-top: 70px;
    height: calc(100vh - 70px);
  }
}
  
  /* Quick Stats Grid */
  .quick-stats {
    grid-template-columns: 1fr;
  }
  
  /* Student Profile Mobile Styles */
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .profile-photo {
    width: 100px;
    height: 100px;
  }
  
  .student-name {
    font-size: 1.5rem;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .profile-details {
    padding: 1.5rem;
  }
  
  .profile-actions {
    flex-direction: column;
  }
  
  .profile-btn {
    justify-content: center;
  }
  
  .dashboard {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .card {
    padding: 1.5rem 1rem;
    min-height: 140px;
  }
  
  .card i {
    font-size: 2rem;
  }


@media (max-width: 480px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card {
    padding: 1rem;
    min-height: 120px;
  }
  
  .card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .card span {
    font-size: 0.9rem;
  }
  
  /* Student Profile Small Mobile Styles */
  .profile-header {
    padding: 1rem;
  }
  
  .profile-photo {
    width: 80px;
    height: 80px;
  }
  
  .student-name {
    font-size: 1.25rem;
  }
  
  .student-id, .student-program {
    font-size: 0.9rem;
  }
  
  .status-badges {
    justify-content: center;
  }
  
  .detail-item {
    padding: 0.75rem;
  }
  
  .detail-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .detail-label {
    font-size: 0.75rem;
  }
  
  .detail-value {
    font-size: 0.9rem;
  }
}

/* Page Content Styles */
.page-content {
  display: none;
  padding: 2rem;
  animation: fadeInContent 0.5s ease;
}

.page-content.active {
  display: block;
}

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

.page-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Profile Page Styles */
.profile-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
}

.profile-avatar {
  position: relative;
  margin-bottom: 1.5rem;
}

.profile-avatar i {
  color: var(--accent-color);
}

.change-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
}

.profile-info h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.student-id, .program {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
}

.profile-stats .stat {
  text-align: center;
}

.profile-stats .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.profile-stats .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.profile-details {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px var(--shadow);
}

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

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--surface-color);
  color: var(--text-primary);
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background: #2980B9;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background: #2C3E50;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.btn-outline:hover {
  background: var(--accent-color);
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
}

.btn-link:hover {
  background: var(--hover-bg);
}

/* Grades Page Styles */
.cgpa-overview {
  margin-bottom: 2rem;
}

.cgpa-card {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  color: white;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
}

.cgpa-main {
  text-align: center;
}

.cgpa-value {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.cgpa-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

.cgpa-details {
  display: flex;
  gap: 2rem;
}

.cgpa-details .detail-item {
  text-align: center;
}

.cgpa-details .label {
  display: block;
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.cgpa-details .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
}

.grade-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--surface-color);
  border-radius: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.filter-group select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-primary);
}

.grade-summary {
  display: flex;
  gap: 2rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.grades-section h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.grades-table-container {
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
}

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

.grades-table th,
.grades-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.grades-table th {
  background: var(--surface-color);
  font-weight: 600;
  color: var(--text-primary);
}

.grades-table td {
  color: var(--text-secondary);
}

.grade {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.grade-a {
  background: #E8F5E8;
  color: #27AE60;
}

.grade-a-minus {
  background: #E8F5E8;
  color: #229954;
}

.grade-b-plus {
  background: #FFF3E0;
  color: #F39C12;
}

.grade-b {
  background: #FFF3E0;
  color: #E67E22;
}

.grade-b-minus {
  background: #FFEBEE;
  color: #E74C3C;
}

.status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status.completed {
  background: #E8F5E8;
  color: #27AE60;
}

.status.ongoing {
  background: #E3F2FD;
  color: #2196F3;
}

.status.pending {
  background: #FFF3E0;
  color: #FF9800;
}

/* Grade Analytics */
.grade-analytics {
  margin-bottom: 2rem;
}

.chart-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.grade-distribution {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grade-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-fill {
  height: 30px;
  background: var(--accent-color);
  border-radius: 15px;
  transition: width 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.grade-label {
  min-width: 80px;
  font-weight: 600;
  color: var(--text-primary);
}

/* CGPA Progress */
.cgpa-progress {
  margin-bottom: 2rem;
}

.progress-chart {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.progress-item {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.progress-item:last-child {
  margin-bottom: 0;
}

.progress-item .semester {
  font-weight: 600;
  color: var(--text-primary);
}

.progress-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  border-radius: 4px;
  transition: width 0.8s ease;
}

.progress-item .gpa {
  font-weight: 600;
  color: var(--accent-color);
  text-align: right;
}

.grade-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Payments Page Styles */
.payment-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.payment-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
  border-left: 4px solid var(--accent-color);
}

.payment-card.outstanding {
  border-left-color: var(--danger-color);
}

.payment-card.paid {
  border-left-color: var(--success-color);
}

.payment-card.next {
  border-left-color: var(--warning-color);
}

.payment-card .card-icon i {
  font-size: 2rem;
  color: var(--accent-color);
}

.payment-card.outstanding .card-icon i {
  color: var(--danger-color);
}

.payment-card.paid .card-icon i {
  color: var(--success-color);
}

.payment-card.next .card-icon i {
  color: var(--warning-color);
}

.payment-card .card-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.payment-card .amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.payment-card .due-date,
.payment-card .status,
.payment-card .requirement {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Fee Breakdown */
.fee-breakdown {
  margin-bottom: 2rem;
}

.breakdown-table,
.history-table,
.log-table {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.breakdown-table table,
.history-table table,
.log-table table {
  width: 100%;
  border-collapse: collapse;
}

.breakdown-table th,
.breakdown-table td,
.history-table th,
.history-table td,
.log-table th,
.log-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.breakdown-table th,
.history-table th,
.log-table th {
  background: var(--surface-color);
  font-weight: 600;
  color: var(--text-primary);
}

.breakdown-table .total-row {
  background: var(--surface-color);
}

.status.paid {
  background: #E8F5E8;
  color: #27AE60;
}

.status.pending {
  background: #FFF3E0;
  color: #FF9800;
}

.status.partial {
  background: #E3F2FD;
  color: #2196F3;
}

/* Payment Methods */
.payment-methods {
  margin-bottom: 2rem;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.method-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow);
}

.method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow);
}

.method-card .method-icon i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.method-card h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.method-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h3 {
  color: var(--text-primary);
  margin: 0;
}

/* Filters */
.history-filters,
.log-filters,
.attendance-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.history-filters select,
.log-filters select,
.log-filters input,
.attendance-filters select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-primary);
}

/* Alerts */
.payment-alerts,
.attendance-alerts {
  margin-bottom: 2rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert.alert-warning {
  background: #FFF8E1;
  border-left: 4px solid var(--warning-color);
}

.alert.alert-info {
  background: #E3F2FD;
  border-left: 4px solid var(--info-color);
}

.alert i {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.alert.alert-warning i {
  color: var(--warning-color);
}

.alert.alert-info i {
  color: var(--info-color);
}

.alert-content h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.alert-content p {
  color: var(--text-secondary);
  margin: 0;
}

/* Payment/Attendance Actions */
.payment-actions,
.attendance-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Attendance Page Styles */
.attendance-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.attendance-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
  text-align: center;
  border-left: 4px solid var(--accent-color);
}

.attendance-card.overall {
  border-left-color: var(--accent-color);
}

.attendance-card.present {
  border-left-color: var(--success-color);
}

.attendance-card.absent {
  border-left-color: var(--danger-color);
}

.attendance-card.warning {
  border-left-color: var(--warning-color);
}

.attendance-card .card-icon i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.attendance-card.present .card-icon i {
  color: var(--success-color);
}

.attendance-card.absent .card-icon i {
  color: var(--danger-color);
}

.attendance-card.warning .card-icon i {
  color: var(--warning-color);
}

.percentage-circle {
  position: relative;
  display: inline-block;
  margin: 1rem 0;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  fill: transparent;
  stroke: var(--accent-color);
  stroke-width: 4;
  stroke-linecap: round;
}

.percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.attendance-card .count {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin: 0.5rem 0;
}

.attendance-card .total,
.attendance-card .warning,
.attendance-card .requirement {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.status.excellent {
  background: #E8F5E8;
  color: #27AE60;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Course Attendance */
.course-attendance {
  margin-bottom: 2rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
}

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

.course-header h4 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1rem;
}

.attendance-percentage {
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.attendance-percentage.excellent {
  background: #E8F5E8;
  color: #27AE60;
}

.attendance-percentage.good {
  background: #E3F2FD;
  color: #2196F3;
}

.attendance-percentage.warning {
  background: #FFF3E0;
  color: #FF9800;
}

.attendance-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.attendance-bar .bar-fill {
  height: 100%;
  background: var(--accent-color);
  border-radius: 4px;
  transition: width 0.8s ease;
}

.attendance-bar .bar-fill.warning {
  background: var(--warning-color);
}

.course-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.course-stats .status {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.course-stats .status.safe {
  background: #E8F5E8;
  color: #27AE60;
}

.course-stats .status.caution {
  background: #FFF3E0;
  color: #FF9800;
}

.course-stats .status.excellent {
  background: #E3F2FD;
  color: #2196F3;
}

/* Attendance Calendar */
.recent-attendance {
  margin-bottom: 2rem;
}

.attendance-calendar {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 1rem;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.day.empty {
  visibility: hidden;
}

.day.present {
  background: #E8F5E8;
  color: #27AE60;
}

.day.absent {
  background: #FFEBEE;
  color: #E74C3C;
}

.day.today {
  background: var(--accent-color);
  color: white;
}

.day.weekend {
  background: var(--border-color);
  color: var(--text-secondary);
}

.day:hover:not(.empty) {
  transform: scale(1.1);
}

.calendar-legend {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color.present {
  background: #E8F5E8;
  border: 2px solid #27AE60;
}

.legend-color.absent {
  background: #FFEBEE;
  border: 2px solid #E74C3C;
}

.legend-color.today {
  background: var(--accent-color);
}

.legend-color.weekend {
  background: var(--border-color);
}

/* Status Badges */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.present {
  background: #E8F5E8;
  color: #27AE60;
}

.status-badge.absent {
  background: #FFEBEE;
  color: #E74C3C;
}

.status-badge.late {
  background: #FFF3E0;
  color: #FF9800;
}

/* Mobile Responsive for new pages */
@media (max-width: 768px) {
  .profile-container {
    grid-template-columns: 1fr;
  }
  
  .payment-overview,
  .attendance-overview {
    grid-template-columns: 1fr;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .methods-grid {
    grid-template-columns: 1fr;
  }
  
  .cgpa-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .cgpa-details {
    justify-content: center;
  }
  
  .grade-filters,
  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .calendar-header,
  .calendar-body {
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.8rem;
  }
  
  .day {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

/* ========================
   Course Drop Page Styles
   ======================== */

/* Drop Period Information */
.drop-period-info {
    margin-bottom: 2rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card.current {
    border-left: 4px solid var(--success-color);
}

.info-card.penalty {
    border-left: 4px solid var(--warning-color);
}

.info-card.academic {
    border-left: 4px solid var(--info-color);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-card.current .card-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.info-card.penalty .card-icon {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning-color);
}

.info-card.academic .card-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Drop Timeline */
.drop-timeline {
    margin-bottom: 2rem;
}

.drop-timeline h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--border-color);
}

.timeline-item.completed::before {
    background: var(--success-color);
    border-color: var(--success-color);
}

.timeline-item.active::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-item.upcoming::before {
    background: var(--text-disabled);
    border-color: var(--text-disabled);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.timeline-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Enrolled Courses Section */
.enrolled-courses {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.enrollment-summary {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}

.enrollment-summary span {
    color: var(--text-secondary);
}

.enrollment-summary strong {
    color: var(--text-primary);
}

.courses-table-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.courses-table th,
.courses-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.courses-table th {
    background: var(--surface-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.courses-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.courses-table tbody tr:hover {
    background: var(--hover-bg);
}

.drop-status {
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.drop-status.available {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.drop-status.restricted {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Drop History */
.drop-history {
    margin-bottom: 2rem;
}

.drop-history h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.history-table {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    background: var(--surface-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.history-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Drop Guidelines */
.drop-guidelines {
    margin-bottom: 2rem;
}

.drop-guidelines h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.guidelines-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.guideline-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.guideline-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.guideline-section ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.guideline-section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Drop Support */
.drop-support {
    margin-bottom: 2rem;
}

.drop-support h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.support-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.support-icon {
    width: 48px;
    height: 48px;
    background: var(--surface-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.support-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.support-card p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Drop Actions */
.drop-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.drop-actions .btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* Course Drop Modal */
.drop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.course-drop-details {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 8px;
}

.course-drop-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.course-drop-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Drop Consequences */
.drop-consequences {
    margin-bottom: 1.5rem;
}

.drop-consequences h5 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.consequence-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.consequence-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.consequence-item.financial {
    background: rgba(251, 191, 36, 0.05);
    border-left-color: var(--warning-color);
}

.consequence-item.academic {
    background: rgba(59, 130, 246, 0.05);
    border-left-color: var(--info-color);
}

.consequence-item.credits {
    background: rgba(139, 69, 19, 0.05);
    border-left-color: #8B4513;
}

.consequence-item.prerequisite {
    background: rgba(239, 68, 68, 0.05);
    border-left-color: var(--danger-color);
}

.consequence-item i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.consequence-item.financial i {
    color: var(--warning-color);
}

.consequence-item.academic i {
    color: var(--info-color);
}

.consequence-item.credits i {
    color: #8B4513;
}

.consequence-item.prerequisite i {
    color: var(--danger-color);
}

.consequence-details h6 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.consequence-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Drop Reason and Confirmation */
.drop-reason {
    margin-bottom: 1.5rem;
}

.drop-reason label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.drop-reason select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.confirmation-checkbox {
    margin-bottom: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-footer .btn {
    min-width: 100px;
}

#confirmDropBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================
   Evaluation Page Styles
   ======================== */

/* Evaluation Status Cards */
.evaluation-status {
    margin-bottom: 2rem;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.status-card.pending {
    border-left: 4px solid var(--warning-color);
}

.status-card.completed {
    border-left: 4px solid var(--success-color);
}

.status-card.deadline {
    border-left: 4px solid var(--danger-color);
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.status-card.pending .status-icon {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning-color);
}

.status-card.completed .status-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.status-card.deadline .status-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.status-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-info .count {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.status-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Current Evaluations */
.current-evaluations {
    margin-bottom: 2rem;
}

.current-evaluations h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.evaluations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.evaluation-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.evaluation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.evaluation-card.pending {
    border-left: 4px solid var(--warning-color);
}

.evaluation-card.completed {
    border-left: 4px solid var(--success-color);
}

.course-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.course-header h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.course-header .instructor {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.course-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-item span:first-child {
    color: var(--text-secondary);
}

.detail-item span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Star Rating Display */
.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--warning-color);
}

.rating i {
    font-size: 0.8rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--warning-color);
    font-size: 0.9rem;
}

.rating-display i {
    font-size: 0.8rem;
}

/* Evaluation Actions */
.evaluation-actions {
    text-align: center;
}

.evaluation-actions .btn {
    width: 100%;
}

/* Evaluation Modal */
.evaluation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.evaluation-modal .modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.evaluation-form {
    padding: 0;
}

.course-info {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 8px;
}

.course-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.course-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Rating Sections */
.rating-sections {
    margin-bottom: 2rem;
}

.rating-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 8px;
}

.rating-section h5 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.rating-questions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.question label {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    min-width: 200px;
}

/* Interactive Star Rating */
.star-rating {
    display: flex;
    gap: 0.25rem;
    cursor: pointer;
}

.star-rating i {
    font-size: 1.2rem;
    color: var(--border-color);
    transition: all 0.2s ease;
}

.star-rating i:hover {
    color: var(--warning-color);
    transform: scale(1.1);
}

.star-rating i.active {
    color: var(--warning-color);
}

.star-rating:hover i {
    color: var(--warning-color);
    opacity: 0.5;
}

.star-rating i:hover ~ i {
    color: var(--border-color);
    opacity: 1;
}

/* Comment Section */
.comment-section {
    margin-bottom: 1rem;
}

.comment-section h5 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.comment-section textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
}

.comment-section textarea::placeholder {
    color: var(--text-secondary);
}

/* Evaluation History */
.evaluation-history {
    margin-bottom: 2rem;
}

.history-filters {
    display: flex;
    gap: 1rem;
}

.history-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.history-table {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    background: var(--surface-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.history-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.history-table tbody tr:hover {
    background: var(--hover-bg);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-link:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
}

/* Evaluation Notice */
.evaluation-notice {
    margin-bottom: 2rem;
}

.alert {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert.alert-info {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--info-color);
}

.alert i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.alert-content h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.alert-content ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.alert-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Action Buttons */
.evaluation-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.evaluation-actions .btn {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

/* Responsive Design for Evaluation Page */
@media (max-width: 768px) {
    .status-cards {
        grid-template-columns: 1fr;
    }
    
    .evaluations-grid {
        grid-template-columns: 1fr;
    }
    
    .question {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .question label {
        min-width: auto;
    }
    
    .star-rating {
        justify-content: center;
    }
    
    .evaluation-actions {
        flex-direction: column;
    }
    
    .evaluation-actions .btn {
        max-width: none;
    }
    
    .history-filters {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

/* ========================
   SMS Page Styles
   ======================== */

/* SMS Overview */
.sms-overview {
    margin-bottom: 2rem;
}

.sms-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--surface-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* SMS Filters */
.sms-filters {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-group span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    align-self: center;
    margin: 0 0.5rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* SMS Messages */
.sms-messages {
    margin-bottom: 2rem;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.message-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.message-item.unread {
    border-left: 4px solid var(--primary-color);
    background: rgba(59, 130, 246, 0.02);
}

.message-item.important {
    border-left: 4px solid var(--danger-color);
}

.message-item.unread.important {
    background: rgba(239, 68, 68, 0.02);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.message-category {
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.message-category.academic {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.message-category.financial {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.message-category.registration {
    background: rgba(168, 85, 247, 0.1);
    color: #A855F7;
}

.message-category.examination {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning-color);
}

.message-category.general {
    background: rgba(107, 114, 128, 0.1);
    color: #6B7280;
}

.message-category.emergency {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.message-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.message-status {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.message-status.unread {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.message-status.read {
    background: rgba(107, 114, 128, 0.1);
    color: #6B7280;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.message-content {
    margin-bottom: 1rem;
}

.message-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.message-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.sender {
    color: var(--text-secondary);
}

.priority {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.priority.high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.priority.medium {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning-color);
}

.priority.low {
    background: rgba(107, 114, 128, 0.1);
    color: #6B7280;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

/* Message Statistics */
.message-statistics {
    margin-bottom: 2rem;
}

.message-statistics h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-category,
.stat-monthly {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-category h4,
.stat-monthly h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.category-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-name {
    min-width: 80px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.category-bar {
    flex: 1;
    height: 8px;
    background: var(--surface-color);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.category-count {
    min-width: 30px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.monthly-chart {
    display: flex;
    align-items: end;
    gap: 1rem;
    height: 100px;
}

.month-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.month {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.month-bar {
    width: 100%;
    max-width: 30px;
    height: 60px;
    background: var(--surface-color);
    border-radius: 4px;
    display: flex;
    align-items: end;
    overflow: hidden;
}

.month-bar .bar-fill {
    width: 100%;
    background: var(--primary-color);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.count {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* SMS Settings */
.sms-settings {
    margin-bottom: 2rem;
}

.sms-settings h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.settings-grid {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.setting-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.setting-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.setting-control small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    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: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

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

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

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

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

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.settings-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Action Buttons */
.sms-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.sms-actions .btn {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

/* Responsive Design for SMS Page */
@media (max-width: 768px) {
    .sms-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sms-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-actions {
        margin-left: 0;
        justify-content: stretch;
    }
    
    .message-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .message-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .message-actions {
        justify-content: flex-end;
    }
    
    .message-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .setting-control {
        align-items: flex-start;
    }
    
    .sms-actions {
        flex-direction: column;
    }
    
    .sms-actions .btn {
        max-width: none;
    }
}

/* ========================
   User Guides Page Styles
   ======================== */

/* Help Search */
.help-search {
    margin-bottom: 2rem;
}

.search-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.popular-searches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.search-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-tag {
    padding: 0.5rem 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Featured Guides */
.featured-guides {
    margin-bottom: 2rem;
}

.featured-guides h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.guide-card.featured {
    border-left: 4px solid var(--primary-color);
}

.guide-icon {
    width: 48px;
    height: 48px;
    background: var(--surface-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.guide-content {
    flex: 1;
}

.guide-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.guide-content p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.guide-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.guide-duration {
    color: var(--text-secondary);
}

.guide-type {
    padding: 0.2rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 500;
}

/* Help Categories */
.help-categories {
    margin-bottom: 2rem;
}

.help-categories h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-header {
    background: var(--surface-color);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.category-header i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.category-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.category-links {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.help-link:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
    text-decoration: none;
}

.help-link i {
    color: var(--text-secondary);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.help-link:hover i {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    margin-bottom: 2rem;
}

.faq-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.faq-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.faq-question:hover {
    background: var(--hover-bg);
}

.faq-question span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.faq-question i {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    margin: 0 0 1rem 0;
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 3rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--text-primary);
}

/* Video Tutorials */
.video-tutorials {
    margin-bottom: 2rem;
}

.video-tutorials h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.video-card:hover .video-thumbnail i {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1rem;
}

.video-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.video-info p {
    margin: 0 0 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.video-duration {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--surface-color);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Contact Support */
.contact-support {
    margin-bottom: 2rem;
}

.contact-support h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.support-option {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.support-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.support-option .support-icon {
    width: 64px;
    height: 64px;
    background: var(--surface-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.support-content {
    flex: 1;
}

.support-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.support-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.availability {
    font-weight: 500;
    color: var(--success-color) !important;
}

.contact-info {
    font-weight: 500;
    color: var(--primary-color) !important;
}

/* Feedback Section */
.feedback-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.feedback-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.feedback-container p {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.feedback-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feedback-actions .btn {
    min-width: 160px;
}

/* Responsive Design for User Guides Page */
@media (max-width: 768px) {
    .search-container {
        padding: 1.5rem;
    }
    
    .popular-searches {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .search-tag {
        text-align: center;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
    
    .feedback-actions {
        flex-direction: column;
    }
    
    .feedback-actions .btn {
        min-width: auto;
    }
    
    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .faq-answer ul,
    .faq-answer ol {
        padding-left: 2rem;
    }
}

