/* 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;
}

/* Feedback Widget */
.feedback-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: widgetSlideIn 0.3s ease-out;
  border: 1px solid #E5E7EB;
}

.feedback-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #4A4A8A 0%, #6B5B95 100%);
  border-radius: 12px 12px 0 0;
  color: white;
}

.feedback-widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.feedback-icon {
  font-size: 16px;
}

.feedback-minimize-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-minimize-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.feedback-widget-body {
  padding: 20px;
}

.feedback-question {
  margin: 0 0 16px;
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
}

#feedback-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

#feedback-textarea:focus {
  outline: none;
  border-color: #4A4A8A;
  box-shadow: 0 0 0 2px rgba(74, 74, 138, 0.1);
}

.feedback-widget-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.feedback-widget-actions .btn-primary,
.feedback-widget-actions .btn-secondary {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.feedback-widget-actions .btn-primary {
  background: #4A4A8A;
  color: white;
}

.feedback-widget-actions .btn-primary:hover {
  background: #3A3A7A;
}

.feedback-widget-actions .btn-primary:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
}

.feedback-widget-actions .btn-secondary {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #D1D5DB;
}

.feedback-widget-actions .btn-secondary:hover {
  background: #E5E7EB;
}

/* Feedback Toggle Button */
.feedback-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #4A4A8A 0%, #6B5B95 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(74, 74, 138, 0.3);
  z-index: 999;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  animation: toggleBounce 2s infinite;
}

.feedback-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 74, 138, 0.4);
}

.feedback-toggle-icon {
  font-size: 16px;
}

.feedback-toggle-text {
  font-size: 13px;
}

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

@keyframes toggleBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}


.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: 1px;
  width: 3px;
  height: 8px;
  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: #2BB673;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 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: #2BB673;
  box-shadow: 0 2px 8px rgba(43, 182, 115, 0.1);
}

.class-item:has(.checkbox-input:checked) {
  border-color: #2BB673;
  box-shadow: 0 2px 8px rgba(43, 182, 115, 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: #2BB673;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 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-item:has(.checkbox-input:checked) {
  background: #F0F9FF;
  border-left: 3px solid #2BB673;
}

.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;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.examples div {
  font-size: 0.875rem;
  color: #374151;
  font-family: 'Quicksand', sans-serif;
}

@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;
}

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

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

.sidebar .nav-item.locked .nav-link .icon-lock {
  opacity: 0.8;
}

/* Locked Navigation Hint Tooltip */
.locked-nav-hint {
  position: fixed;
  background: #1F2937;
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 280px;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.locked-nav-hint.show {
  opacity: 1;
  transform: translateX(0);
}

.locked-nav-hint::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #1F2937;
}

.locked-nav-hint.hint-left::before {
  left: auto;
  right: -6px;
  border-right: none;
  border-left: 6px solid #1F2937;
}

.locked-nav-hint-close {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.locked-nav-hint-close:hover {
  opacity: 1;
}

/* Submenu Styles */
.sidebar .nav-item-has-submenu {
  position: relative;
}

.sidebar .nav-item-has-submenu .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0.5rem;
  min-width: 200px;
  white-space: nowrap;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

/* For bottom-nav, submenu opens to the left (west) */
.sidebar .bottom-nav .nav-item-has-submenu .submenu {
  top: auto;
  bottom: 0;
  left: 100%;
  margin-left: 0.5rem;
  margin-bottom: 0;
  transform: translateX(-10px);
}

.sidebar .nav-item-has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sidebar .bottom-nav .nav-item-has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sidebar .nav-item-has-submenu .submenu li {
  margin: 0;
}

.sidebar .nav-item-has-submenu .submenu li:first-child .submenu-link {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.sidebar .nav-item-has-submenu .submenu li:last-child .submenu-link {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

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

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

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

/* Submenu Arrow Icon */
.sidebar .nav-item-has-submenu .nav-link .icon-submenu-arrow {
  margin-left: auto;
  margin-right: 0;
}

.icon-submenu-arrow::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%3Cpolyline points='9,18 15,12 9,6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* 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;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

/* Class Code Header Display */
.class-code-header-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
}

.class-code-header-label {
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
}

.class-code-header-value {
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  letter-spacing: 0.5px;
  font-family: 'Courier New', monospace;
}

.copy-class-code-header-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #D1D5DB;
  background: white;
  color: #6B7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  margin-left: 4px;
}

.copy-class-code-header-btn:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  color: #374151;
}

.copy-class-code-header-btn svg {
  width: 14px;
  height: 14px;
}

.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;
}

.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;
  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: var(--color-primary);
  color: #FFFFFF;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.3);
  font-size: 1rem;
}

.get-students-playing-section .actions .btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 182, 115, 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: 800px;
  margin: 0 auto;
  width: 100%;
}

.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;
  width: 100%;
}

.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;
  }
  
  .header-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
  }
  
  .class-code-header-display {
    width: 100%;
    justify-content: space-between;
  }
  
  .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: #2BB673;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 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;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

/* Class Code Header Display */
.class-code-header-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
}

.class-code-header-label {
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
}

.class-code-header-value {
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  letter-spacing: 0.5px;
  font-family: 'Courier New', monospace;
}

.copy-class-code-header-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #D1D5DB;
  background: white;
  color: #6B7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  margin-left: 4px;
}

.copy-class-code-header-btn:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  color: #374151;
}

.copy-class-code-header-btn svg {
  width: 14px;
  height: 14px;
}

.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;
}

.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;
  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: var(--color-primary);
  color: #FFFFFF;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.3);
  font-size: 1rem;
}

.get-students-playing-section .actions .btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 182, 115, 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: 800px;
  margin: 0 auto;
  width: 100%;
}

.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;
  width: 100%;
}

.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;
  }
  
  .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: #2BB673;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 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;
}

#btnLoading {
  gap: 0.5rem;
}

.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;
}

/* Assignments Section */
.assignments-header {
  margin-bottom: 2rem;
}

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

.assignments-header p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.assignments-content {
  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);
}

.assignments-placeholder {
  text-align: center;
  color: #6B7280;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* New page structure - sections are always visible */
.dashboard-section {
  display: block !important;
}

/* Create Assignment Section - Constrain height */
#create-assignment-section {
  display: flex !important;
  flex-direction: column;
  height: calc(100vh - 160px);
  max-height: calc(100vh - 160px);
  min-height: 600px;
  overflow: hidden;
}

/* Enter Class button states */
.enter-class-btn.selected {
  background-color: #E5E7EB;
  color: #6B7280;
  cursor: not-allowed;
  opacity: 0.7;
}

.enter-class-btn.selected:hover {
  background-color: #E5E7EB;
  color: #6B7280;
}

/* Assignments Page Styles */
#assignments-section {
  /* Ensure the assignments section can expand to fit all content */
  height: auto;
  min-height: auto;
}

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

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

.assignments-title p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.btn-create-assignment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #F15B6C 0%, #E04455 100%);
  color: #FFFFFF;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(241, 91, 108, 0.3);
  font-family: 'Quicksand', sans-serif;
  white-space: nowrap;
  text-decoration: none;
}

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

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

/* Filter Tabs */
.assignments-filters {
  margin-bottom: 2rem;
}

.filter-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  color: #6B7280;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Quicksand', sans-serif;
}

.filter-tab:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
  color: #374151;
}

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

.filter-tab svg {
  width: 16px;
  height: 16px;
}

/* Table Container */
.assignments-table-container {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  /* Ensure no vertical scrollbar */
  overflow: visible;
}

.table-wrapper {
  /* Removed overflow-x: auto to eliminate scrollbar */
  /* Ensure no vertical scrollbar */
  overflow: visible;
}

.assignments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-family: 'Quicksand', sans-serif;
}

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

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

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

.assignments-table tr:last-child td {
  border-bottom: none;
}

/* Assignment Name Column */
.assignment-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
}

.assignment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #F3F4F6;
  border-radius: 8px;
  color: #6B7280;
  flex-shrink: 0;
}

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

/* Assigned To Column */
.assigned-to {
  color: #374151;
  font-weight: 500;
  min-width: 100px;
}

/* Assignment Dates Column */
.assignment-dates {
  color: #6B7280;
  min-width: 100px;
}

/* Status Column */
.assignment-status {
  min-width: 120px;
}

.status-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  max-width: 120px;
}

.progress-bar-container {
  background-color: #E5E7EB;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.progress-bar {
  background: linear-gradient(90deg, #F15B6C 0%, #E04455 100%);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.75rem;
  color: #6B7280;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.0625rem;
}

/* Student completion indicator */
.student-completion-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.0625rem;
}

.student-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #6B7280;
}

.student-icon svg {
  width: 14px;
  height: 14px;
}

.student-completion-text {
  font-size: 0.75rem;
  color: #6B7280;
  font-weight: 500;
}

/* Actions Column */
.assignment-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 80px;
}

/* Action Menu */
.action-menu {
  position: relative;
}

.btn-action-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

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

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

.action-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

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

.action-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: 'Quicksand', sans-serif;
}

.action-menu-item:hover {
  background: #F9FAFB;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .assignments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .btn-create-assignment {
    align-self: flex-start;
  }
  
  .filter-tabs {
    gap: 0.5rem;
  }
  
  .filter-tab {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 768px) {
  .assignments-table th,
  .assignments-table td {
    padding: 0.75rem 1rem;
  }
  
  .assignment-name {
    min-width: 150px;
  }
  
  .assigned-to,
  .assignment-dates {
    min-width: 100px;
  }
  
  .assignment-status {
    min-width: 120px;
  }
  
  .assignment-actions {
    min-width: 80px;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-action-menu {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 640px) {
  .assignments-header h2 {
    font-size: 1.5rem;
  }
  
  .filter-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .filter-tab {
    justify-content: center;
  }
  
  .assignments-table {
    font-size: 0.8125rem;
  }
  
  .assignment-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .assignment-icon {
    width: 24px;
    height: 24px;
  }
  
  .assignment-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .assignment-stats {
    gap: 0.5rem;
  }
  
  .stat-item {
    padding: 0.625rem;
    gap: 0.375rem;
  }
  
  .stat-label {
    font-size: 0.8125rem;
  }
  
  .stat-value {
    font-size: 0.8125rem;
    padding: 0.1875rem 0.375rem;
  }
}

/* Create Assignment Page Styles */
.create-assignment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem 0;
  padding-top: 1rem;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  background: #FFFFFF;
  z-index: 100;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: #6B7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #374151;
}

.breadcrumb-separator {
  color: #D1D5DB;
}

.breadcrumb-current {
  color: #374151;
  font-weight: 500;
}

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

.btn-cancel {
  padding: 0.75rem 1.5rem;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Quicksand', sans-serif;
}

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

.btn-save {
  padding: 0.75rem 1.5rem;
  background: #F15B6C;
  border: 1px solid #F15B6C;
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Quicksand', sans-serif;
}

.btn-save:hover {
  background: #E53E3E;
  border-color: #E53E3E;
}

.btn-assign {
  padding: 0.75rem 1.5rem;
  background: #10B981;
  border: 1px solid #10B981;
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Quicksand', sans-serif;
}

.btn-assign:hover {
  background: #059669;
  border-color: #059669;
}

.create-assignment-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 3rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

/* Left Panel - Assignment Configuration */
.assignment-config-panel {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.assignment-name-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.assignment-filters-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

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

.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
  font-family: 'Quicksand', sans-serif;
  background-color: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

/* Searchable Dropdown Styles */
.searchable-dropdown {
  position: relative;
  width: 100%;
}

.searchable-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: 'Quicksand', sans-serif;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
  min-height: 44px;
}

.searchable-dropdown-trigger:hover {
  border-color: #9CA3AF;
}

.searchable-dropdown-trigger.active {
  border-color: #2BB673;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.1);
}

.searchable-dropdown-trigger:disabled,
.searchable-dropdown-trigger.disabled {
  background-color: #F3F4F6;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.searchable-dropdown-value {
  flex: 1;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-dropdown-value.placeholder {
  color: #9CA3AF;
}

.searchable-dropdown-arrow {
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.searchable-dropdown-trigger.active .searchable-dropdown-arrow {
  transform: rotate(180deg);
}

.searchable-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.searchable-dropdown-search {
  position: relative;
  padding: 0.75rem;
  border-bottom: 1px solid #E5E7EB;
}

.searchable-dropdown-search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}

.searchable-dropdown-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: 'Quicksand', sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

.searchable-dropdown-search-input:focus {
  border-color: #2BB673;
  box-shadow: 0 0 0 2px rgba(43, 182, 115, 0.1);
}

.searchable-dropdown-options {
  overflow-y: auto;
  max-height: 240px;
  padding: 0.25rem 0;
}

.searchable-dropdown-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #111827;
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.searchable-dropdown-option:hover {
  background-color: #F9FAFB;
}

.searchable-dropdown-option.selected {
  background-color: #F3F4F6;
  font-weight: 500;
}

.searchable-dropdown-option.selected::after {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3333 4L6 11.3333L2.66667 8' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.searchable-dropdown-option.no-results {
  padding: 1rem;
  text-align: center;
  color: #6B7280;
  cursor: default;
  font-style: italic;
}

.searchable-dropdown-option.no-results:hover {
  background-color: transparent;
}

@media (max-width: 768px) {
  .searchable-dropdown-menu {
    max-height: 250px;
  }
  
  .searchable-dropdown-options {
    max-height: 190px;
  }
}

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

.form-input {
  padding: 0.75rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  font-family: 'Quicksand', sans-serif;
}

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

.skill-search-section {
  position: relative;
}

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

.search-icon {
  position: absolute;
  left: 1rem;
  color: #9CA3AF;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
  font-family: 'Quicksand', sans-serif;
}

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

.topics-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
}

.topics-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.topics-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 8px;
  color: #0369A1;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.topics-hint svg {
  flex-shrink: 0;
  color: #0284C7;
}

/* Loading Indicator - Generic reusable utility styles */
/* Using util- prefix to avoid conflicts with existing loading-spinner classes */
.util-loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: #6B7280;
  text-align: center;
}

.util-loading-indicator p {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  margin: 0;
}

.util-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #E5E7EB;
  border-top: 3px solid #F15B6C;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

/* Scoped styles for create assignment page (backward compatibility) */
.topics-list .util-loading-indicator {
  padding: 3rem 1rem;
}

.topics-list .util-loading-indicator p {
  margin-top: 1rem;
}

.filter-select:disabled {
  background-color: #F3F4F6;
  cursor: not-allowed;
  opacity: 0.6;
}

.topic-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.topic-item:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.topic-item.topic-selected {
  background: #F0F9FF;
  border-color: #2BB673;
}

.topic-item.topic-partial {
  background: #FEF3C7;
  border-color: #F59E0B;
}

.topic-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #D1D5DB;
  border-radius: 4px;
  background: #FFFFFF;
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.topic-item.topic-selected .topic-checkbox {
  background: #2BB673;
  border-color: #2BB673;
}

.topic-item.topic-partial .topic-checkbox {
  background: #F59E0B;
  border-color: #F59E0B;
}

.topic-checkbox svg {
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.topic-item.topic-selected .topic-checkbox svg,
.topic-item.topic-partial .topic-checkbox svg {
  opacity: 1;
}

.topic-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  cursor: pointer;
}

.topic-name {
  font-weight: 600;
  color: #1F2937;
  margin: 0;
  font-size: 1rem;
}

.topic-count {
  font-size: 0.75rem;
  color: #6B7280;
}

.topic-arrow {
  color: #9CA3AF;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.topic-item:hover .topic-arrow {
  transform: translateX(2px);
}

/* Subtopics List */
.subtopics-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.subtopics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: #6B7280;
  cursor: pointer;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  font-family: 'Quicksand', sans-serif;
}

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

.current-topic-name {
  font-weight: 600;
  color: #1F2937;
  margin: 0;
  font-size: 1.125rem;
}

.select-all-button {
  padding: 0.5rem 1rem;
  background: #F15B6C;
  border: 1px solid #F15B6C;
  border-radius: 6px;
  color: #FFFFFF;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-family: 'Quicksand', sans-serif;
}

.select-all-button:hover {
  background: #E04455;
  border-color: #E04455;
}

.subtopics-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.subtopic-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subtopic-item:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

.subtopic-item.selected {
  background: #F0F9FF;
  border-color: #2BB673;
}

.subtopic-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #D1D5DB;
  border-radius: 4px;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.subtopic-item.selected .subtopic-checkbox {
  background: #2BB673;
  border-color: #2BB673;
}

.subtopic-checkbox svg {
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.subtopic-item.selected .subtopic-checkbox svg {
  opacity: 1;
}

.subtopic-name {
  flex: 1;
  font-size: 0.875rem;
  color: #374151;
}

.subtopic-info {
  color: #9CA3AF;
  cursor: pointer;
  transition: color 0.2s ease;
}

.subtopic-info:hover {
  color: #6B7280;
}

/* Right Panel - Assignment Summary */
.assignment-summary-panel {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.summary-header {
  margin-bottom: 2rem;
}

.summary-header h3 {
  font-weight: 600;
  color: #1F2937;
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

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

.selected-skills-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
  margin-bottom: 0;
}

.no-skills-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  color: #9CA3AF;
}

.no-skills-selected svg {
  margin-bottom: 1rem;
}

.no-skills-selected p {
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  color: #6B7280;
}

.no-skills-selected span {
  font-size: 0.875rem;
  line-height: 1.5;
}

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

.selected-skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}

.skill-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.skill-name {
  font-weight: 500;
  color: #1F2937;
  font-size: 0.875rem;
}

.skill-topic {
  font-size: 0.75rem;
  color: #6B7280;
}

.remove-skill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-skill-btn:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #DC2626;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .create-assignment-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-height: none;
  }
  
  .assignment-config-panel,
  .assignment-summary-panel {
    padding: 1.5rem;
  }
  
  .assignment-summary-panel {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .create-assignment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .btn-cancel,
  .btn-save,
  .btn-assign {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .assignment-config-panel,
  .assignment-summary-panel {
    padding: 1rem;
  }
  
  .subtopics-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .select-all-button {
    align-self: flex-end;
  }
  
  .filter-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Search Results Styles */
.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.search-results-title {
  font-weight: 600;
  color: #1F2937;
  margin: 0;
  font-size: 1.125rem;
}

.search-results-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

.search-result-item.selected {
  background: #F0F9FF;
  border-color: #2BB673;
}

.search-result-item.selected .subtopic-checkbox {
  background: #2BB673;
  border-color: #2BB673;
}

.search-result-item.selected .subtopic-checkbox svg {
  opacity: 1;
}

.search-result-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-result-name {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.search-result-topic {
  font-size: 0.75rem;
  color: #6B7280;
}

/* Search Results Grouped by Topic */
.search-topic-group {
  margin-bottom: 1.5rem;
}

.search-topic-group:last-child {
  margin-bottom: 0;
}

.search-topic-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.search-topic-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #D1D5DB;
  border-radius: 4px;
  background: #FFFFFF;
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.search-topic-group.topic-selected .search-topic-checkbox {
  background: #2BB673;
  border-color: #2BB673;
}

.search-topic-group.topic-partial .search-topic-checkbox {
  background: #F59E0B;
  border-color: #F59E0B;
}

.search-topic-checkbox svg {
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-topic-group.topic-selected .search-topic-checkbox svg,
.search-topic-group.topic-partial .search-topic-checkbox svg {
  opacity: 1;
}

.search-topic-name {
  flex: 1;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
  font-size: 0.875rem;
}

.search-topic-count {
  font-size: 0.75rem;
  color: #6B7280;
  font-weight: 500;
}

.search-topic-skills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 2.75rem;
}

/* Assignment Summary Footer */
.assignment-summary-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E7EB;
}

.assignment-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #F9FAFB;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.stat-item svg {
  color: #6B7280;
  flex-shrink: 0;
}

.stat-label {
  font-size: 0.875rem;
  color: #6B7280;
  font-weight: 500;
  flex: 1;
}

.stat-value {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 600;
  background: #FFFFFF;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #D1D5DB;
  min-width: 2rem;
  text-align: center;
}

/* Getting Started Step Interactions */
.getting-started-steps .step {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.getting-started-steps .step:hover {
  background-color: #F3F4F6;
}

.getting-started-steps .step.completed:hover {
  background-color: #F0FDF4;
}

/* Step content styling */
.step-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Override flex-direction for get-students-playing-content to allow side-by-side layout */
#get-students-playing-content.step-content {
  flex-direction: row;
}

.step-description {
  color: #6B7280;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.assign-topic-actions {
  margin-bottom: 2rem;
}

.assign-topic-actions .btn-primary {
  background: linear-gradient(135deg, #2BB673 0%, #1F9D5A 100%);
  color: #FFFFFF;
  padding: 1rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(43, 182, 115, 0.3);
  font-size: 1rem;
}

.assign-topic-actions .btn-primary:hover {
  background: linear-gradient(135deg, #1F9D5A 0%, #15803D 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 182, 115, 0.4);
}

.step-illustration {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.character-illustration {
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
}

/* Active step highlight for getting started section */
.getting-started-steps .step.active {
  background-color: rgba(43, 182, 115, 0.08);
  border-left: 4px solid #2BB673;
  border-radius: 0 6px 6px 0;
  padding: 8px 12px 8px 8px;
  margin: 4px -12px 4px -8px;
  color: #2BB673;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.getting-started-steps .step.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #2BB673 0%, #249c62 100%);
  border-radius: 0 2px 2px 0;
}

.getting-started-steps .step.active .icon-circle,
.getting-started-steps .step.active .icon-checkmark {
  color: #2BB673;
}

/* Additional responsive styles for help page search container */
@media (max-width: 768px) {
  .help-section .search-container {
    max-width: 600px;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .help-section .search-container {
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* Assignment Slideout Styles */
.assignment-slideout {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.assignment-slideout.open {
  right: 0;
}

.slideout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.slideout-content {
  position: relative;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
}

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

.slideout-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
  flex: 1;
  padding-right: 1rem;
}

.slideout-close {
  background: none;
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.slideout-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

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

.slideout-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 1rem 0;
}

.progress-overview {
  background: #F9FAFB;
  border-radius: 0.5rem;
  padding: 1rem;
}

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

.progress-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  color: #6B7280;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
}

.accuracy-ranges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accuracy-range {
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid #E5E7EB;
}

.accuracy-range.excellent {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.accuracy-range.good {
  background: #FFFBEB;
  border-color: #FED7AA;
}

.accuracy-range.needs-improvement {
  background: #FEF2F2;
  border-color: #FECACA;
}

.accuracy-range.not-started {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

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

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

.range-count {
  font-size: 0.75rem;
  color: #6B7280;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.range-students {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.student-tag {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.student-tag .accuracy-badge {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.student-tag.needs-improvement .accuracy-badge {
  background: #EF4444;
}

.student-tag.good .accuracy-badge {
  background: #F59E0B;
}

.no-students {
  font-size: 0.75rem;
  color: #9CA3AF;
  font-style: italic;
  text-align: center;
  padding: 0.5rem;
}

.accuracy-percentage {
  font-size: 0.625rem;
  color: #6B7280;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  margin-left: 0.25rem;
}

.slideout-footer {
  padding: 1.5rem;
  border-top: 1px solid #E5E7EB;
  background: #F9FAFB;
}

.slideout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slideout-edit-delete-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.btn-edit-assignment,
.btn-delete-assignment {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-edit-assignment {
  background: #3B82F6;
  color: white;
}

.btn-edit-assignment:hover {
  background: #2563EB;
  transform: translateY(-1px);
}

.btn-delete-assignment {
  background: #EF4444;
  color: white;
}

.btn-delete-assignment:hover {
  background: #DC2626;
  transform: translateY(-1px);
}

.btn-view-full-report {
  width: 100%;
  background: #2BB673;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-full-report:hover {
  background: #249c62;
  transform: translateY(-1px);
}

.btn-view-full-report:active {
  transform: translateY(0);
}

/* Action Buttons Container */
.action-buttons-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap;
  min-width: 80px;
  width: auto;
  flex: 0 0 auto;
}

/* Action buttons in assignments table - ensure consistent styling */
.action-buttons-container .action-btn.edit-btn {
  background: #3B82F6 !important;
  color: white !important;
  border: none !important;
  min-width: 80px !important;
  width: auto !important;
}

.action-buttons-container .action-btn.edit-btn:hover {
  background: #2563EB !important;
  transform: translateY(-1px) !important;
}

/* Action buttons in assignments table - override all other delete button styles */
.action-buttons-container .action-btn.delete-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.75rem 1rem !important;
  background: #EF4444 !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  white-space: nowrap !important;
  min-width: 80px !important;
  width: auto !important;
  height: auto !important;
}

.action-buttons-container .action-btn.delete-btn:hover {
  background: #DC2626 !important;
  transform: translateY(-1px) !important;
  border: none !important;
}

/* Action buttons in assignments table - ensure consistent styling */
.action-buttons-container .action-btn.report-btn {
  background: #2BB673 !important;
  color: white !important;
  border: none !important;
  min-width: 80px !important;
  width: auto !important;
}

.action-buttons-container .action-btn.report-btn:hover {
  background: #249c62 !important;
  transform: translateY(-1px) !important;
}

/* Assignment row clickable styles */
.assignment-row {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

/* Apply hover effects to assignment rows */
.assignment-row:hover {
  background: #F9FAFB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Disable hover effects when hovering over action menu */
.assignment-row.action-menu-hover:hover {
  background: inherit;
  box-shadow: none;
}

.assignment-row:active {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .slideout-content {
    width: 100%;
    max-width: 100vw;
  }
  
  .progress-stats {
    grid-template-columns: 1fr;
  }
  
  .range-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Modal Footer Styling for Edit Assignment Modal */
.modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem 1.5rem 1.5rem;
  gap: 1rem;
}

.modal-footer .btn-assign {
  width: 100%;
  max-width: 200px;
}

/* Archive Class Button Styles */
.archive-class-btn {
  padding: 0.75rem 1rem;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: auto;
  flex-shrink: 0;
}

.archive-class-btn:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #B91C1C;
}

.archive-class-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Video Container Styles for Get Students Playing */
#get-students-playing-content {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 768px) {
  #get-students-playing-content {
    flex-direction: column;
    gap: 20px;
  }
}

#get-students-playing-content .video-container {
  position: relative;
  flex: 0.9; /* Smaller flex value to push video left and give more space to instructions */
  min-width: 0; /* Allows flex item to shrink below content size */
  max-width: none; /* Remove any max-width constraints */
  width: auto; /* Let flex control the width */
  background: #000;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 0;
  box-sizing: border-box;
}

/* On smaller screens, video takes full width */
@media (max-width: 768px) {
  #get-students-playing-content .video-container {
    width: 100%;
    flex: 1 1 100%;
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Watch Video Button */
.watch-video-button {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #4A4A8A;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Quicksand', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 74, 138, 0.3);
}

.watch-video-button:hover {
  background: #3A3A7A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 74, 138, 0.4);
}


.watch-video-icon {
  font-size: 12px;
  line-height: 1;
}

.watch-video-text {
  font-size: 13px;
}

/* Instructions Section */
#get-students-playing-content .instructions-section {
  position: relative;
  flex: 1;
  min-width: 0; /* Allows flex item to shrink below content size */
  max-width: none; /* Remove any max-width constraints */
  width: auto; /* Let flex control the width */
  padding-top: 0;
}

/* Add padding when watch video button is visible */
#get-students-playing-content .instructions-section.has-watch-button {
  padding-top: 50px; /* Space for the watch video button */
}

/* On smaller screens, instructions take full width */
@media (max-width: 768px) {
  #get-students-playing-content .instructions-section {
    width: 100%;
    flex: 1 1 100%;
    padding-top: 0;
  }
  
  #get-students-playing-content .instructions-section.has-watch-button {
    padding-top: 50px;
  }
}

/* Class Code Display */
.class-code-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
}

.class-code-label {
  font-size: 14px;
  color: #6B7280;
  font-weight: 500;
}

.class-code-value {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}

.copy-class-code-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #D1D5DB;
  background: white;
  color: #6B7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.copy-class-code-btn:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  color: #374151;
}

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