/* smartWebs supplemental styles */
body { font-family: Inter, system-ui, sans-serif; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.gradient-mesh {
  position: relative;
  overflow: hidden;
}

.gradient-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(99, 102, 241, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(6, 182, 212, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 80%, rgba(217, 70, 239, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 90%, rgba(245, 158, 11, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.gradient-mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #818cf8, #22d3ee, #e879f9);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #fff;
  background-image: linear-gradient(to right, #4f46e5, #0891b2);
  transition: all 0.2s;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background-image: linear-gradient(to right, #6366f1, #06b6d4);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.bento-card {
  padding: 2rem;
  border-radius: 1.5rem;
  border-width: 1px;
  transition: all 0.3s;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.bento-card-premium {
  position: relative;
  overflow: hidden;
  border-width: 0;
}

.bento-card-blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  transform: translate(50%, -50%);
  pointer-events: none;
}

.bento-card-blob-bl {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  height: 6rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  transform: translate(-50%, 50%);
  pointer-events: none;
}

.glass-form {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.glass-form-light {
  border-radius: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.glass-form-nested {
  border-radius: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-card {
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.app-card-flush {
  padding: 0;
}

.form-field {
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: all 0.2s;
}

.form-field:focus {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
}

.form-field-dark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.form-field-dark::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-field-dark:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.form-field-light {
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
}

.form-field-light::placeholder {
  color: #94a3b8;
}

.form-field-light:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  background: linear-gradient(to bottom right, #312e81, #3730a3, #0e7490);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 6s ease-in-out 2s infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

/* App shell sidebar */
.app-shell {
  position: relative;
  min-height: 100vh;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.4);
}

.sidebar-backdrop[hidden] {
  display: none;
}

.app-sidebar {
  transition: transform 0.25s ease, width 0.25s ease;
}

.app-main {
  transition: margin-left 0.25s ease;
}

@media (max-width: 1023px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .sidebar-mobile-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
  }

  .app-main {
    margin-left: 0;
  }
}

@media (min-width: 1024px) {
  .sidebar-backdrop {
    display: none;
  }

  .app-main {
    margin-left: 16rem;
  }

  .sidebar-collapsed .app-sidebar {
    width: 4rem;
  }

  .sidebar-collapsed .sidebar-brand-text,
  .sidebar-collapsed .sidebar-nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  .sidebar-collapsed .sidebar-nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .sidebar-collapsed .app-main {
    margin-left: 4rem;
  }
}

.sidebar-scroll-lock {
  overflow: hidden;
}
