/* ===========================
   ONBOARDING MODALS
   =========================== */

.modal-onboarding {
  z-index: 10000;
}

.modal-onboarding .modal-overlay {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-onboarding-content {
  max-width: 700px;
  width: 90%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-onboarding-header {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 2rem;
}

.modal-onboarding-header h2 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  color: white;
}

.onboarding-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.modal-onboarding-body {
  padding: 2.5rem;
}

/* User Type Selection Cards */
.user-type-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.user-type-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background: white;
  color: #2c3e50;
  border: 3px solid transparent;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.user-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: #667eea;
}

.user-type-trainer:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: white;
}

.user-type-personal:hover {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-color: white;
}

.user-type-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.user-type-card h3 {
  font-size: 1.5rem;
  margin: 0;
}

.user-type-card p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.8;
}

/* Form Groups in Onboarding */
.modal-onboarding-body .form-group {
  margin-bottom: 1.5rem;
}

.modal-onboarding-body .form-group label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: white;
}

.modal-onboarding-body input {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  transition: all 0.3s ease;
}

.modal-onboarding-body input:focus {
  outline: none;
  border-color: white;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Large Buttons */
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  min-height: 50px;
}

/* Error Messages */
.error-message {
  padding: 1rem;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

/* Responsive Onboarding */
@media (max-width: 768px) {
  .modal-onboarding-content {
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
  }
  
  .modal-onboarding-header {
    padding: 1.5rem;
  }
  
  .modal-onboarding-header h2 {
    font-size: 1.5rem;
  }
  
  .onboarding-subtitle {
    font-size: 1rem;
  }
  
  .modal-onboarding-body {
    padding: 1.5rem;
  }
  
  .user-type-options {
    flex-direction: column;
  }
  
  .user-type-card {
    min-width: 100%;
    padding: 2rem 1.5rem;
  }
  
  .user-type-icon {
    font-size: 3rem;
  }
  
  .user-type-card h3 {
    font-size: 1.3rem;
  }
  
  .user-type-card p {
    font-size: 0.95rem;
  }
}

/* ===========================
   TRAINER CODE + PERSONAL PANELS
   =========================== */

.trainer-code-badge {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.trainer-code-badge span {
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.personal-panels {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trainer-requests-panel,
.linked-trainer-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.trainer-requests-panel h3,
.linked-trainer-panel h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.request-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: #f9fafb;
}

.request-card:last-child {
  margin-bottom: 0;
}

.request-card .request-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.request-actions {
  display: flex;
  gap: 0.5rem;
}

.linked-trainer-panel .routine-list {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.linked-trainer-panel .routine-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem;
  background: #f8fafc;
}

@media (max-width: 768px) {
  .request-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .request-actions {
    width: 100%;
  }
}
