/* ========================================
   Activation Page Styles
   ======================================== */

/* Main Container */
.activate-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-md);
  min-height: calc(100vh - 80px);
}

.activate-layout {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Page Header */
.activate-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--accent, #3BA2FF);
}

.activate-header h1 {
  color: var(--primary, #0A2A43);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.activate-subtitle {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Activation Form */
.activation-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Preferences Sections */
.preferences-section {
  background: white;
  border: 2px solid var(--french-gray, #E5E5E5);
  border-radius: 8px;
  padding: var(--spacing-md);
}

.section-header {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--accent, #3BA2FF);
}

.section-header h2 {
  color: var(--primary, #0A2A43);
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
}

.section-description {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

/* Fieldset Styling (inherits from settings.css) */
.activation-form fieldset {
  border: 2px solid var(--accent, #3BA2FF);
  border-radius: 8px;
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  background: rgba(59, 162, 255, 0.05);
  transition: all 0.3s ease;
}

.activation-form fieldset:hover {
  border-color: var(--primary, #0A2A43);
  box-shadow: 0 2px 8px rgba(10, 42, 67, 0.1);
}

.activation-form legend {
  color: var(--primary, #0A2A43);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0 0.5rem;
}

/* Activate Button Section */
.activate-actions {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 2px solid var(--french-gray, #E5E5E5);
  margin-top: var(--spacing-md);
}

.activate-warning {
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-align: center;
}

.btn-activate {
  min-width: 250px;
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-activate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.btn-activate:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   Modal Styles - Patience Dialog
   ======================================== */

.modal-patience {
  max-width: 400px;
  text-align: center;
}

.patience-body {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.patience-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(59, 162, 255, 0.3);
  border-top: 4px solid var(--accent, #3BA2FF);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.patience-message {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   Modal Styles - Success Dialog
   ======================================== */

.modal-success {
  max-width: 450px;
  text-align: center;
}

.success-body {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  margin-bottom: var(--spacing-sm);
  animation: success-pop 0.5s ease-out;
}

@keyframes success-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  color: var(--primary, #0A2A43);
  font-size: 1.5rem;
  margin: 0;
}

.success-message {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.success-actions {
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  justify-content: center;
}

.success-actions .btn-primary {
  min-width: 150px;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.success-actions .btn-primary:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

/* ========================================
   Mobile Responsiveness
   ======================================== */

@media (max-width: 768px) {
  .activate-container {
    padding: var(--spacing-sm);
  }

  .activate-layout {
    padding: var(--spacing-md);
    border-radius: 8px;
  }

  .activate-header h1 {
    font-size: 1.5rem;
  }

  .activate-subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.1rem;
  }

  .activation-form fieldset {
    padding: var(--spacing-sm);
  }

  .btn-activate {
    min-width: 200px;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
  }

  .modal-patience,
  .modal-success {
    width: 95%;
    max-width: 100%;
  }

  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .activate-header h1 {
    font-size: 1.25rem;
  }

  .activate-subtitle {
    font-size: 0.95rem;
  }

  .section-header h2 {
    font-size: 1rem;
  }

  .btn-activate {
    width: 100%;
    min-width: auto;
  }
}

/* ========================================
   Timezone Highlight - Critical Setting
   ======================================== */

.user-info-row.timezone-highlight {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
  margin: 0.75rem -1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
}
