/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f0f4f8;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5em;
  color: #1a365d;
}

p {
  margin-bottom: 1em;
}

/* Utility classes */
.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.highlight {
  font-weight: 600;
  color: #1e88e5;
  margin: 1em 0;
}

/* Header styles */
.header {
  text-align: center;
  margin-bottom: 1.5rem;
  background-color: #fff;
  padding: 1.25rem 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-container {
  max-width: 220px;
  margin: 0 auto 1rem;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: #666;
  font-size: 1rem;
}

/* Button styles */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
  min-height: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:hover, .btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn .icon {
  margin-right: 0.5rem;
  font-size: 1.2em;
}

.btn-primary {
  background: linear-gradient(135deg, #1e88e5, #1565c0);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1976d2, #0d47a1);
}

.btn-secondary {
  background: linear-gradient(135deg, #8bc34a, #689f38);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #7cb342, #558b2f);
}

.btn-tertiary {
  background: linear-gradient(135deg, #9c27b0, #7b1fa2);
  color: white;
}

.btn-tertiary:hover {
  background: linear-gradient(135deg, #8e24aa, #6a1b9a);
}

.btn-danger {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #e53935, #b71c1c);
}

.btn-success {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #43a047, #2e7d32);
}

/* Card styles */
.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a365d;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f4f8;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge {
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.message-board {
  border-left: 4px solid #1e88e5;
  padding-left: 1.25rem;
  margin: 1rem 0;
  background-color: #f9f9f9;
  padding: 1rem 1rem 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
}

.steps-list {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.steps-list li {
  margin-bottom: 0.75rem;
}

.card-action {
  margin-top: 1.5rem;
}

/* Footer styles */
.footer {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  color: #666;
  font-size: 0.9rem;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* Form styles */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.25);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.success-message {
  background-color: #e8f5e9;
  color: #388e3c;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  font-weight: 600;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Login container */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Admin container */
.admin-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-panel {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Program Schedule Styles */
.program-schedule {
  padding: 1.5rem;
}

.full-width {
  width: 100%;
}

.schedule-section {
  margin-bottom: 2rem;
}

.section-title {
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  color: #1a365d;
  font-size: 1.25rem;
}

.day-card {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  border-left: 4px solid;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.day-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.day-past {
  border-color: #8bc34a;
}

.day-current {
  border-color: #1e88e5;
  background-color: #f0f9ff;
  box-shadow: 0 3px 15px rgba(30, 136, 229, 0.15);
}

.day-future {
  border-color: #9e9e9e;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.day-header h4 {
  font-weight: 600;
  margin: 0;
}

.day-date {
  font-size: 0.85rem;
  color: #666;
}

.day-activities {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.day-activities li {
  margin-bottom: 0.5rem;
}

.day-message {
  color: #666;
  font-style: italic;
}

/* Challenge Card Styles */
.challenge-card {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid;
  background-color: #f9f9f9;
}

.challenge-card:first-child {
  border-color: #1e88e5;
}

.challenge-card:last-child {
  border-color: #8bc34a;
  margin-bottom: 0;
}

.challenge-title {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.challenge-details {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
}

.badge-success {
  background-color: #e8f5e9;
  color: #388e3c;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* YouTube video button */
.video-btn {
  background: linear-gradient(135deg, #ff5252, #d32f2f);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.video-btn:hover {
  background: linear-gradient(135deg, #ff1744, #c62828);
}

.video-btn .icon {
  margin-right: 0.5rem;
}

/* AI Teacher cards */
.ai-teacher-card {
  border-left-color: #9c27b0;
  margin-bottom: 1.25rem;
}

.ai-teacher-title {
  color: #7b1fa2;
  display: flex;
  align-items: center;
}

.ai-teacher-title .icon {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.ai-teacher-desc {
  margin-bottom: 1rem;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .logo-container {
    max-width: 150px;
    margin: 0 auto 0.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0 0.5rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .title {
    font-size: 1.5rem;
  }
  
  .subtitle {
    font-size: 0.95rem;
  }
  
  .container {
    padding: 15px;
  }
  
  .admin-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .admin-header div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .day-card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .logo-container {
    max-width: 120px;
  }
  
  .card {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .admin-panel {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.75rem 0.75rem;
    font-size: 0.95rem;
  }
}
/* Navigation styles */
.main-nav {
  background-color: #1a365d;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.main-nav li {
  flex: 1;
  text-align: center;
}

.main-nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 1rem 0.5rem;
  font-weight: 600;
  transition: background-color 0.3s;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover {
  background-color: rgba(255,255,255,0.1);
}

.main-nav li.active a {
  border-bottom: 3px solid #8bc34a;
  background-color: rgba(255,255,255,0.05);
}

/* Media queries for responsive navigation */
@media (max-width: 480px) {
  .main-nav a {
    padding: 0.85rem 0.5rem;
    font-size: 0.85rem;
  }
}
/* Challenge Highlight Styles */
.challenge-highlights {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
}

.challenge-highlight-card {
  flex: 1;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-highlight-card:first-child {
  border-left: 4px solid #1e88e5;
}

.challenge-highlight-card:last-child {
  border-left: 4px solid #8bc34a;
}

.challenge-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.challenge-highlight-card h3 {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.challenge-highlight-card h3 .icon {
  margin-right: 0.5rem;
  font-size: 1.2em;
}

.challenge-highlight-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Media queries for challenge highlights */
@media (max-width: 768px) {
  .challenge-highlights {
    flex-direction: column;
    gap: 1rem;
  }
  
  .challenge-highlight-card {
    width: 100%;
  }
}
/* Premium Course Styles */
.premium-course-card {
  border-left: 4px solid #4caf50;
  background: linear-gradient(to right, #f9fff9, #ffffff);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.feature-list li {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: #2e7d32;
}

.feature-list li .icon {
  margin-right: 0.75rem;
  color: #4caf50;
}