/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: #6366f1;
  text-decoration: none;
}

.nav-logo i {
  margin-right: 8px;
  font-size: 28px;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover,
.nav-link.active {
  color: #6366f1;
}

/* Dropdown Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #4b5563;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #f8fafc;
  color: #6366f1;
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  padding: 8px 40px 8px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 25px;
  outline: none;
  width: 200px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #6366f1;
  width: 250px;
}

.search-btn {
  position: absolute;
  right: 5px;
  background: #6366f1;
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #4f46e5;
}

.account-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

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

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #4b5563;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-subtitle {
  color: #a5b4fc;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: #fbbf24;
  position: relative;
}

.hero-description {
  font-size: 18px;
  color: #e0e7ff;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Hero Search */
.hero-search {
  display: flex;
  background: white;
  border-radius: 50px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 500px;
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 20px;
  font-size: 16px;
  border-radius: 50px;
}

.hero-search-btn {
  background: #6366f1;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-search-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-figure {
  position: relative;
  z-index: 3;
}

.student-head {
  width: 80px;
  height: 80px;
  background: #fbbf24;
  border-radius: 50%;
  margin: 0 auto 10px;
  position: relative;
}

.student-head::before {
  content: "😊";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
}

.student-body {
  width: 100px;
  height: 120px;
  background: #10b981;
  border-radius: 20px;
  margin: 0 auto;
  position: relative;
}

.student-arms {
  position: absolute;
  top: 20px;
  left: -20px;
  right: -20px;
  height: 60px;
}

.student-arms::before,
.student-arms::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 15px;
  background: #fbbf24;
  border-radius: 10px;
  top: 0;
}

.student-arms::before {
  left: 0;
  transform: rotate(-30deg);
}

.student-arms::after {
  right: 0;
  transform: rotate(30deg);
}

/* Math Formulas */
.math-formulas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.formula {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: #4b5563;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

.formula:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.formula:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-delay: 0.5s;
}

.formula:nth-child(3) {
  bottom: 30%;
  left: 5%;
  animation-delay: 1s;
}

.formula:nth-child(4) {
  bottom: 20%;
  right: 10%;
  animation-delay: 1.5s;
}

.formula:nth-child(5) {
  top: 50%;
  left: 20%;
  animation-delay: 2s;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.element {
  position: absolute;
  font-size: 24px;
  animation: bounce 2s ease-in-out infinite;
}

.element:nth-child(1) {
  top: 15%;
  right: 20%;
  animation-delay: 0s;
}

.element:nth-child(2) {
  top: 60%;
  left: 15%;
  animation-delay: 0.5s;
}

.element:nth-child(3) {
  bottom: 15%;
  right: 25%;
  animation-delay: 1s;
}

.element:nth-child(4) {
  top: 40%;
  right: 5%;
  animation-delay: 1.5s;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: #f8fafc;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #6366f1;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 15px;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 25px;
}

.feature-link {
  display: inline-block;
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 25px;
  border: 2px solid #6366f1;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.feature-link:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  padding: 80px 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 18px;
  color: #d1d5db;
  font-weight: 500;
}

/* Footer */
.footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 20px;
}

.footer-logo i {
  margin-right: 8px;
  font-size: 28px;
}

.footer-section h3 {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #6366f1;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #374151;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-3px);
}

.newsletter {
  display: flex;
  margin-top: 15px;
}

.newsletter input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.newsletter button {
  background: #6366f1;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.newsletter button:hover {
  background: #4f46e5;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #4f46e5;
  transform: translateY(-3px);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-search {
    max-width: 100%;
  }

  .hero-illustration {
    height: 300px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 15px;
  }

  .hero-search-input {
    border-radius: 15px;
    margin-bottom: 10px;
  }

  .hero-search-btn {
    border-radius: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 36px;
  }
}

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

/* Loading animation for search */
.search-loading {
  animation: spin 1s linear infinite;
}

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

/* Additional styles for all menu pages */

/* Page-specific styles */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 120px 0 80px;
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumb a {
  color: #a5b4fc;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: white;
}

/* Old Questions Page Styles */
.filter-section {
  background: white;
  padding: 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-weight: 500;
  color: #4b5563;
  font-size: 14px;
}

.filter-select {
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  min-width: 150px;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  border-color: #6366f1;
}

.filter-reset {
  background: #ef4444;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.filter-reset:hover {
  background: #dc2626;
}

.questions-section {
  padding: 60px 0;
  background: #f8fafc;
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.question-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.question-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.question-badge {
  background: #6366f1;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.question-badge.midterm {
  background: #f59e0b;
}

.question-badge.internal {
  background: #10b981;
}

.question-year {
  font-weight: 600;
  color: #6b7280;
}

.question-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.question-details {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #6b7280;
}

.question-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.question-content p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.question-actions {
  display: flex;
  gap: 10px;
}

.btn-view,
.btn-download,
.btn-solution {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-view {
  background: #6366f1;
  color: white;
}

.btn-view:hover {
  background: #4f46e5;
}

.btn-download {
  background: #10b981;
  color: white;
}

.btn-download:hover {
  background: #059669;
}

.btn-solution {
  background: #f59e0b;
  color: white;
}

.btn-solution:hover {
  background: #d97706;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results-content i {
  font-size: 48px;
  color: #d1d5db;
  margin-bottom: 20px;
}

.no-results-content h3 {
  font-size: 24px;
  color: #4b5563;
  margin-bottom: 10px;
}

/* MCQ Page Styles */
.mcq-categories {
  padding: 60px 0;
  background: #f8fafc;
}

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

.category-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 32px;
}

.category-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.category-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #6b7280;
}

.category-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.category-difficulty {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.difficulty-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.difficulty-badge.easy {
  background: #dcfce7;
  color: #166534;
}

.difficulty-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

.difficulty-badge.hard {
  background: #fee2e2;
  color: #991b1b;
}

/* Quiz Interface Styles */
.quiz-interface {
  padding: 60px 0;
  background: #f8fafc;
  min-height: 80vh;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.quiz-progress {
  flex: 1;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: #6366f1;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 14px;
  color: #6b7280;
}

.quiz-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #ef4444;
}

.question-card-quiz {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.question-card-quiz h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 30px;
  line-height: 1.6;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.option {
  padding: 15px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.option:hover {
  border-color: #6366f1;
  background: #f8fafc;
}

.option.selected {
  border-color: #6366f1;
  background: #eef2ff;
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.btn-success {
  background: #10b981;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-success:hover {
  background: #059669;
}

/* Quiz Results Styles */
.quiz-results {
  padding: 60px 0;
  background: #f8fafc;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.results-card {
  background: white;
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.results-header {
  margin-bottom: 40px;
}

.results-header i {
  font-size: 64px;
  color: #fbbf24;
  margin-bottom: 20px;
}

.results-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
}

.score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.score-details h4 {
  font-size: 18px;
  color: #1f2937;
  margin-bottom: 10px;
}

.score-message {
  font-size: 16px;
  color: #6b7280;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Notices Page Styles */
.notice-categories {
  background: white;
  padding: 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.category-filter {
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  color: #4b5563;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-filter:hover,
.category-filter.active {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

.notices-section {
  padding: 60px 0;
  background: #f8fafc;
}

.notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.notice-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.notice-card.important {
  border-left-color: #ef4444;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.notice-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.notice-badge {
  background: #6366f1;
}

.notice-badge.important {
  background: #ef4444;
}

.notice-badge.admission {
  background: #10b981;
}

.notice-badge.event {
  background: #f59e0b;
}

.notice-date {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.notice-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.notice-content p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 15px;
}

.notice-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #6b7280;
}

.notice-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.notice-actions {
  display: flex;
  gap: 10px;
}

.load-more-section {
  text-align: center;
}

.btn-load-more {
  background: #6366f1;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-load-more:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

/* Resources Page Styles */
.resource-categories {
  background: white;
  padding: 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.resource-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.resource-tab {
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  color: #4b5563;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resource-tab:hover,
.resource-tab.active {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

.resource-content {
  display: none;
  padding: 60px 0;
  background: #f8fafc;
}

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

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.resource-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  gap: 20px;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.resource-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.resource-content-area {
  flex: 1;
}

.resource-content-area h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.resource-content-area p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 15px;
}

.resource-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #6b7280;
}

.resource-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.resource-actions {
  display: flex;
  gap: 10px;
}

/* Video Grid Styles */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.video-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.video-content {
  padding: 20px;
}

.video-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.video-content p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 15px;
}

.video-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #6b7280;
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-play {
  background: #6366f1;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-play:hover {
  background: #4f46e5;
}

/* Tests Grid Styles */
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.test-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.test-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.test-difficulty {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.test-difficulty.easy {
  background: #10b981;
}

.test-difficulty.medium {
  background: #f59e0b;
}

.test-difficulty.hard {
  background: #ef4444;
}

.test-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.test-content p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 15px;
}

.test-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #6b7280;
}

.test-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.test-actions {
  display: flex;
  gap: 10px;
}

/* Books Grid Styles */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.book-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  gap: 20px;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.book-cover {
  width: 80px;
  height: 100px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.book-content {
  flex: 1;
}

.book-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 5px;
}

.book-author {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.book-description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 14px;
}

.book-rating {
  margin-bottom: 20px;
}

.stars {
  color: #fbbf24;
  margin-bottom: 5px;
}

.book-rating span {
  font-size: 14px;
  color: #6b7280;
}

.book-actions {
  display: flex;
  gap: 10px;
}

/* Tools Grid Styles */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.tool-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tool-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 32px;
}

.tool-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.tool-content p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 25px;
}

.tool-features span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.tool-features i {
  color: #10b981;
}

/* About Page Styles */
.about-content {
  padding: 60px 0;
  background: white;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
}

.about-text p {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 16px;
}

.about-illustration {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: 300px;
}

.illustration-element {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  transition: all 0.3s ease;
}

.illustration-element:hover {
  transform: scale(1.05) rotate(5deg);
}

.about-features {
  padding: 80px 0;
  background: #f8fafc;
}

.about-feature {
  text-align: center;
  padding: 30px 20px;
}

.about-feature .feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 32px;
}

.about-feature h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 15px;
}

.about-feature p {
  color: #6b7280;
  line-height: 1.6;
}

.team-section {
  padding: 80px 0;
  background: white;
}

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

.team-member {
  text-align: center;
  padding: 30px;
  background: #f8fafc;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.member-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 40px;
}

.member-info h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 5px;
}

.member-role {
  color: #6366f1;
  font-weight: 500;
  margin-bottom: 15px;
}

.member-bio {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.member-social a {
  width: 40px;
  height: 40px;
  background: #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s ease;
}

.member-social a:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
}

.contact-section {
  padding: 80px 0;
  background: #f8fafc;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
}

.contact-info > p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 40px;
  font-size: 16px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-method {
  display: flex;
  gap: 20px;
  align-items: start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.contact-details p {
  color: #6b7280;
  margin-bottom: 4px;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6366f1;
}

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

.btn-submit {
  width: 100%;
  background: #6366f1;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

/* Responsive Design for all pages */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 32px;
  }

  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select {
    min-width: auto;
  }

  .questions-grid,
  .categories-grid,
  .notices-grid,
  .resources-grid,
  .video-grid,
  .tests-grid,
  .books-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .question-actions,
  .notice-actions,
  .resource-actions,
  .test-actions,
  .book-actions {
    flex-direction: column;
  }

  .quiz-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .quiz-controls {
    flex-direction: column;
  }

  .score-display {
    flex-direction: column;
    gap: 20px;
  }

  .resource-tabs {
    flex-direction: column;
    align-items: center;
  }

  .resource-card,
  .book-card {
    flex-direction: column;
    text-align: center;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-illustration {
    height: 200px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .results-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 100px 0 60px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .category-filters,
  .resource-tabs {
    gap: 10px;
  }

  .category-filter,
  .resource-tab {
    padding: 8px 16px;
    font-size: 14px;
  }

  .question-card,
  .notice-card,
  .resource-card,
  .category-card,
  .video-card,
  .test-card,
  .book-card,
  .tool-card {
    padding: 20px;
  }

  .quiz-interface,
  .quiz-results {
    padding: 40px 0;
  }

  .question-card-quiz {
    padding: 25px;
  }

  .results-card {
    padding: 30px;
  }

  .contact-form {
    padding: 25px;
  }

  .about-illustration {
    grid-template-columns: 1fr;
    height: 150px;
  }

  .illustration-element {
    font-size: 32px;
  }
}

/* Authentication Styles */
.auth-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
}

.auth-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.auth-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 600px;
}

.auth-form-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.auth-header p {
  color: #6b7280;
  font-size: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

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

.form-group label {
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group i {
  position: absolute;
  left: 15px;
  color: #9ca3af;
  font-size: 16px;
  z-index: 2;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-toggle {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 5px;
  z-index: 2;
}

.password-toggle:hover {
  color: #6366f1;
}

.password-strength {
  margin-top: 8px;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.strength-fill {
  height: 100%;
  background: #ef4444;
  width: 0%;
  transition: all 0.3s ease;
}

.strength-fill.weak {
  background: #ef4444;
  width: 25%;
}

.strength-fill.fair {
  background: #f59e0b;
  width: 50%;
}

.strength-fill.good {
  background: #10b981;
  width: 75%;
}

.strength-fill.strong {
  background: #059669;
  width: 100%;
}

.strength-text {
  font-size: 12px;
  color: #6b7280;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

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

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: #6366f1;
  border-color: #6366f1;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-link {
  color: #6366f1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.auth-btn {
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn.primary {
  background: #6366f1;
  color: white;
}

.auth-btn.primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

.auth-btn.secondary {
  background: #f3f4f6;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.auth-btn.secondary:hover {
  background: #e5e7eb;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.auth-divider span {
  background: white;
  padding: 0 15px;
  color: #6b7280;
  font-size: 14px;
}

.social-auth {
  display: flex;
  gap: 10px;
}

.social-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: white;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-btn:hover {
  border-color: #6366f1;
  color: #6366f1;
  transform: translateY(-2px);
}

.social-btn.google:hover {
  border-color: #ea4335;
  color: #ea4335;
}

.social-btn.facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
}

.social-btn.github:hover {
  border-color: #333;
  color: #333;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-footer p {
  color: #6b7280;
  font-size: 14px;
}

.auth-footer a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Auth Illustration */
.auth-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.illustration-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.float-element {
  position: absolute;
  font-size: 24px;
  animation: float 3s ease-in-out infinite;
}

.float-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.float-element:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-delay: 0.5s;
}

.float-element:nth-child(3) {
  bottom: 30%;
  left: 15%;
  animation-delay: 1s;
}

.float-element:nth-child(4) {
  bottom: 20%;
  right: 10%;
  animation-delay: 1.5s;
}

.main-illustration {
  position: relative;
  z-index: 2;
}

.student-avatar {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 48px;
  color: white;
  backdrop-filter: blur(10px);
}

.main-illustration h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.main-illustration p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 30px;
}

.stats-mini {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.stat-mini {
  text-align: center;
}

.stat-mini strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fbbf24;
}

.stat-mini span {
  font-size: 14px;
  opacity: 0.8;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-item i {
  width: 20px;
  height: 20px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* User Menu Styles */
.user-menu {
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.user-menu-toggle:hover {
  background: rgba(99, 102, 241, 0.1);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-weight: 500;
  color: #374151;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 280px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 10px;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-info {
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.user-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.user-details p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.user-badge {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0 10px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: #f3f4f6;
  color: #6366f1;
}

.dropdown-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.dropdown-item.logout {
  color: #ef4444;
}

.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

/* Dashboard Styles */
.dashboard-section {
  padding: 100px 0 50px;
  background: #f8fafc;
  min-height: 100vh;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.welcome-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.welcome-content p {
  color: #6b7280;
  font-size: 16px;
}

.quick-actions {
  display: flex;
  gap: 15px;
}

.quick-action-btn {
  background: #6366f1;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-action-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.stat-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 5px;
}

.stat-content p {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-change {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
}

.stat-change.positive {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.stat-change.negative {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.dashboard-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.view-all {
  color: #6366f1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: #f1f5f9;
  transform: translateX(5px);
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.activity-content p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}

.activity-time {
  font-size: 12px;
  color: #9ca3af;
}

.activity-score {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
}

.progress-chart {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-controls {
  display: flex;
  gap: 10px;
}

.chart-btn {
  background: #f3f4f6;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chart-btn.active {
  background: #6366f1;
  color: white;
}

.goals-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.goal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}

.goal-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.goal-content p {
  font-size: 14px;
  color: #6b7280;
}

.progress-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(#6366f1 0deg, #6366f1 var(--progress, 0deg), #e5e7eb var(--progress, 0deg));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.progress-circle::before {
  content: "";
  width: 35px;
  height: 35px;
  background: white;
  border-radius: 50%;
  position: absolute;
}

.progress-circle span {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  position: relative;
  z-index: 1;
}

.add-goal-btn {
  width: 30px;
  height: 30px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.add-goal-btn:hover {
  background: #4f46e5;
  transform: scale(1.1);
}

.deadlines-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.deadline-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid #6366f1;
}

.deadline-item.urgent {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.deadline-date {
  text-align: center;
  min-width: 50px;
}

.deadline-date .day {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.deadline-date .month {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
}

.deadline-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.deadline-content p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}

.deadline-time {
  font-size: 12px;
  color: #ef4444;
  font-weight: 500;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.recommendation-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.recommendation-item:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.recommendation-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.recommendation-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.recommendation-content p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.recommendation-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #9ca3af;
}

.recommendation-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Responsive Design for Auth and Dashboard */
@media (max-width: 768px) {
  .auth-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .auth-form-container {
    padding: 30px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .social-auth {
    flex-direction: column;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .quick-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .user-dropdown {
    right: -20px;
    min-width: 250px;
  }

  .nav-actions {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-form-container {
    padding: 25px 15px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .dashboard-header {
    padding: 20px;
  }

  .welcome-content h1 {
    font-size: 24px;
  }

  .quick-action-btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  .stat-card {
    padding: 20px;
  }

  .dashboard-card {
    padding: 20px;
  }
}

/* Enhanced Semester Styles */
.semester-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.semester-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.semester-header p {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.semester-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.semester-stats .stat-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  min-width: 120px;
  transition: all 0.3s ease;
}

.semester-stats .stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.semester-stats .stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 8px;
}

.semester-stats .stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Enhanced Subject Card Styles */
.subject-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.subject-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.subject-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.subject-card:hover::before {
  transform: scaleX(1);
}

.subject-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.subject-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

.subject-icon.mathematics {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.subject-icon.physics {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.subject-icon.chemistry {
  background: linear-gradient(135deg, #10b981, #059669);
}

.subject-icon.english {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.subject-icon.programming {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.subject-icon.computer {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.subject-icon.database {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.subject-icon.network {
  background: linear-gradient(135deg, #84cc16, #65a30d);
}

.subject-icon.ai {
  background: linear-gradient(135deg, #a855f7, #9333ea);
}

.subject-icon.general {
  background: linear-gradient(135deg, #64748b, #475569);
}

.subject-card:hover .subject-icon {
  transform: scale(1.1) rotate(5deg);
}

.subject-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subject-badge.core {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.subject-badge.general {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
}

.subject-badge.elective {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.subject-badge.project {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.subject-badge.internship {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.subject-badge.capstone {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.subject-badge.thesis {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
}

.subject-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

.subject-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 15px;
}

.subject-details {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: #f1f5f9;
  color: #6366f1;
}

.detail-item i {
  color: #6366f1;
  font-size: 12px;
}

.subject-progress {
  margin-bottom: 25px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 4px;
  transition: width 0.6s ease;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-text {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.subject-actions {
  display: flex;
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-tertiary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.btn-tertiary:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Semester Tab Enhancements */
.semester-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.semester-tab {
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  padding: 15px 25px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.semester-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.semester-tab:hover::before {
  left: 100%;
}

.semester-tab:hover,
.semester-tab.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .semester-header h2 {
    font-size: 28px;
  }

  .semester-stats {
    gap: 20px;
  }

  .semester-stats .stat-item {
    min-width: 100px;
    padding: 15px;
  }

  .semester-stats .stat-number {
    font-size: 24px;
  }

  .subject-card {
    padding: 25px;
  }

  .subject-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .subject-details {
    justify-content: center;
    gap: 10px;
  }

  .subject-actions {
    flex-direction: column;
  }

  .semester-tabs {
    gap: 10px;
  }

  .semester-tab {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .semester-header {
    padding: 30px 15px;
  }

  .semester-header h2 {
    font-size: 24px;
  }

  .semester-stats {
    flex-direction: column;
    align-items: center;
  }

  .subject-card {
    padding: 20px;
  }

  .subject-card h3 {
    font-size: 20px;
  }

  .detail-item {
    font-size: 13px;
    padding: 6px 10px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-tertiary {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Loading and Animation States */
.semester-panel {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.semester-panel.active {
  opacity: 1;
  transform: translateY(0);
}

.subject-card {
  animation: fadeInUp 0.6s ease forwards;
}

.subject-card:nth-child(1) {
  animation-delay: 0.1s;
}
.subject-card:nth-child(2) {
  animation-delay: 0.2s;
}
.subject-card:nth-child(3) {
  animation-delay: 0.3s;
}
.subject-card:nth-child(4) {
  animation-delay: 0.4s;
}
.subject-card:nth-child(5) {
  animation-delay: 0.5s;
}
.subject-card:nth-child(6) {
  animation-delay: 0.6s;
}

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

/* Semester Overview Cards */
.semester-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.overview-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #6366f1;
  transition: all 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.overview-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.overview-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 15px;
}

.overview-stats {
  display: flex;
  gap: 20px;
}

.overview-stat {
  text-align: center;
}

.overview-stat .number {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #6366f1;
}

.overview-stat .label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
}
