/* OVERLAY */
.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:2000;

  background:
    radial-gradient(circle at top left, rgba(15,123,255,0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(57,198,255,0.12), transparent 30%),
    rgba(2,8,20,0.75);

  backdrop-filter:blur(12px);
  animation:fadeIn 0.25s ease;
}

/* BOX */
.modal-content{
  width:min(480px, 92%);
  margin:8% auto;
  padding:28px;

  border-radius:24px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(5,12,24,0.85);

  border:1px solid rgba(110,169,255,0.18);

  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.04);

  position:relative;
  animation:slideUp 0.3s ease;
}

/* TITOLO */
.modal-content h2{
  font-size:1.6rem;
  font-weight:800;
  margin-bottom:20px;
  letter-spacing:0.02em;
}

/* LABEL */
.modal-content label{
  display:block;
  font-size:0.8rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--inter-cyan);
  margin-bottom:6px;
  margin-top:16px;
  font-weight:700;
}

/* INPUT */
.modal-content input{
  width:100%;
  padding:12px 14px;
  border-radius:12px;

  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);

  color:#fff;
  outline:none;

  transition:all 0.25s ease;
}

.modal-content input:focus{
  border:1px solid rgba(57,198,255,0.5);
  box-shadow:0 0 0 2px rgba(57,198,255,0.15);
  background:rgba(255,255,255,0.06);
}

/* BOTTONE SALVA */
.modal-content .btn-primary{
  width:100%;
  margin-top:22px;
}

/* CHIUSURA (X) */
.close{
  position:absolute;
  top:14px;
  right:16px;

  font-size:22px;
  color:var(--text-soft);
  cursor:pointer;

  transition:all 0.2s ease;
}

.close:hover{
  color:#fff;
  transform:scale(1.1);
}

/* ANIMAZIONI */
@keyframes fadeIn{
  from{opacity:0;}
  to{opacity:1;}
}

@keyframes slideUp{
  from{
    transform:translateY(30px);
    opacity:0;
  }
  to{
    transform:translateY(0);
    opacity:1;
  }
}

/* Stilizzazione Select */
select {
  appearance: none; /* Rimuove lo stile di sistema */
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 40px 12px 16px; /* Spazio a destra per la freccia */
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2339c6ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

/* Effetto Focus e Hover */
select:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--inter-cyan);
  box-shadow: 0 0 15px rgba(57, 198, 255, 0.1);
}

select:focus {
  outline: none;
  border-color: var(--inter-blue);
  box-shadow: 0 0 20px rgba(15, 123, 255, 0.2);
}

/* Stile per le opzioni (limitato dal browser) */
select option {
  background-color: #0b1220; /* Colore solido necessario */
  color: var(--text-main);
  padding: 10px;
}

/* Stile per gli input numerici nel modal (per coerenza) */
input[type="number"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 8px 12px;
  font-family: inherit;
  font-weight: 800;
  text-align: center;
  width: 70px;
  transition: var(--transition);
}

input[type="number"]:focus {
  outline: none;
  border-color: var(--inter-cyan);
  background: rgba(255, 255, 255, 0.1);
}