.page-title {
  text-align: center;
  font-size: 1.5 rem;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
}

body {
  background: linear-gradient(135deg, #3b006a 0%, #6f00ff 50%, #b300ff 100%);
  font-family: 'Poppins', sans-serif;
  color: #f4f4f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  margin: 0;
}

/* NAVBAR */
.navbar {
  background-color: #2a004a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-weight: bold;
  color: #ffffff !important;
  letter-spacing: 0.5px;
}

.nav-link {
  color: #d3b7ff !important;
  font-weight: 500;
}

.nav-link:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* CONTENUTO */
.content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem 1rem;
}

/* TITOLI E TESTO */
h1 {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

p {
  color: #dcdcdc;
  max-width: 500px;
}

div.grigio {
  color: #dcdcdc;
}

/* --- AREA CAMERA RESPONSIVE --- */
#camera {
  overflow: hidden;
  background: black;
  margin: 0 auto;
  position: relative;
}

#camera video {
  width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  border: 4px solid #8a2be2;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
  background: black;
}

#camera canvas {
  width: 100% !important;
  height: auto !important;
}

/* BUTTONS */
.btn-selfie {
  width: 100%;
  max-width: 300px;
  background: linear-gradient(90deg, #8a2be2, #d000ff);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1rem auto 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* Versione piccola dei pulsanti */
.btn-selfie.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 30px;
}

.btn-selfie:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(208, 0, 255, 0.6);
}

/* FOOTER */
footer {
  background-color: #2a004a;
  color: #b89bff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

/* LOGIN BOX RESPONSIVE */
.login-box {
  width: 90%;
  max-width: 380px;
  margin: 40px auto;
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.google-btn {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  cursor: pointer;
}

.google-btn img {
  width: 18px;
  margin-right: 8px;
}

/* GLOW */
.glow {
  text-shadow: 0 0 10px #c100ff, 0 0 20px #8a2be2;
}

/* MEDIA QUERY */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
  }

  .btn-selfie {
    font-size: 1.1rem;
  }
}

.modulo {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  ;
}

/* style tabella*/
.st-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 20px auto;
}

.st-table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.2);
  color: #eee;
  font-family: Arial, sans-serif;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255, 0, 150, 0.3);
}

.st-table th,
.st-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #222;
}

.st-table th {
  background-color: rgba(255, 255, 255, 0.6);
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.9rem;
}

.st-table tr:hover {
  _background: #1d1b26;
  background: #9c49db;
  box-shadow: inset 0 0 12px rgba(255, 0, 150, 0.25);
  transition: 0.2s;
}

.st-btn {
  text-decoration: none;
  padding: 6px 12px;
  background: #ff0099;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  box-shadow: 0 0 6px rgba(255, 0, 150, 0.6);
}

.st-btn:hover {
  background: #ff33aa;
}

.st-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ff0099;
  box-shadow: 0 0 8px rgba(255, 0, 150, 0.6);
}

/* Mobile */
@media (max-width: 600px) {
  .st-thumb {
    width: 40px;
    height: 40px;
  }

  .st-table th,
  .st-table td {
    padding: 8px;
  }

  .st-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
}