/* ================================================================
   DRAFTS CONSOLE - ENHANCED CSS
   Aivaroq Email AI Automation Platform
   Version: 2.0 with Plan-Based Access Control (SBAC)
   ================================================================ */

/* ================================================================
   1. CSS RESET & ROOT VARIABLES
   ================================================================ */

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

:root {
  /* Brand Colors */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --success: #16a34a;
  --success-dark: #15803d;
  --warning: #dc2626;
  --warning-dark: #b91c1c;
  --info: #0284c7;
  
  /* Background Colors */
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --overlay: rgba(0, 0, 0, 0.5);
  --overlay-dark: rgba(0, 0, 0, 0.75);
  
  /* Text Colors */
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Border & Shadows */
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Plan Tier Colors */
  --plan-trial: #8b5cf6;
  --plan-basic: #6b7280;
  --plan-pro: #3b82f6;
  --plan-advanced: #8b5cf6;
  --plan-enterprise: #f59e0b;
  
  /* Status Colors */
  --status-pending: #eab308;
  --status-approved: #16a34a;
  --status-discarded: #dc2626;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ================================================================
   2. GLOBAL STYLES
   ================================================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================================
   3. ANIMATIONS & KEYFRAMES
   ================================================================ */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ================================================================
   4. LOGIN SCREEN
   ================================================================ */

.login-container {
  width: 100%;
  max-width: 440px;
  animation: slideUp 0.6s ease-out;
}

.brand {
  text-align: center;
  margin-bottom: 32px;
}

.brand-logo {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base);
}

.brand-logo:hover {
  transform: scale(1.05);
}

.brand-logo svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.brand h1 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ================================================================
   5. CARD COMPONENTS
   ================================================================ */

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-xl);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ================================================================
   6. FORM ELEMENTS
   ================================================================ */

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition-base);
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

/* ================================================================
   7. BUTTONS
   ================================================================ */

.btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

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

.btn-success {
  background: var(--success);
  color: white;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-success:hover:not(:disabled) {
  background: var(--success-dark);
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--warning);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-warning:hover:not(:disabled) {
  background: var(--warning-dark);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  width: auto;
}

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

.btn-outline:hover:not(:disabled) {
  background: var(--primary);
  color: white;
}

/* ================================================================
   8. ALERTS & NOTIFICATIONS
   ================================================================ */

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
  animation: fadeIn var(--transition-slow);
  border-left: 4px solid transparent;
}

.alert.show {
  display: block;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border-color: #16a34a;
  border-left-color: #16a34a;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
  border-left-color: #dc2626;
  animation: shake 0.5s;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
  border-left-color: #3b82f6;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
  border-left-color: #f59e0b;
}

/* ================================================================
   9. DRAFTS AREA
   ================================================================ */

.drafts-area {
  display: none;
  animation: fadeIn 0.5s;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
}

.drafts-area.show {
  display: block;
}

/* ================================================================
   10. CONTROLS & FILTERS
   ================================================================ */

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 20px;
}

.controls select,
.controls input {
  padding: 10px 14px;
  font-size: 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: all var(--transition-base);
}

.controls select:focus,
.controls input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ================================================================
   11. DRAFT CARDS
   ================================================================ */

.draft-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all var(--transition-base);
  position: relative;
}

.draft-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.draft-card.read-only {
  opacity: 0.7;
  background: var(--bg-alt);
}

.draft-card.read-only::after {
  content: '🔒 Read Only';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  color: var(--text-muted);
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.draft-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.draft-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  transition: all var(--transition-base);
  min-width: 200px;
}

.draft-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.draft-input:disabled {
  background: var(--bg);
  cursor: not-allowed;
  opacity: 0.6;
}

.draft-textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
  margin-bottom: 12px;
  transition: all var(--transition-base);
}

.draft-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.draft-textarea:disabled {
  background: var(--bg);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ================================================================
   12. BADGES & TAGS
   ================================================================ */

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-base);
}

.badge.badge-primary {
  background: #dbeafe;
  color: #1e40af;
}

.badge.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge.badge-warning {
  background: #fee2e2;
  color: #991b1b;
}

/* Plan Tier Badges */
.badge.plan-trial {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: white;
  font-weight: 700;
}

.badge.plan-basic {
  background: #e5e7eb;
  color: #374151;
}

.badge.plan-pro {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: white;
  font-weight: 700;
}

.badge.plan-advanced {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: white;
  font-weight: 700;
}

.badge.plan-enterprise {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  font-weight: 700;
}

/* Edit Counter Badge */
.badge.edit-counter {
  background: #fef3c7;
  color: #92400e;
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

.badge.edit-counter.limit-warning {
  background: #fee2e2;
  color: #991b1b;
  animation: pulse 2s infinite;
}

.badge.edit-counter.limit-reached {
  background: #dc2626;
  color: white;
  animation: shake 0.5s;
}

/* ================================================================
   13. ACTIONS
   ================================================================ */

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.draft-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ================================================================
   14. EMPTY STATE
   ================================================================ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ================================================================
   15. LOADING STATES
   ================================================================ */

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-dark {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary);
}

/* ================================================================
   16. UPGRADE MODAL (Plan-Based Access Control)
   ================================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: fadeIn var(--transition-slow);
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: var(--card);
  border-radius: 24px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: fadeInScale 0.4s ease-out;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  font-size: 18px;
  color: var(--text-muted);
}

.modal-close:hover {
  background: var(--border);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.lock-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 15px;
  color: var(--text-muted);
}

.modal-header .current-plan {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  color: var(--text);
}

.features-list {
  background: var(--bg);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.features-list h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.features-list ul {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.plan-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.plan-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.plan-card.recommended {
  border-color: var(--primary);
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  position: relative;
}

.plan-card.recommended::after {
  content: 'POPULAR';
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.plan-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.plan-card .price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.plan-card .period {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

/* ================================================================
   17. PLAN RESTRICTION INDICATORS
   ================================================================ */

.plan-restriction {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border: 2px solid #fde68a;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #92400e;
  font-weight: 600;
}

.plan-restriction .icon {
  font-size: 18px;
}

.plan-restriction a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  margin-left: auto;
}

.plan-restriction a:hover {
  text-decoration: underline;
}

/* ================================================================
   18. DAILY LIMIT COUNTER
   ================================================================ */

.daily-limit-bar {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border: 2px solid var(--border);
}

.daily-limit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.daily-limit-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.daily-limit-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.limit-progress {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.limit-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--success) 0%, var(--primary) 100%);
  transition: width var(--transition-slow);
  border-radius: 4px;
}

.limit-progress-bar.warning {
  background: linear-gradient(90deg, #f59e0b 0%, #eab308 100%);
}

.limit-progress-bar.danger {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

/* ================================================================
   19. TOOLTIP
   ================================================================ */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: var(--text);
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 8px 12px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity var(--transition-base);
  font-size: 12px;
  font-weight: 500;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--text) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ================================================================
   20. USER INFO BANNER
   ================================================================ */

.user-info-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.user-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-meta .login-id {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.user-meta .plan-info {
  font-size: 12px;
  color: var(--text-muted);
}

/* ================================================================
   21. RESPONSIVE DESIGN
   ================================================================ */

@media (max-width: 768px) {
  .controls {
    grid-template-columns: 1fr;
  }
  
  .draft-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .actions {
    flex-direction: column;
  }
  
  .actions .btn {
    width: 100%;
  }
  
  .card {
    padding: 24px;
  }
  
  .modal-content {
    padding: 24px;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
  }
  
  .user-info-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .brand h1 {
    font-size: 24px;
  }
  
  .card {
    padding: 20px;
    border-radius: 16px;
  }
  
  .draft-card {
    padding: 16px;
  }
  
  .modal-content {
    padding: 20px;
    border-radius: 16px;
  }
}

/* ================================================================
   22. PRINT STYLES
   ================================================================ */

@media print {
  body {
    background: white;
  }
  
  .login-container,
  .controls,
  .actions,
  .modal-overlay {
    display: none !important;
  }
  
  .drafts-area {
    display: block !important;
  }
  
  .draft-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ================================================================
   23. ACCESSIBILITY ENHANCEMENTS
   ================================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.btn:focus-visible,
.form-input:focus-visible,
.draft-input:focus-visible,
.draft-textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   24. UTILITY CLASSES
   ================================================================ */

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-4 {
  margin-top: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

.p-4 {
  padding: 16px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

.w-full {
  width: 100%;
}

/* ✅ REMOVE !important from display */
.auth-spinner-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: none; /* ✅ Default hidden */
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.spinner-text {
    color: white;
    margin-top: 24px;
    font-size: 18px;
    font-weight: 600;
}

/* ================================================================
   END OF STYLESHEET
   ================================================================ */
