@charset "UTF-8";
/* CSS Document */
/* Reset e Variabili */
:root {
    --primary: #2B4F4D; /* Pantone 5473 C */
    --accent: #CFAC9B;
    --bg: #F5F7F9;
    --white: #FFFFFF;
    --text: #333333;
    --gray: #91A4A3;
    --border: #D1D5DB;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background-color: var(--bg); 
    margin: 0; 
    padding: 0; 
    color: var(--text);
    -webkit-font-smoothing: antialiased; /* Rende il font più nitido su Mac e iPhone */
    -moz-osx-font-smoothing: grayscale;
}

/* Classe per testo di supporto/info */
.field-helper {
    display: block;
    font-size: 12px;
    color: var(--gray); /* Il grigio #6B7280 definito prima */
    line-height: 1.4;
    margin-bottom: 8px;
    margin-top: -4px; /* Lo avvicina alla label soprastante */
    font-weight: 400;
}

/* Container del selettore */
.lang-selector {
    position: relative;
}

/* Stile del Select */
.lang-selector select {
    appearance: none; /* Rimuove lo stile di default (la freccia standard) */
    -webkit-appearance: none;
    -moz-appearance: none;
    
    background-color: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 32px 8px 12px; /* Più spazio a destra per la freccia */
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232D4343'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

/* Effetto al passaggio del mouse o focus */
.lang-selector select:hover, .lang-selector select:focus {
    border-color: var(--accent-color);
    outline: none;
    background-color: var(--white);
}

/* Header Mob-Ready */
header {
    background: var(--white);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

header .logo img { height: 32px; width: auto; }

/* Contenitore Principale */
.container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Card Premium */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Typography */
h2 { font-size: 22px; margin: 10px 0; color: var(--primary); font-weight: 700; }
.subtitle { font-size: 14px; color: var(--text); margin-bottom: 25px; display: block; line-height: 1.5; }

/* Form Elements - IL CUORE DEL PROBLEMA */
.form-group { margin-bottom: 20px; text-align: left; }

label { 
    display: block; 
    font-size: 12px; 
    font-weight: 600; 
    text-transform: uppercase; 
    color: var(--primary); 
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

input[type="text"], input[type="password"], input[type="tel"], input[type="email"], select, textarea {
    width: 100% !important; 
    display: block;
    background: #F9FAFB;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    font-size: 16px; /* Evita lo zoom automatico su iOS */
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

input:focus { outline: none; border-color: var(--accent); background: #fff; }

/* Bottoni */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
}

/* Container per l'upload personalizzato */
.custom-file-upload {
    display: block;
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}

/* Nascondiamo l'input reale */
.custom-file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Il nostro finto pulsante premium */
.file-btn {
    display: block;
    background: #F3F4F6;
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.custom-file-upload:hover .file-btn {
    border-color: var(--accent);
    background: #fff;
}

/* Testo del file selezionato */
#file-name-display {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

/* Privacy Switches */
.switch-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F9FAFB;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.switch-group span { font-size: 14px; color: var(--text); }
.switch-group input { width: 22px; height: 22px; cursor: pointer; }

footer { text-align: center; padding: 30px 20px; font-size: 12px; color: var(--gray); }

.lang-selector {
    display: flex;
    gap: 5px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.lang-link {
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-link:hover {
    color: #2a4e4c;
}

.lang-link.active {
    background: #ffffff;
    color: #2a4e4c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.lang-flag {
    font-size: 14px;
}
/* Container per l'interruttore */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

/* Nascondi il checkbox originale */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Lo slider (lo sfondo dell'interruttore) */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

/* Il cerchio interno che si muove */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Colore quando l'interruttore è attivo */
input:checked + .slider {
  background-color: #2a4e4c; /* Colore brand OlyPetCare */
}

/* Movimento del cerchio quando attivo */
input:checked + .slider:before {
  transform: translateX(20px);
}
.nav-icon-link {
    color: var(--gray); /* o il colore del tuo testo */
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    padding: 5px;
}

.nav-icon-link:hover {
    color: var(--primary); /* Il tuo colore brand */
}

.user-menu {
    display: flex;
    align-items: center;
    margin-left: 15px; /* Spazio dalle bandierine */
}
.nav-icon-link:hover svg {
    stroke: #95A7A6;; /* Un verde più acceso o il tuo colore accent */
    transform: scale(1.05);
    transition: all 0.2s ease;
}
.btn-edit-small {
    background: #2D4A43;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.btn-edit-small:hover { opacity: 0.9; }
.dashboard-pet-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* Regola in base allo spazio del tuo layout */
}
/* Pulsante Logout stile professionale */
.btn-logout {
    display: block;
    width: fit-content;
    margin: 30px auto; /* Centra il pulsante e dà respiro */
    padding: 12px 30px;
    background-color: transparent;
    color: #DC2626; /* Rosso per indicare l'uscita */
    border: 2px solid #FCA5A5; /* Bordo leggero rosso */
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: #FEE2E2; /* Sfondo leggero al passaggio */
    border-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}