/* ================================================================= */
/* BAAS.LK - PRO TRADESMAN REGISTRATION STYLESHEET (bass.css)        */
/* Modern 3D Aesthetics, Glassmorphism, Responsive Stepper & Preview */
/* ================================================================= */

:root {
  --primary-blue: #0066fe;
  --primary-blue-dark: #004fe6;
  --primary-orange: #f59e0b;
  --primary-orange-dark: #d97706;
  --bg-light: #ffffff;
  --bg-dark: #030a16;
  --surface-light: rgba(255, 255, 255, 0.95);
  --surface-dark: rgba(11, 25, 46, 0.9);
}

/* Base setup */
html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Sinhala', 'Noto Sans Tamil', system-ui, sans-serif;
  background-color: #ffffff;
  color: #0f172a;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body {
  background-color: #030a16;
  color: #f1f5f9;
}

/* Ambient Background Lightings */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 102, 254, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(245, 158, 11, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(0, 79, 230, 0.08) 0%, transparent 50%);
}

.dark .ambient-glow {
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 102, 254, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(245, 158, 11, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(2, 46, 134, 0.25) 0%, transparent 50%);
}

/* Background Grid Mesh */
.bg-grid-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

.dark .bg-grid-mesh {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Glassmorphism Containers */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.dark .glass-panel {
  background: rgba(11, 25, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.6);
}

.glass-card-preview {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dark .glass-card-preview {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(7, 18, 35, 0.95) 100%);
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.15);
}

/* Step Wizard Navigation Items */
.step-item {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-item.active .step-bubble {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #030a16;
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 4px 10px rgba(245, 158, 11, 0.3);
  transform: scale(1.1);
}

.step-item.completed .step-bubble {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.step-item.active .step-title {
  color: #f59e0b;
  font-weight: 900;
}

.dark .step-item.active .step-title {
  color: #fbbf24;
}

/* Locked / Pending Step State */
.step-item.is-locked {
  opacity: 0.45;
  cursor: not-allowed !important;
}

.step-item.is-locked .step-bubble {
  border-style: dashed !important;
  background-color: rgba(148, 163, 184, 0.08) !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}

.step-item.is-locked .step-title {
  color: #94a3b8 !important;
}

.step-item.is-locked:hover {
  transform: none !important;
}

.step-item.is-locked:hover .step-bubble {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
}

/* Shake animation for invalid field highlight */
@keyframes inputShakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.field-error-highlight {
  animation: inputShakeAnim 0.4s ease-in-out !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* 3D Button Styles */
.btn-3d-orange {
  position: relative;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #030a16;
  box-shadow: 0 6px 0 #b45309, 0 12px 20px rgba(245, 158, 11, 0.35);
  transition: all 0.15s ease;
}

.btn-3d-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #b45309, 0 16px 25px rgba(245, 158, 11, 0.45);
}

.btn-3d-orange:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #b45309, 0 6px 10px rgba(245, 158, 11, 0.3);
}

.btn-3d-blue {
  position: relative;
  background: linear-gradient(135deg, #0066fe 0%, #004fe6 100%);
  color: #ffffff;
  box-shadow: 0 6px 0 #022e86, 0 12px 20px rgba(0, 102, 254, 0.35);
  transition: all 0.15s ease;
}

.btn-3d-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #022e86, 0 16px 25px rgba(0, 102, 254, 0.45);
}

.btn-3d-blue:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #022e86, 0 6px 10px rgba(0, 102, 254, 0.3);
}

/* Trade Selection Cards */
.trade-card {
  position: relative;
  cursor: pointer;
  border: 2px solid rgba(226, 232, 240, 0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .trade-card {
  border-color: rgba(255, 255, 255, 0.08);
  background-color: rgba(15, 23, 42, 0.6);
}

.trade-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 12px 25px -5px rgba(245, 158, 11, 0.25);
}

.trade-card.selected {
  border-color: #f59e0b;
  background-color: rgba(254, 243, 199, 0.6);
  box-shadow: 0 0 0 2px #f59e0b, 0 15px 30px -5px rgba(245, 158, 11, 0.35);
}

.dark .trade-card.selected {
  background-color: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
}

.trade-card.selected .check-badge {
  display: flex;
}

.trade-card .primary-badge {
  display: none;
}

.trade-card.is-primary .primary-badge {
  display: flex;
}

.trade-card.is-primary {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px #f59e0b, 0 16px 32px -6px rgba(245, 158, 11, 0.45);
}

/* Detail Card for Per-Trade Experience & Subskills */
.trade-detail-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
}

.dark .trade-detail-card {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(15, 23, 42, 0.65);
}

.trade-detail-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 12px 30px -10px rgba(245, 158, 11, 0.15);
}

/* Sub-skill Checkbox Chips */
.skill-chip {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.skill-chip input:checked + div {
  background-color: #f59e0b;
  color: #030a16;
  border-color: #f59e0b;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Upload Dropzones */
.upload-dropzone {
  border: 2px dashed rgba(203, 213, 225, 0.9);
  transition: all 0.25s ease;
}

.dark .upload-dropzone {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(15, 23, 42, 0.5);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: #f59e0b;
  background-color: rgba(254, 243, 199, 0.4);
}

.dark .upload-dropzone:hover,
.dark .upload-dropzone.dragover {
  border-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.1);
}

/* Password Strength Meter */
.strength-bar {
  height: 5px;
  background-color: #e2e8f0;
  border-radius: 999px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.dark .strength-bar {
  background-color: #1e293b;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
  width: 33%;
  background-color: #ef4444;
}

.strength-medium {
  width: 66%;
  background-color: #f59e0b;
}

.strength-strong {
  width: 100%;
  background-color: #10b981;
}

/* OTP Digits Input */
.otp-box {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  border-radius: 14px;
  transition: all 0.2s ease;
}

@media (max-width: 640px) {
  .otp-box {
    width: 40px;
    height: 48px;
    font-size: 18px;
    border-radius: 12px;
  }
}

.otp-box:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

/* Custom Scrollbar for chips container */
.custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.7);
}

/* Shimmer and Pulse animations */
@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
}

.badge-pulse {
  animation: pulseBadge 2.5s infinite;
}

@keyframes sweepShine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.btn-shine-sweep {
  background-size: 200% auto;
  animation: sweepShine 3.5s linear infinite;
}

/* Confetti Burst Animation on Success */
@keyframes confettiFall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(600px) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f59e0b;
  animation: confettiFall 3s ease-out forwards;
}

/* ================================================================= */
/* GOOGLE REGISTRATION BUTTON (.google-btn)                          */
/* ================================================================= */
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.4rem;
  background-color: #ffffff;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  border-radius: 1rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

.google-btn:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.google-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dark .google-btn {
  background-color: #0f172a;
  color: #f8fafc;
  border-color: #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.dark .google-btn:hover {
  background-color: #1e293b;
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.2);
}

