/* ============================================
   DO Onboarding App - Styles
   ============================================ */

:root {
  --do-blue: #0080ff;
  --do-blue-dark: #0066cc;
  --do-blue-light: #e6f3ff;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --error: #ef4444;
  --error-light: #fee2e2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

header .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Main Content */
main {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

/* Steps Container */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  transition: all 0.3s ease;
}

.step.active {
  border-color: var(--do-blue);
  background: var(--do-blue-light);
}

.step.completed {
  border-color: var(--success);
  background: var(--success-light);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-300);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step.active .step-number {
  background: var(--do-blue);
}

.step.completed .step-number {
  background: var(--success);
}

.step-content h3 {
  margin-bottom: 0.25rem;
  color: var(--gray-800);
}

.step-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

.card h2 {
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.card-warning {
  border-color: var(--warning);
  background: var(--warning-light);
}

.card-success {
  border-color: var(--success);
  background: var(--success-light);
}

.card-error {
  border-color: var(--error);
  background: var(--error-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--do-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--do-blue-dark);
}

.btn-secondary {
  background: var(--gray-600);
  color: white;
}

.btn-secondary:hover {
  background: var(--gray-700);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-outline {
  background: transparent;
  color: var(--gray-600);
  border: 2px solid var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-text {
  background: transparent;
  color: var(--gray-500);
  padding: 0.5rem 1rem;
}

.btn-text:hover {
  color: var(--gray-700);
}

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

.btn .icon {
  width: 20px;
  height: 20px;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  margin-bottom: 1rem;
}

.status-badge.success {
  background: var(--success-light);
  color: #065f46;
}

.status-badge.warning {
  background: var(--warning-light);
  color: #92400e;
}

.status-badge.error {
  background: var(--error-light);
  color: #991b1b;
}

.status-badge.disabled {
  background: var(--gray-200);
  color: var(--gray-500);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-success {
  background: var(--success-light);
  color: #065f46;
}

.badge-warning {
  background: var(--warning-light);
  color: #92400e;
}

.badge-error {
  background: var(--error-light);
  color: #991b1b;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.info-item {
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.info-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.info-item span {
  font-weight: 500;
  color: var(--gray-800);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--do-blue);
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.form-actions {
  margin-top: 2rem;
}

/* Status Messages */
.status-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.status-message.success {
  background: var(--success-light);
  color: #065f46;
  border: 1px solid var(--success);
}

.status-message.warning {
  background: var(--warning-light);
  color: #92400e;
  border: 1px solid var(--warning);
}

.status-message.error {
  background: var(--error-light);
  color: #991b1b;
  border: 1px solid var(--error);
}

.status-message a {
  color: inherit;
  font-weight: 600;
}

/* Actions Bar */
.actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

/* Action Section */
.action-section {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hints */
.hint {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

/* Success Banner */
.success-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.success-icon {
  font-size: 2.5rem;
}

.success-banner h3 {
  margin: 0;
  color: #065f46;
}

.success-banner p {
  margin: 0;
  color: #047857;
}

/* Next Steps */
.next-steps {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.next-steps h3 {
  margin-bottom: 0.5rem;
}

.next-steps ol {
  margin-left: 1.5rem;
}

.next-steps li {
  margin-bottom: 0.5rem;
}

.next-steps code {
  background: var(--gray-200);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Error Message */
.error-message {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  color: rgba(255,255,255,0.8);
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

/* Info Banner */
.info-banner {
  background: linear-gradient(135deg, var(--do-blue-light) 0%, #f0f7ff 100%);
  border: 1px solid var(--do-blue);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.info-banner strong {
  color: var(--do-blue-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.info-banner p {
  color: var(--gray-600);
  margin: 0;
}

/* Pricing Info */
.pricing-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.pricing-info h3 {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.pricing-info ul {
  list-style: none;
  margin-bottom: 1rem;
}

.pricing-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.pricing-info li:last-child {
  border-bottom: none;
}

/* Info Box */
.info-box {
  background: var(--do-blue-light);
  border: 1px solid var(--do-blue);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.5rem 0;
}

.info-box strong {
  color: var(--do-blue-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.info-box ol {
  margin-left: 1.5rem;
  color: var(--gray-700);
}

.info-box li {
  margin-bottom: 0.25rem;
}

/* Credentials Box */
.credentials-box {
  background: var(--success-light);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
}

.credentials-box h3 {
  color: #065f46;
  margin-bottom: 0.75rem;
}

.credentials-box p {
  margin: 0.5rem 0;
}

.credentials-box code {
  background: rgba(255,255,255,0.5);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Credentials Section */
.credentials-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.credential-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.credential-item label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #065f46;
}

.credential-item code,
.credential-item a {
  font-family: monospace;
  background: rgba(255,255,255,0.5);
  padding: 0.5rem;
  border-radius: 4px;
  word-break: break-all;
}

.warning-text {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--warning-light);
  border-radius: var(--radius);
  color: #92400e;
  font-weight: 500;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Next Steps List */
.next-steps-list {
  list-style: none;
  counter-reset: steps;
}

.next-steps-list li {
  counter-increment: steps;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  position: relative;
  padding-left: 3rem;
}

.next-steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 24px;
  height: 24px;
  background: var(--do-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.next-steps-list li strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gray-800);
}

.next-steps-list li p {
  color: var(--gray-600);
  margin: 0;
}

.next-steps-list li code {
  background: var(--gray-200);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }
  
  header h1 {
    font-size: 1.75rem;
  }
  
  main {
    padding: 1.5rem;
  }
  
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-bar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-large {
    width: 100%;
    justify-content: center;
  }
}
