/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --primary-navy: #0f172a; /* Slate 900 */
  --primary-blue: #2563eb; /* Blue 600 */
  --bg-slate-50: #f8fafc;
  --text-gray-400: #94a3b8;
}

@font-face {
  font-family: 'Pretendard Variable';
  src: url("/assets/pretendard/PretendardVariable-d2778c52.woff2") format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: var(--font-sans, "Pretendard Variable", sans-serif);
  background-color: var(--bg-slate-50);
  color: var(--primary-navy);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Safe Area & Bottom Nav Utilities */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

.pt-safe {
  padding-top: env(safe-area-inset-top);
}

.bottom-above-nav {
  bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
}

/* Custom Navigation Styles */
.nav-item-active {
  color: var(--primary-blue);
  font-weight: 600;
}

.nav-item-inactive {
  color: var(--text-gray-400);
}

/* Common Form Component Styles */
.form-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 2rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .form-card {
    padding: 2.5rem;
  }
}

.form-card:hover {
  border-color: #cbd5e1; /* slate-300 */
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem; /* text-lg */
  font-weight: 800;
  color: #0f172a; /* slate-900 */
  margin-bottom: 1.5rem;
}

/* Wizard Specific Styles */
.sticky-header-shadow {
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

[data-quote-wizard-target="stepperItem"] {
  background-color: #e2e8f0; /* slate-200 */
  border: 1px solid transparent;
}

[data-quote-wizard-target="stepperItem"].bg-blue-600 {
  background-color: #2563eb;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

/* Unified Form Input */
.form-input {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem; /* Balanced padding */
  background-color: #f8fafc; /* slate-50 */
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 1rem; /* rounded-2xl feel */
  color: #0f172a; /* slate-900 */
  font-weight: 700;
  font-size: 0.9375rem; /* ~15px */
  line-height: 1.5;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
}

.form-input::placeholder {
  color: #94a3b8; /* slate-400 */
  font-weight: 500;
}

.form-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

/* Support for Icons inside inputs */
.input-with-icon {
  padding-left: 3.25rem !important;
}

.input-with-button {
  padding-right: 3.25rem !important;
}

.form-label {
  display: block;
  font-size: 0.75rem; /* text-xs */
  font-weight: 700;
  color: #64748b; /* slate-500 */
  margin-bottom: 0.5rem;
  margin-left: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Swipe to Delete Styles */
.swipe-content {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Modal & Bottom Sheet Animations */
.animate-backdrop-in {
  animation: backdrop-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-sheet-in {
  animation: sheet-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-sheet-out {
  animation: sheet-out 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

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

.animate-fade-in-up {
  animation: fade-in-up 0.4s ease-out forwards;
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheet-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes sheet-out {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}
