/* Study Plan Styles */
:root {
  --primary-color: #1e40af;
  --secondary-color: #10b981;
  --accent-color: #3b82f6;
  --background-gradient: linear-gradient(
    135deg,
    #f0f9ff 0%,
    #e0f2fe 50%,
    #f0fdf4 100%
  );
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: var(--background-gradient);
  min-height: 100vh;
}

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

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-logo a {
  text-decoration: none;
  color: var(--primary-color);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid rgba(30, 64, 175, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* Progress Section */
.progress-section {
  padding: 2rem 0;
}

.progress-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.progress-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-title h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.progress-title svg {
  color: #f59e0b;
  width: 20px;
  height: 20px;
}

.progress-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.progress-stats svg {
  width: 16px;
  height: 16px;
}

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

.progress-bar {
  flex: 1;
  height: 12px;
  background: #e5e7eb;
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  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;
}

#progress-percentage {
  font-weight: 600;
  color: var(--primary-color);
  min-width: 40px;
  text-align: right;
}

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

/* Main Content */
.main-content {
  padding: 2rem 0 4rem;
}

/* Week Navigation */
.week-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.week-tab {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.week-tab:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-color);
}

.week-tab.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--card-shadow);
}

.week-label {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.week-progress {
  display: block;
  font-size: 0.875rem;
  opacity: 0.8;
}

.week-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 20px;
  height: 20px;
  color: var(--secondary-color);
  opacity: 0;
  transition: var(--transition);
}

.week-tab.completed .week-check {
  opacity: 1;
}

/* Week Content */
.week-content {
  display: none;
}

.week-content.active {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

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

.week-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(30, 64, 175, 0.1);
}

.week-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.week-description {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.week-progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 50px;
  overflow: hidden;
}

.week-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

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

/* Day Cards */
.day-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.day-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.day-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.review-card::before {
  background: linear-gradient(90deg, var(--secondary-color), #06d6a0);
}

.practice-card::before {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.mock-card::before {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.final-card::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.day-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.day-icon {
  width: 20px;
  height: 20px;
  color: #64748b;
  margin-top: 2px;
  flex-shrink: 0;
}

.review-icon {
  color: var(--secondary-color);
}

.practice-icon {
  color: #8b5cf6;
}

.mock-icon {
  color: #f59e0b;
}

.final-icon {
  color: #ef4444;
}

.day-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

.review-description,
.practice-description,
.final-description {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Task List */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 8px;
  position: relative;
}

.task-item:hover {
  background: rgba(30, 64, 175, 0.05);
}

.task-checkbox {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
  margin-top: 1px;
}

.task-checkbox:checked + .checkbox-custom {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.task-checkbox:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.task-text {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.4;
  transition: var(--transition);
}

.task-checkbox:checked + .checkbox-custom + .task-text {
  text-decoration: line-through;
  color: #9ca3af;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.footer-section p {
  color: #64748b;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .container {
    padding: 0 16px;
  }

  .progress-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

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

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

  .day-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .week-navigation {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .week-tab {
    padding: 1rem;
  }
}

/* Loading Animation */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Success Animation */
@keyframes checkmark {
  0% {
    transform: scale(0) rotate(45deg);
  }
  50% {
    transform: scale(1.2) rotate(45deg);
  }
  100% {
    transform: scale(1) rotate(45deg);
  }
}

.task-checkbox:checked + .checkbox-custom::after {
  animation: checkmark 0.3s ease-out;
}

/* Smooth Progress Animation */
.progress-fill,
.week-progress-fill {
  background-size: 200% 100%;
  background-image: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color),
    var(--primary-color)
  );
  animation: progressGlow 3s ease-in-out infinite;
}

@keyframes progressGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
