/* Modal Styles - 小红书风格 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(255, 154, 158, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* SCL90 Modal Specific Styles */
.scl90-modal {
  max-width: 400px;
  background: white;
  border-radius: 24px;
}

.scl90-modal-header {
  background: transparent;
  padding: 2rem 2rem 0;
  border-radius: 24px 24px 0 0;
  text-align: center;
  position: relative;
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.scl90-modal-header .modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-shadow: none;
}

.scl90-modal-body {
  padding: 2rem;
}

/* Assessment Info Grid */
.assessment-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-card {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(147, 197, 253, 0.3);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(147, 197, 253, 0.3);
}

.info-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b82f6;
}

/* Description */
.scl90-description {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}

/* Tips Section */
.scl90-tips {
  background: linear-gradient(135deg, #ecfccb 0%, #d9f99d 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border-left: 4px solid #84cc16;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}

.tips-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.tips-content h4 {
  color: #65a30d;
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.tips-content ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #4d7c0f;
}

.tips-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 0.875rem;
}

.tips-content li:last-child {
  margin-bottom: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 0;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.label-icon {
  font-size: 1.125rem;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font-size: 16px;
  font-family: 'Monaco', 'Courier New', monospace;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.3s ease;
  background: #FFFBF5;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.input-hint {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-top: 0.5rem;
  text-align: center;
}

/* Modal Footer */
.scl90-modal-footer {
  padding: 0 2rem 2rem;
  display: flex;
  justify-content: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

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

.btn-icon {
  font-size: 1.25rem;
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 24px;
  font-weight: 300;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Admin Modal Styles */
.modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient) !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 154, 158, 0.3);
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.modal-body {
  padding: 32px;
}

.modal-footer {
  padding: 24px 32px 32px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.form-hint {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  display: block;
}

.form-error {
  font-size: 13px;
  color: #ef4444;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Alert Styles */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 14px;
}

.alert-message {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Button Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Responsive */
@media (max-width: 640px) {
  .scl90-modal {
    max-width: 95%;
    margin: 1rem;
  }

  .scl90-modal-header {
    padding: 2rem 1.5rem;
  }

  .modal-icon {
    font-size: 3rem;
  }

  .scl90-modal-header .modal-title {
    font-size: 1.5rem;
  }

  .scl90-modal-body {
    padding: 1.5rem;
  }

  .assessment-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .info-card {
    padding: 1rem;
  }

  .scl90-tips {
    padding: 1.25rem;
  }

  .scl90-modal-footer {
    padding: 0 1.5rem 1.5rem;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}