/* PureLabs VoiceCore - Official PureLabs Red & White Light Luxury Healthcare Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --purelabs-red: #E11D48;
  --purelabs-red-dark: #BE123C;
  --purelabs-red-light: #FFE4E6;
  --bg-main: #FFFFFF;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #64748B;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Glass & Card Styles (PureLabs Red & White) */
.glass-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px -2px rgba(225, 29, 72, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
}

.glass-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: #FDA4AF;
  box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

/* NPS Scale Buttons (PureLabs Style) */
.nps-btn {
  aspect-ratio: 1;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  background-color: #FFFFFF;
  color: #334155;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.nps-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: #E11D48;
  color: #E11D48;
  background-color: #FFF1F2;
}

.nps-btn.selected-promoter {
  background-color: #E11D48 !important;
  color: #FFFFFF !important;
  border-color: #BE123C !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35) !important;
}

.nps-btn.selected-passive {
  background-color: #F59E0B !important;
  color: #FFFFFF !important;
  border-color: #D97706 !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35) !important;
}

.nps-btn.selected-detractor {
  background-color: #64748B !important;
  color: #FFFFFF !important;
  border-color: #475569 !important;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.35) !important;
}

/* Star Rating Controls */
.star-btn {
  color: #CBD5E1;
  transition: all 0.15s ease;
  cursor: pointer;
}

.star-btn:hover,
.star-btn.active {
  color: #F59E0B;
  transform: scale(1.15);
}

/* Input Focus Effects */
.form-input-focus:focus {
  outline: none;
  border-color: #E11D48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

/* Status Badges */
.badge-nuovo {
  background-color: #FFF1F2;
  color: #E11D48;
  border: 1px solid #FECDD3;
}

.badge-in-lavorazione {
  background-color: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.badge-risolto {
  background-color: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

/* Modal Animations */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-enter {
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ================= RESPONSIVE & MOBILE-FIRST OPTIMIZATIONS ================= */

/* Prevenzione del ritardo di 300ms al tocco su tutti i bottoni touch */
button, a, input, select, label {
  touch-action: manipulation;
}

/* Prevenzione auto-zoom indesiderato di Safari su iPhone */
@media (max-width: 640px) {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  textarea,
  select {
    font-size: 16px !important;
  }

  .nps-btn {
    min-height: 36px;
    font-size: 0.85rem;
    border-radius: 10px;
  }
}

/* Griglia NPS adattiva per schermi ultra-compatti (< 380px) */
@media (max-width: 380px) {
  .nps-btn {
    min-height: 32px;
    font-size: 0.75rem;
    border-radius: 8px;
  }
}

/* Touch feedback su radio cards */
.radio-touch-card {
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(225, 29, 72, 0.1);
}

.radio-touch-card:active {
  transform: scale(0.98);
}

