/* Teacher Dashboard Styles */

/* Active Students Notification */
.active-students-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease-out;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-content .icon-checkmark {
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><path d="M13.3333 4L6 11.3333L2.66667 8" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
  background-size: contain;
}

@keyframes slideIn {
  from { 
    transform: translateX(100%); 
    opacity: 0; 
  }
  to { 
    transform: translateX(0); 
    opacity: 1; 
  }
}
.teacher-account-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4A4A8A 0%, #6B5B95 100%);
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 2rem 1rem;
  position: relative;
}

.teacher-account-wrapper::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.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.teacher-account-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Back Button */
.back-link {
  margin-bottom: 1.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6B7280;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.back-btn:hover {
  color: #374151;
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

/* Header */
.account-header {
  text-align: center;
  margin-bottom: 2rem;
}

.account-title {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F15B6C;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

/* SSO Section */
.sso-section {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  background: #FFFFFF;
  color: #374151;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sso-btn:hover {
  border-color: #2BB673;
  background: #F0FDF4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.2);
}

.sso-btn:active {
  transform: translateY(0);
}

.sso-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.google-btn svg {
  width: 18px;
  height: 18px;
}

.sso-btn:focus {
  outline: none;
  border-color: #2BB673;
  background: #F0FDF4;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.15);
}

.clever-btn:focus {
  outline: none;
  border-color: #2BB673;
  background: #F0FDF4;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.15);
}

.clever-btn svg {
  width: 18px;
  height: 18px;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #E5E7EB;
}

.divider-text {
  background: #FFFFFF;
  padding: 0 1rem;
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Form */
.teacher-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  font-family: inherit;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #FFFFFF;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #2BB673;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.15);
}

.form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input::placeholder {
  color: #9CA3AF;
}

/* Checkboxes */
.checkbox-group {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #D1D5DB;
  border-radius: 4px;
  background: #FFFFFF;
  flex-shrink: 0;
  margin-top: 0.125rem;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom {
  background: #2BB673;
  border-color: #2BB673;
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-input:focus + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.1);
}

.checkbox-text {
  flex: 1;
  line-height: 1.5;
}

.checkbox-text .link {
  color: #2BB673;
  text-decoration: none;
  font-weight: 600;
}

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

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #2BB673;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
  background: #249c62;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.3);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled,
.submit-btn.disabled {
  background: #9CA3AF;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Error Messages */
.form-errors {
  color: #EF4444;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  margin-top: 1rem;
  display: none;
  padding: 0.75rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 6px;
}

/* Signup Link */
.signup-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E7EB;
}

.signup-link p {
  margin: 0;
  font-size: 0.875rem;
  color: #6B7280;
}

.signup-link .link {
  color: #2BB673;
  text-decoration: none;
  font-weight: 600;
}

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

/* Progress Indicator */
.progress-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

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

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E5E7EB;
  border: 2px solid #E5E7EB;
  transition: all 0.2s ease;
}

.progress-step.completed .progress-dot {
  background: #2BB673;
  border-color: #2BB673;
}

.progress-step.active .progress-dot {
  background: #2BB673;
  border-color: #2BB673;
}

.progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-step.completed .progress-label {
  color: #2BB673;
}

.progress-step.active .progress-label {
  color: #2BB673;
}

.progress-line {
  width: 40px;
  height: 2px;
  background: #E5E7EB;
  margin: 0 0.5rem;
}

/* Account Subtitle */
.account-subtitle {
  color: #6B7280;
  font-size: 1rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* Radio Buttons */
.import-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
}

.radio-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #D1D5DB;
  border-radius: 50%;
  background: #FFFFFF;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.radio-input:checked + .radio-custom {
  border-color: #2BB673;
}

.radio-input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2BB673;
}

.radio-input:focus + .radio-custom {
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.1);
}

.radio-text {
  flex: 1;
}

/* File Upload */
.file-upload {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border: 2px dashed #D1D5DB;
  border-radius: 8px;
  background: #F9FAFB;
  color: #6B7280;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-label:hover {
  border-color: #2BB673;
  background: #F0FDF4;
  color: #2BB673;
}

.file-label svg {
  width: 20px;
  height: 20px;
}

.file-help {
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: 0.5rem;
}

/* Student List */
.student-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.student-entry {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}

.student-input {
  padding: 0.75rem 0.875rem;
  border: 2px solid #E5E7EB;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

.student-input:focus {
  outline: none;
  border-color: #2BB673;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.1);
}

.student-input::placeholder {
  color: #9CA3AF;
}

.remove-student-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: #FEF2F2;
  color: #EF4444;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-student-btn:hover {
  background: #FEE2E2;
}

.remove-student-btn svg {
  width: 16px;
  height: 16px;
}

.add-student-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px dashed #D1D5DB;
  background: #F9FAFB;
  color: #6B7280;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.add-student-btn:hover {
  border-color: #2BB673;
  background: #F0FDF4;
  color: #2BB673;
}

.add-student-btn svg {
  width: 16px;
  height: 16px;
}

/* Success Icon */
.success-icon {
  text-align: center;
  margin-bottom: 2rem;
}

/* Account Summary */
.account-summary {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #E5E7EB;
}

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

.summary-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.summary-value {
  color: #6B7280;
  font-size: 0.875rem;
}

/* Next Steps */
.next-steps {
  margin-bottom: 2rem;
}

.steps-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1rem;
  font-family: 'Fredoka', 'Quicksand', sans-serif;
}

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

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #2BB673;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 600;
  color: #1F2937;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.step-description {
  color: #6B7280;
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.primary-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: #2BB673;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.primary-action-btn:hover {
  background: #249c62;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.3);
}

.primary-action-btn svg {
  width: 20px;
  height: 20px;
}

.secondary-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  background: #FFFFFF;
  color: #374151;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.secondary-action-btn:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
}

/* Help Section */
.help-section {
  border-top: 1px solid #E5E7EB;
  padding-top: 1.5rem;
}

.help-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  text-align: center;
}

.help-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2BB673;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.help-link:hover {
  color: #249c62;
}

.help-link svg {
  width: 16px;
  height: 16px;
}

/* Quick Actions */
.quick-actions {
  margin-bottom: 2rem;
}

.actions-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1rem;
  font-family: 'Fredoka', 'Quicksand', sans-serif;
}

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

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: #F9FAFB;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.action-card:hover {
  border-color: #2BB673;
  background: #F0FDF4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43, 182, 115, 0.2);
}

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #2BB673;
  color: white;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.action-icon svg {
  width: 24px;
  height: 24px;
}

.action-title {
  font-weight: 600;
  color: #1F2937;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.action-description {
  color: #6B7280;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Recent Activity */
.recent-activity {
  margin-bottom: 2rem;
}

.activity-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1rem;
  font-family: 'Fredoka', 'Quicksand', sans-serif;
}

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

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #F9FAFB;
  border-radius: 8px;
}

.activity-icon {
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.activity-time {
  color: #6B7280;
  font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 640px) {
  .teacher-account-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .account-title {
    font-size: 1.5rem;
  }
  
  .sso-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .form-input {
    padding: 0.75rem 0.875rem;
  }
  
  .submit-btn {
    padding: 0.75rem 1rem;
  }
  
  .student-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .remove-student-btn {
    width: 100%;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .teacher-account-wrapper {
    padding: 1rem 0.5rem;
  }
  
  .teacher-account-card {
    padding: 1.5rem 1rem;
  }
  
  .account-title {
    font-size: 1.375rem;
  }
  
  .checkbox-text {
    font-size: 0.8125rem;
  }
  
  .progress-indicator {
    gap: 0.25rem;
  }
  
  .progress-line {
    width: 20px;
  }
  
  .progress-label {
    font-size: 0.625rem;
  }
}

/* OTP Styles */
.otp-container {
  margin-bottom: 2rem;
}

.otp-inputs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.otp-input {
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  background: #FFFFFF;
  transition: all 0.2s ease;
  font-family: inherit;
}

.otp-input:focus {
  outline: none;
  border-color: #F15B6C;
  box-shadow: 0 0 0 3px rgba(241, 91, 108, 0.1);
}

.otp-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.otp-error {
  color: #EF4444;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 0.5rem;
  display: none;
}

.resend-section {
  text-align: center;
  margin-top: 1.5rem;
}

.resend-text {
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.resend-btn {
  background: none;
  border: none;
  color: #F15B6C;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
  padding: 0;
}

.resend-btn:hover:not(:disabled) {
  color: #D63384;
}

.resend-btn:disabled {
  color: #9CA3AF;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .otp-inputs {
    gap: 0.5rem;
  }
  
  .otp-input {
    width: 3rem;
    height: 3rem;
    font-size: 1.125rem;
  }
}

/* Class Import Styles */
.classes-container {
  margin-bottom: 2rem;
}

.class-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #FFFFFF;
  transition: all 0.2s ease;
  min-height: 60px;
}

.class-item:hover {
  border-color: #F15B6C;
  box-shadow: 0 2px 8px rgba(241, 91, 108, 0.1);
}

.classes-container .checkbox-label {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.classes-container .class-name {
  font-weight: 600;
  color: #374151;
  margin-left: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.classes-container .grade-select {
  padding: 0.5rem 0.75rem;
  border: 2px solid #E5E7EB;
  border-radius: 6px;
  background: #FFFFFF;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  min-width: 120px;
  flex-shrink: 0;
  margin-left: 1rem;
}

.classes-container .grade-select:focus {
  outline: none;
  border-color: #F15B6C;
  box-shadow: 0 0 0 3px rgba(241, 91, 108, 0.1);
}

/* Style for the "Select Grade" option */
.classes-container .grade-select option[value=""] {
  color: #9CA3AF;
  font-style: italic;
}

.no-classes {
  text-align: center;
  padding: 2rem;
  color: #6B7280;
}

.no-classes p {
  margin: 0.5rem 0;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  background: #FFFFFF;
  color: #374151;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.secondary-btn:hover {
  border-color: #F15B6C;
  color: #F15B6C;
  background: #FEF2F2;
}

.secondary-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 480px) {
  .class-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .class-grade {
    width: 100%;
  }
  
  .grade-select {
    width: 100%;
  }
}

/* Students Import Styles */
.students-container {
  margin-bottom: 2rem;
}

.class-section {
  margin-bottom: 2rem;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}

.class-header {
  background: #F9FAFB;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.class-title {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.student-count {
  font-size: 0.875rem;
  color: #6B7280;
  font-weight: 500;
}

.students-list {
  padding: 0;
}

.student-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #F3F4F6;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

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

.student-item:hover {
  background: #F9FAFB;
}

.student-info {
  flex: 1;
  display: flex;
  align-items: center;
}

.student-name {
  font-weight: 600;
  color: #374151;
  margin-left: 0.75rem;
}

.student-grade {
  flex-shrink: 0;
}

.grade-select {
  padding: 0.875rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #FFFFFF;
  box-sizing: border-box;
}

.grade-select:focus {
  outline: none;
  border-color: #2BB673;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.15);
}

/* Style for the "Select Grade" option in students import */
.grade-select option[value=""] {
  color: #9CA3AF;
  font-style: italic;
}

.no-students {
  text-align: center;
  padding: 2rem;
  color: #6B7280;
}

.no-students p {
  margin: 0.5rem 0;
}

@media (max-width: 480px) {
  .student-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }
  
  .student-grade {
    width: 100%;
  }
  
  .grade-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #FFFFFF;
    box-sizing: border-box;
  }
  
  .grade-select:focus {
    outline: none;
    border-color: #2BB673;
    box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.15);
  }
  
  .grade-select option[value=""] {
    color: #9CA3AF;
    font-style: italic;
  }
  
  .class-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Student Creation Styles */
.student-input-container {
  margin-bottom: 1rem;
}

.student-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}

.student-instructions {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.student-instructions h4 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.student-instructions ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.student-instructions li {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 0.25rem;
}

.examples {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.examples code {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: #374151;
  font-family: 'Courier New', monospace;
}

@media (max-width: 480px) {
  .examples {
    flex-direction: column;
  }
  
  .student-instructions {
    padding: 0.75rem;
  }
}

/* Dashboard Layout */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background-color: #F9FAFB;
}

.sidebar {
  width: 240px;
  background-color: #FFFFFF;
  border-right: 1px solid #E5E7EB;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar .logo {
  padding: 0 1.5rem 1rem;
  text-align: center;
}

.sidebar .logo-image {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.sidebar .main-nav ul,
.sidebar .bottom-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .bottom-nav {
  margin-top: auto;
}

.sidebar .nav-item {
  margin-bottom: 0.25rem;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #6B7280;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar .nav-link:hover {
  background-color: #F3F4F6;
  color: #1F2937;
}

.sidebar .nav-item.active .nav-link {
  background: linear-gradient(135deg, #F15B6C 0%, #E04455 100%);
  color: #FFFFFF;
  border-left: 4px solid #F15B6C;
  padding-left: calc(1.5rem - 4px);
  box-shadow: 0 4px 12px rgba(241, 91, 108, 0.2);
}

.sidebar .nav-item .nav-link span[class^="icon-"] {
  margin-right: 0.75rem;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.sidebar .nav-item.active .nav-link span[class^="icon-"] {
  color: #FFFFFF;
}

/* SVG Icons */
.icon-getting-started::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5z'/%3E%3Cpath d='M2 17l10 5 10-5'/%3E%3Cpath d='M2 12l10 5 10-5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-dashboard::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-assignments::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10,9 9,9 8,9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-reports::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 20V10'/%3E%3Cpath d='M12 20V4'/%3E%3Cpath d='M6 20v-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-manage-classes::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-manage-students::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpath d='M20 8v6'/%3E%3Cpath d='M23 11h-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-help::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-user::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-lock::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-left: 0.5rem;
}

.icon-checkmark::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232BB673' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 0.5rem;
}

.icon-circle::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 0.5rem;
}

.icon-arrow-right::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12,5 19,12 12,19'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.sidebar .nav-item .badge {
  background: linear-gradient(135deg, #F15B6C 0%, #E04455 100%);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(241, 91, 108, 0.3);
}

.sidebar .nav-item.disabled .nav-link {
  color: #9CA3AF;
  cursor: not-allowed;
}

.sidebar .nav-item.disabled .nav-link:hover {
  background-color: transparent;
  color: #9CA3AF;
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
  padding: 2rem;
  max-width: calc(100% - 240px);
  box-sizing: border-box;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.welcome-message h1 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
}

.welcome-message h1 span {
  color: #F15B6C;
}

.classroom-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grade-selector .form-input {
  padding: 0.5rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background-color: #FFFFFF;
  font-size: 0.9375rem;
  color: #374151;
}

/* Main Dashboard Card Layout */
.main-dashboard-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  gap: 3rem;
}

/* Dashboard Sections */
.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

/* Getting Started Section specific styling */
#getting-started-section .main-dashboard-card {
  display: flex;
  gap: 3rem;
}

.card-left {
  flex: 1;
  border-right: 1px solid #E5E7EB;
  padding-right: 2rem;
}

.card-right {
  flex: 3;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-right h2,
.card-right .instructions,
.card-right .actions {
  text-align: left;
  width: 100%;
  max-width: 400px;
}

/* Sections */
.getting-started-section,
.get-students-playing-section,
.faq-section {
  background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-top: 2rem;
}

.getting-started-section h2,
.get-students-playing-section h2,
.faq-section h2 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F15B6C;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Getting Started Progress */
.progress-bar-container {
  background-color: #E5E7EB;
  border-radius: 9999px;
  height: 8px;
  margin-bottom: 1.5rem;
  position: relative;
}

.progress-bar {
  background-color: #2BB673;
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease-in-out;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 0.875rem;
  color: #6B7280;
}

.getting-started-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.getting-started-steps .step {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #374151;
  margin-bottom: 0.75rem;
}

.getting-started-steps .step.completed {
  color: #2BB673;
  text-decoration: line-through;
  font-weight: 500;
}

/* Get Students Playing */
.get-students-playing-section .instructions {
  list-style: decimal;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  color: #374151;
  line-height: 1.6;
}

.get-students-playing-section .instructions li {
  margin-bottom: 0.5rem;
}

.card-right .instructions a {
  color: var(--color-gray-800);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  transition: color 0.2s ease;
  font-weight: 400;
}

.card-right .instructions a:hover {
  color: var(--color-primary);
}

.get-students-playing-section .actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.get-students-playing-section .actions .btn-primary {
  background: linear-gradient(135deg, #F15B6C 0%, #E04455 100%);
  color: #FFFFFF;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(241, 91, 108, 0.3);
  font-size: 1rem;
}

.get-students-playing-section .actions .btn-primary:hover {
  background: linear-gradient(135deg, #E04455 0%, #D13A4B 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(241, 91, 108, 0.4);
}

.get-students-playing-section .actions .link {
  color: #2563EB;
  text-decoration: none;
  font-size: 0.9375rem;
}

.get-students-playing-section .actions .link:hover {
  text-decoration: underline;
}

.students-played-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E7EB;
}

.meter-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1F2937;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.meter-circle .count {
  font-size: 3rem;
  line-height: 1;
  color: #F15B6C;
  font-weight: 800;
}

.meter-circle .label {
  font-size: 0.875rem;
  color: #6B7280;
}

.students-played-meter .link {
  color: #2563EB;
  text-decoration: none;
  font-size: 0.9375rem;
}

.students-played-meter .link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq-item {
  border-bottom: 1px solid #E5E7EB;
  padding: 1rem 0;
}

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

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.faq-item h3:hover {
  color: #1F2937;
}

.faq-answer {
  padding: 1.5rem 1.5rem 1.5rem;
  color: #4a5568;
  line-height: 1.6;
  transition: all 0.3s ease;
  display: none;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

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

.faq-answer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.faq-answer a:hover {
  color: #5a67d8;
  text-decoration: underline;
}

.faq-item.expanded {
  background: white;
  border-color: #667eea;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.faq-item.expanded h3 {
  background: rgba(102, 126, 234, 0.05);
}

.faq-item.expanded .icon-arrow-right {
  transform: rotate(90deg);
}

/* Help Section Styles */
.help-header {
  text-align: center;
  margin-bottom: 3rem;
}

.help-header h2 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #F15B6C;
  margin-bottom: 1rem;
}

.help-header p {
  font-size: 1.1rem;
  color: #6B7280;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-container {
  max-width: 500px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

#helpSearchInput {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
}

#helpSearchInput::placeholder {
  color: #a0aec0;
}

#helpSearchButton {
  background: #F15B6C;
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#helpSearchButton:hover {
  background: #E04455;
}

.help-categories {
  display: grid;
  gap: 2rem;
}

.category {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.category h3 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F15B6C;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #F15B6C;
  padding-bottom: 0.75rem;
}

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

.category .faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.category .faq-item:hover {
  border-color: #F15B6C;
  box-shadow: 0 4px 20px rgba(241, 91, 108, 0.1);
}

.category .faq-item.expanded {
  background: white;
  border-color: #F15B6C;
  box-shadow: 0 8px 30px rgba(241, 91, 108, 0.15);
}

.category .faq-item h4 {
  margin: 0;
  padding: 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.3s ease;
  user-select: none;
}

.category .faq-item h4:hover {
  background: rgba(241, 91, 108, 0.05);
}

.category .faq-item h4:focus {
  outline: none;
  background: rgba(241, 91, 108, 0.1);
}

.category .faq-item.expanded h4 {
  background: rgba(241, 91, 108, 0.05);
}

.category .faq-item.expanded .icon-arrow-right {
  transform: rotate(90deg);
}

.category .faq-answer {
  padding: 1.5rem;
  color: #4a5568;
  line-height: 1.6;
  transition: all 0.3s ease;
  display: none;
}

.category .faq-answer p {
  margin-bottom: 1rem;
}

.category .faq-answer p:last-child {
  margin-bottom: 0;
}

.category .faq-answer ul,
.category .faq-answer ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

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

.category .faq-answer a {
  color: #F15B6C;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.category .faq-answer a:hover {
  color: #E04455;
  text-decoration: underline;
}

/* Search match highlighting */
.category .faq-item.search-match {
  border-color: #f6ad55;
  background: #fffaf0;
}

.category .faq-item.search-match h4 {
  color: #c05621;
}

/* Responsive Design for Help Section */
@media (max-width: 768px) {
  .help-header h2 {
    font-size: 2rem;
  }
  
  .help-header p {
    font-size: 1rem;
  }
  
  .category {
    padding: 1.5rem;
  }
  
  .category h3 {
    font-size: 1.25rem;
  }
  
  .category .faq-item h4 {
    padding: 1.25rem;
  }
  
  .category .faq-answer {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .help-header {
    margin-bottom: 2rem;
  }
  
  .help-header h2 {
    font-size: 1.75rem;
  }
  
  .category {
    padding: 1rem;
  }
  
  .category .faq-item h4 {
    padding: 1rem;
  }
  
  .category .faq-answer {
    padding: 1rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
  }
  
  .main-content {
    max-width: 100%;
    padding: 1rem;
  }
  
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .welcome-message h1 {
    font-size: 1.25rem;
  }
  
  .getting-started-section,
  .get-students-playing-section,
  .faq-section {
    padding: 1.5rem;
  }
  
  .get-students-playing-section .actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main-dashboard-card {
    flex-direction: column;
    gap: 2rem;
  }
  
  .card-left {
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
    padding-right: 0;
    padding-bottom: 2rem;
  }
  
  .card-right {
    padding-left: 0;
  }
}

/* Manage Classes Section */
.manage-classes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.manage-classes-header h2 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F15B6C;
  margin: 0;
}

.create-class-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #F15B6C;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.create-class-btn:hover {
  background: #E04A5A;
  transform: translateY(-1px);
}

.create-class-btn svg {
  width: 16px;
  height: 16px;
}

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

.class-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #E5E7EB;
  position: relative;
  transition: all 0.2s ease;
}

.class-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

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

.class-grade-tag {
  background: #E3F2FD;
  color: #1976D2;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.class-settings-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  color: #6B7280;
  transition: all 0.2s ease;
}

.class-settings-btn:hover {
  background: #F3F4F6;
  color: #374151;
}

.class-settings-btn svg {
  width: 16px;
  height: 16px;
}

.class-title {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 0.5rem 0;
}

.class-student-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.class-student-count svg {
  width: 16px;
  height: 16px;
}

.class-code {
  color: #6B7280;
  font-size: 0.875rem;
  font-family: 'Courier New', monospace;
  margin-bottom: 1.5rem;
}

.class-actions {
  display: flex;
  gap: 0.75rem;
}

.enter-class-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: #10B981;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.enter-class-btn:hover:not(:disabled) {
  background: #059669;
}

.enter-class-btn:disabled {
  background: #D1D5DB;
  color: #9CA3AF;
  cursor: not-allowed;
}

/* Class Settings Dropdown */
.class-settings-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 160px;
  display: none;
}

.class-settings-dropdown.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-item:hover {
  background: #F3F4F6;
}

.dropdown-item.delete {
  color: #DC2626;
}

.dropdown-item.delete:hover {
  background: #FEF2F2;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
}

.no-classes-message {
  text-align: center;
  padding: 3rem 1rem;
  color: #6B7280;
}

.no-classes-message p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

/* Manage Students Section */
.manage-students-header {
  margin-bottom: 2rem;
}

.manage-students-header h2 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F15B6C;
  margin: 0 0 0.5rem 0;
}

.manage-students-header p {
  color: #6B7280;
  margin: 0;
}

.students-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: #6B7280;
}

/* Navigation Active States */
.sidebar .nav-item[data-section] {
  cursor: pointer;
}

.sidebar .nav-item[data-section].active .nav-link {
  background: rgba(241, 91, 108, 0.1);
  color: #F15B6C;
}

.sidebar .nav-item[data-section].active .nav-link span[class^="icon-"] {
  color: #F15B6C;
}

/* Responsive Design for Manage Classes */
@media (max-width: 768px) {
  .manage-classes-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .classes-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .class-card {
    padding: 1rem;
  }
  
  .class-actions {
    flex-direction: column;
  }
  
  .enter-class-btn {
    width: 100%;
  }
  
  .class-settings-dropdown {
    position: fixed;
    top: auto;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .manage-classes-header h2 {
    font-size: 1.25rem;
  }
  
  .create-class-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }
  
  .class-title {
    font-size: 1.125rem;
  }
  
  .class-grade-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}

/* Manage Students Styles */
.class-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.class-details h3 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1E293B;
  margin: 0 0 0.5rem 0;
}

.class-code {
  font-size: 0.875rem;
  color: #64748B;
  margin: 0;
}

.add-students-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #F15B6C;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.add-students-btn:hover {
  background: #E04455;
  transform: translateY(-1px);
}

.add-students-btn svg {
  width: 16px;
  height: 16px;
}

.students-table-container {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  margin-top: 2rem;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.table-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  color: #6B7280;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tab-btn:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
}

.tab-btn.active {
  background: #F15B6C;
  border-color: #F15B6C;
  color: #FFFFFF;
}

.table-actions {
  display: flex;
  gap: 0.75rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.action-btn:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
}

.action-btn svg {
  width: 14px;
  height: 14px;
}

.table-wrapper {
  overflow-x: auto;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.students-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.students-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.students-table tr:hover {
  background: #F8FAFC;
}

.checkbox-col {
  width: 40px;
}

.table-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #F15B6C;
}

.name-col {
  min-width: 120px;
}

.student-name {
  font-weight: 500;
  color: #1E293B;
}

.username-col {
  min-width: 150px;
}

.student-username {
  font-weight: 500;
  color: #1E293B;
  margin-right: 0.5rem;
}

.username-actions {
  display: inline-flex;
  gap: 0.25rem;
  vertical-align: middle;
}

.username-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  color: #6B7280;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.username-action-btn:hover {
  background: #F3F4F6;
  color: #374151;
}

.username-action-btn svg {
  width: 12px;
  height: 12px;
}

.last-played-col {
  min-width: 120px;
}

.last-played {
  color: #6B7280;
}

.grade-override-col {
  min-width: 150px;
}

.grade-override-select {
  padding: 0.375rem 0.75rem;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.grade-override-select:focus {
  outline: none;
  border-color: #F15B6C;
  box-shadow: 0 0 0 3px rgba(241, 91, 108, 0.1);
}

.info-icon {
  margin-left: 0.25rem;
  color: #9CA3AF;
  cursor: help;
}

.actions-col {
  min-width: 100px;
}

.edit-btn {
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-right: 0.5rem;
}

.edit-btn:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
}

.delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #FECACA;
  border-radius: 4px;
  color: #DC2626;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-btn:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.delete-btn svg {
  width: 14px;
  height: 14px;
}

.no-students-message {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #6B7280;
}

.no-students-message p {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
}

.loading-students {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  color: #6B7280;
}

.loading-students p {
  margin: 0;
  font-size: 1rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.modal-header h3 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1E293B;
  margin: 0;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #6B7280;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #F3F4F6;
  color: #374151;
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin: 0 0 1rem 0;
  color: #374151;
  line-height: 1.5;
}

.warning-text {
  color: #DC2626 !important;
  font-size: 0.875rem;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem 1.5rem;
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-btn.secondary {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #374151;
}

.modal-btn.secondary:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
}

.modal-btn.danger {
  background: #DC2626;
  color: #FFFFFF;
}

.modal-btn.danger:hover:not(:disabled) {
  background: #B91C1C;
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive Styles for Manage Students */
@media (max-width: 768px) {
  .class-info {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .table-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .table-actions {
    justify-content: flex-start;
  }
  
  .students-table {
    font-size: 0.75rem;
  }
  
  .students-table th,
  .students-table td {
    padding: 0.75rem 1rem;
  }
  
  .username-col,
  .grade-override-col {
    min-width: 120px;
  }
  
  .actions-col {
    min-width: 80px;
  }
  
  .edit-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .delete-btn {
    width: 28px;
    height: 28px;
  }
  
  .delete-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .class-info {
    padding: 1rem;
  }
  
  .class-details h3 {
    font-size: 1.125rem;
  }
  
  .add-students-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
  
  .table-header {
    padding: 0.75rem 1rem;
  }
  
  .tab-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  .action-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  .students-table th,
  .students-table td {
    padding: 0.5rem 0.75rem;
  }
  
  .modal-content {
    margin: 1rem;
  }
  
  .modal-header,
  .modal-body,
  .modal-actions {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-btn {
    justify-content: center;
  }
}

.icon-play::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5,3 19,12 5,21'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-sign-out::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16,17 21,12 16,7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-lock::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-left: 0.5rem;
}

.icon-checkmark::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232BB673' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 0.5rem;
}

.icon-circle::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 0.5rem;
}

.icon-arrow-right::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12,5 19,12 12,19'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 0.5rem;
}

.sidebar .nav-item .badge {
  background: linear-gradient(135deg, #F15B6C 0%, #E04455 100%);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(241, 91, 108, 0.3);
}

.sidebar .nav-item.disabled .nav-link {
  color: #9CA3AF;
  cursor: not-allowed;
}

.sidebar .nav-item.disabled .nav-link:hover {
  background-color: transparent;
  color: #9CA3AF;
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
  padding: 2rem;
  max-width: calc(100% - 240px);
  box-sizing: border-box;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.welcome-message h1 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
}

.welcome-message h1 span {
  color: #F15B6C;
}

.classroom-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grade-selector .form-input {
  padding: 0.5rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background-color: #FFFFFF;
  font-size: 0.9375rem;
  color: #374151;
}

/* Main Dashboard Card Layout */
.main-dashboard-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  gap: 3rem;
}

/* Dashboard Sections */
.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

/* Getting Started Section specific styling */
#getting-started-section .main-dashboard-card {
  display: flex;
  gap: 3rem;
}

.card-left {
  flex: 1;
  border-right: 1px solid #E5E7EB;
  padding-right: 2rem;
}

.card-right {
  flex: 3;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-right h2,
.card-right .instructions,
.card-right .actions {
  text-align: left;
  width: 100%;
  max-width: 400px;
}

/* Sections */
.getting-started-section,
.get-students-playing-section,
.faq-section {
  background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-top: 2rem;
}

.getting-started-section h2,
.get-students-playing-section h2,
.faq-section h2 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F15B6C;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Getting Started Progress */
.progress-bar-container {
  background-color: #E5E7EB;
  border-radius: 9999px;
  height: 8px;
  margin-bottom: 1.5rem;
  position: relative;
}

.progress-bar {
  background-color: #2BB673;
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease-in-out;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 0.875rem;
  color: #6B7280;
}

.getting-started-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.getting-started-steps .step {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #374151;
  margin-bottom: 0.75rem;
}

.getting-started-steps .step.completed {
  color: #2BB673;
  text-decoration: line-through;
  font-weight: 500;
}

/* Get Students Playing */
.get-students-playing-section .instructions {
  list-style: decimal;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  color: #374151;
  line-height: 1.6;
}

.get-students-playing-section .instructions li {
  margin-bottom: 0.5rem;
}

.card-right .instructions a {
  color: var(--color-gray-800);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  transition: color 0.2s ease;
  font-weight: 400;
}

.card-right .instructions a:hover {
  color: var(--color-primary);
}

.get-students-playing-section .actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.get-students-playing-section .actions .btn-primary {
  background: linear-gradient(135deg, #F15B6C 0%, #E04455 100%);
  color: #FFFFFF;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(241, 91, 108, 0.3);
  font-size: 1rem;
}

.get-students-playing-section .actions .btn-primary:hover {
  background: linear-gradient(135deg, #E04455 0%, #D13A4B 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(241, 91, 108, 0.4);
}

.get-students-playing-section .actions .link {
  color: #2563EB;
  text-decoration: none;
  font-size: 0.9375rem;
}

.get-students-playing-section .actions .link:hover {
  text-decoration: underline;
}

.students-played-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E7EB;
}

.meter-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1F2937;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.meter-circle .count {
  font-size: 3rem;
  line-height: 1;
  color: #F15B6C;
  font-weight: 800;
}

.meter-circle .label {
  font-size: 0.875rem;
  color: #6B7280;
}

.students-played-meter .link {
  color: #2563EB;
  text-decoration: none;
  font-size: 0.9375rem;
}

.students-played-meter .link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq-item {
  border-bottom: 1px solid #E5E7EB;
  padding: 1rem 0;
}

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

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.faq-item h3:hover {
  color: #1F2937;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
  }
  
  .main-content {
    max-width: 100%;
    padding: 1rem;
  }
  
  .getting-started-section,
  .get-students-playing-section,
  .faq-section {
    padding: 1.5rem;
  }
  
  .get-students-playing-section .actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main-dashboard-card {
    flex-direction: column;
    gap: 2rem;
  }
  
  .card-left {
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
    padding-right: 0;
    padding-bottom: 2rem;
  }
  
  .card-right {
    padding-left: 0;
  }
}

/* Manage Classes Section */
.manage-classes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.manage-classes-header h2 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F15B6C;
  margin: 0;
}

.create-class-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #F15B6C;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.create-class-btn:hover {
  background: #E04A5A;
  transform: translateY(-1px);
}

.create-class-btn svg {
  width: 16px;
  height: 16px;
}

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

.class-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #E5E7EB;
  position: relative;
  transition: all 0.2s ease;
}

.class-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

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

.class-grade-tag {
  background: #E3F2FD;
  color: #1976D2;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.class-settings-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  color: #6B7280;
  transition: all 0.2s ease;
}

.class-settings-btn:hover {
  background: #F3F4F6;
  color: #374151;
}

.class-settings-btn svg {
  width: 16px;
  height: 16px;
}

.class-title {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 0.5rem 0;
}

.class-student-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.class-student-count svg {
  width: 16px;
  height: 16px;
}

.class-code {
  color: #6B7280;
  font-size: 0.875rem;
  font-family: 'Courier New', monospace;
  margin-bottom: 1.5rem;
}

.class-actions {
  display: flex;
  gap: 0.75rem;
}

.enter-class-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: #10B981;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.enter-class-btn:hover:not(:disabled) {
  background: #059669;
}

.enter-class-btn:disabled {
  background: #D1D5DB;
  color: #9CA3AF;
  cursor: not-allowed;
}

/* Class Settings Dropdown */
.class-settings-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 160px;
  display: none;
}

.class-settings-dropdown.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-item:hover {
  background: #F3F4F6;
}

.dropdown-item.delete {
  color: #DC2626;
}

.dropdown-item.delete:hover {
  background: #FEF2F2;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
}

.no-classes-message {
  text-align: center;
  padding: 3rem 1rem;
  color: #6B7280;
}

.no-classes-message p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

/* Manage Students Section */
.manage-students-header {
  margin-bottom: 2rem;
}

.manage-students-header h2 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F15B6C;
  margin: 0 0 0.5rem 0;
}

.manage-students-header p {
  color: #6B7280;
  margin: 0;
}

.students-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: #6B7280;
}

/* Navigation Active States */
.sidebar .nav-item[data-section] {
  cursor: pointer;
}

.sidebar .nav-item[data-section].active .nav-link {
  background: rgba(241, 91, 108, 0.1);
  color: #F15B6C;
}

.sidebar .nav-item[data-section].active .nav-link span[class^="icon-"] {
  color: #F15B6C;
}

/* Responsive Design for Manage Classes */
@media (max-width: 768px) {
  .manage-classes-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .classes-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .class-card {
    padding: 1rem;
  }
  
  .class-actions {
    flex-direction: column;
  }
  
  .enter-class-btn {
    width: 100%;
  }
  
  .class-settings-dropdown {
    position: fixed;
    top: auto;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .manage-classes-header h2 {
    font-size: 1.25rem;
  }
  
  .create-class-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }
  
  .class-title {
    font-size: 1.125rem;
  }
  
  .class-grade-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}

/* Manage Students Styles */
.class-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.class-details h3 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1E293B;
  margin: 0 0 0.5rem 0;
}

.class-code {
  font-size: 0.875rem;
  color: #64748B;
  margin: 0;
}

.add-students-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #F15B6C;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.add-students-btn:hover {
  background: #E04455;
  transform: translateY(-1px);
}

.add-students-btn svg {
  width: 16px;
  height: 16px;
}

.students-table-container {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  margin-top: 2rem;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.table-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  color: #6B7280;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tab-btn:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
}

.tab-btn.active {
  background: #F15B6C;
  border-color: #F15B6C;
  color: #FFFFFF;
}

.table-actions {
  display: flex;
  gap: 0.75rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.action-btn:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
}

.action-btn svg {
  width: 14px;
  height: 14px;
}

.table-wrapper {
  overflow-x: auto;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.students-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.students-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.students-table tr:hover {
  background: #F8FAFC;
}

.checkbox-col {
  width: 40px;
}

.table-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #F15B6C;
}

.name-col {
  min-width: 120px;
}

.student-name {
  font-weight: 500;
  color: #1E293B;
}

.username-col {
  min-width: 150px;
}

.student-username {
  font-weight: 500;
  color: #1E293B;
  margin-right: 0.5rem;
}

.username-actions {
  display: inline-flex;
  gap: 0.25rem;
  vertical-align: middle;
}

.username-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  color: #6B7280;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.username-action-btn:hover {
  background: #F3F4F6;
  color: #374151;
}

.username-action-btn svg {
  width: 12px;
  height: 12px;
}

.last-played-col {
  min-width: 120px;
}

.last-played {
  color: #6B7280;
}

.grade-override-col {
  min-width: 150px;
}

.grade-override-select {
  padding: 0.375rem 0.75rem;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.grade-override-select:focus {
  outline: none;
  border-color: #F15B6C;
  box-shadow: 0 0 0 3px rgba(241, 91, 108, 0.1);
}

.info-icon {
  margin-left: 0.25rem;
  color: #9CA3AF;
  cursor: help;
}

.actions-col {
  min-width: 100px;
}

.edit-btn {
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-right: 0.5rem;
}

.edit-btn:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
}

.delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #FECACA;
  border-radius: 4px;
  color: #DC2626;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-btn:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.delete-btn svg {
  width: 14px;
  height: 14px;
}

.no-students-message {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #6B7280;
}

.no-students-message p {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
}

.loading-students {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  color: #6B7280;
}

.loading-students p {
  margin: 0;
  font-size: 1rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.modal-header h3 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1E293B;
  margin: 0;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #6B7280;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #F3F4F6;
  color: #374151;
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin: 0 0 1rem 0;
  color: #374151;
  line-height: 1.5;
}

.warning-text {
  color: #DC2626 !important;
  font-size: 0.875rem;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.5rem 1.5rem 1.5rem;
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-btn.secondary {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #374151;
}

.modal-btn.secondary:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
}

.modal-btn.danger {
  background: #DC2626;
  color: #FFFFFF;
}

.modal-btn.danger:hover:not(:disabled) {
  background: #B91C1C;
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive Styles for Manage Students */
@media (max-width: 768px) {
  .class-info {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .table-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .table-actions {
    justify-content: flex-start;
  }
  
  .students-table {
    font-size: 0.75rem;
  }
  
  .students-table th,
  .students-table td {
    padding: 0.75rem 1rem;
  }
  
  .username-col,
  .grade-override-col {
    min-width: 120px;
  }
  
  .actions-col {
    min-width: 80px;
  }
  
  .edit-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .delete-btn {
    width: 28px;
    height: 28px;
  }
  
  .delete-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .class-info {
    padding: 1rem;
  }
  
  .class-details h3 {
    font-size: 1.125rem;
  }
  
  .add-students-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
  
  .table-header {
    padding: 0.75rem 1rem;
  }
  
  .tab-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  .action-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  .students-table th,
  .students-table td {
    padding: 0.5rem 0.75rem;
  }
  
  .modal-content {
    margin: 1rem;
  }
  
  .modal-header,
  .modal-body,
  .modal-actions {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-btn {
    justify-content: center;
  }
}

.icon-play::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5,3 19,12 5,21'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
} 