/* ---------------------------------------------------- */
/*   STILE GENERALE PIATTAFORMA CLIENTI MYTIMELAPSE     */
/* ---------------------------------------------------- */

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, #0C4D85 0%, #072F50 100%);
  color: #fff;
}

/* Layout login */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 0 25px rgba(0,0,0,0.25);
}

.login-box .logo {
  width: 200px;
  height: auto;
}

/* Campi di input generali */
.form-control {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
}

.form-control:focus {
  background: rgba(255,255,255,0.25);
  color: #fff;
  box-shadow: none;
  border: 1px solid #fff;
}

/* Pulsanti */
.btn-primary {
  background-color: #0C4D85;
  border: none;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #0A3F6B;
}

/* Responsive */
@media (max-width: 768px) {
  .login-box {
    max-width: 90%;
    padding: 25px 20px;
  }
  .login-box .logo {
    width: 160px;
  }
}

.btn-primary.active {
  background-color: #063A6B !important;
  border-color: #052F56 !important;
}


/* ----------------------------------------- */
/* CAMPO DATA - VERSIONE BLU SCURO MYTIMELAPSE */
/* ----------------------------------------- */
input[type="date"],
.form-control[type="date"] {
  background-color: #0C4D85 !important;  /* sfondo blu scuro */
  color: #fff !important;                /* testo bianco */
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
}

input[type="date"]:focus,
.form-control[type="date"]:focus {
  outline: none !important;
  background-color: #0F5DA3 !important;  /* blu leggermente più chiaro */
  color: #fff !important;
  border: 1px solid #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.4);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1); /* icona calendario bianca */
  opacity: 0.9;
  cursor: pointer;
}

/* ---------------------------------------------------- */
/*   MODALE FOTO GRANDE (VISUALIZZAZIONE IMMERSIVA)    */
/* ---------------------------------------------------- */

#modalFoto .modal-dialog {
  max-width: 95vw;
  margin: auto;
}

#modalFoto .modal-content {
  background: #000;
  border: none;
  border-radius: 0;
}

#modalFoto .big-photo {
  max-height: 90vh;     /* non supera l’altezza schermo */
  width: auto;
  object-fit: contain;  /* mantiene proporzioni corrette */
  display: block;
  margin: 0 auto;
}

#modalFoto .bg-dark {
  background-color: rgba(0, 0, 0, 0.85) !important;
}

/* frecce di navigazione */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.left-arrow { left: 25px; }
.right-arrow { right: 25px; }

/* ---------------------------------------------------- */
/*   TABELLE E BOX GALLERIA                            */
/* ---------------------------------------------------- */

.gallery-wrapper {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 15px;
}

.thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .2s ease;
  border: 2px solid rgba(255,255,255,0.1);
}

.thumb:hover { transform: scale(1.03); }

.search-box {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  border-radius: 15px;
  padding: 25px 30px;
  max-width: 600px;
  margin: 0 auto 40px auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  text-align: center;
}

.btn-success {
  background: #1fa67a;
  border: none;
}

.btn-success:hover {
  background: #188e68;
}

h5.title-section {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
