:root {
  --orange: #ff8a00;
  --pink: #ff3d81;
  --gradient-main: linear-gradient(135deg, var(--orange), var(--pink));
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow-accent: 0 15px 35px rgba(255, 61, 129, 0.35);
  --bg: #0b1020;
  --c1: #6d28d9;
  --c3: #06b6d4;
  --c5: #ef4444;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* BLOCCA IL BACKGROUND */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* CERCHI */
.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
}

/* PAGE WRAPPER */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 30px;
}

/* MAIN CARD */
.main-card {
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
}

/* NAVBAR */
.navbar {
  background: rgba(20, 10, 15, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 14px;
}

/* LOGIN ICON */
.login-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.login-icon:hover {
  transform: scale(1.1);
}

.login-icon i {
  font-size: 20px;
  color: #fff;
}

/* OVERLAY */
.login-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 32, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

.login-overlay.active {
  display: flex;
}

.login-modal {
  background: #0b1020;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  color: #fff;
  animation: popIn 0.4s ease;
}

/* FORM CONTAINER */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 1.8em;
  background-color: #171717;
  border-radius: 20px;
  transition: 0.3s ease-in-out;
}

.auth-form:hover {
  transform: scale(1.03);
  border: 1px solid #000;
}

/* TITOLO */
.auth-heading {
  text-align: center;
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 1em;
}

/* CAMPO */
.auth-field {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em;
  border-radius: 20px;
  background-color: #171717;
  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
}

/* ICONA */
.auth-field i {
  font-size: 1.1em;
  color: #fff;
}

/* INPUT */
.auth-input {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  color: #d3d3d3;
  font-size: 0.95em;
}

/* BOTTONI */
.auth-btn {
  margin-top: 1em;
}

.auth-btn button {
  width: 100%;
  padding: 0.6em;
  border-radius: 10px;
  border: none;
  background: #252525;
  color: #fff;
  transition: 0.3s;
}

.auth-btn button:hover {
  background: #000;
}

/* LINK SECONDARI */
.auth-link {
  margin-top: 0.8em;
  background: none;
  border: none;
  color: #aaa;
  font-size: 0.85em;
  transition: 0.3s;
}

.auth-link:hover {
  color: #ff4d6d;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

body.login-page .login-overlay {
  display: flex;
}


/* FORM */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2.2em;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  border-radius: 25px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-border);
  width: 320px;
}

#heading {
  text-align: center;
  margin-bottom: 1.5em;
  font-size: 1.4em;
  font-weight: 600;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7em 1em;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.6);
}

.input-icon {
  font-size: 1.2em;
  color: var(--pink);
}

.input-field {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  color: #fff;
}

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

.button1,
.button2,
.button3 {
  padding: 0.55em 1.4em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--gradient-main);
  color: #fff;
  transition: all 0.3s ease;
}

.button2 {
  background: rgba(255, 255, 255, 0.12);
}

.button3 {
  background: transparent;
  margin-top: 1em;
  font-size: 0.85em;
  opacity: 0.85;
}

.button1:hover,
.button2:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.button3:hover {
  color: var(--pink);
}

/* Animated circles */
.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  z-index: -1;
}
.circle1 {
  width: 400px;
  height: 400px;
  background: var(--c1);
  top: 10%;
  left: 15%;
  animation: float1 15s ease-in-out infinite alternate;
}
.circle2 {
  width: 500px;
  height: 500px;
  background: var(--c3);
  top: 50%;
  left: 60%;
  animation: float2 18s ease-in-out infinite alternate;
}
.circle3 {
  width: 350px;
  height: 350px;
  background: var(--c5);
  top: 70%;
  left: 20%;
  animation: float3 16s ease-in-out infinite alternate;
}
@keyframes float1 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(120px, -80px);
  }
  100% {
    transform: translate(-60px, 100px);
  }
}
@keyframes float2 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-140px, 100px);
  }
  100% {
    transform: translate(90px, -90px);
  }
}
@keyframes float3 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(80px, -120px);
  }
  100% {
    transform: translate(-100px, 90px);
  }
}

/* MAIN CARD */
.main-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  margin: 25px;
}

/* NAVBAR */
.navbar {
  background: rgba(20, 10, 15, 0.6);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  border-radius: 12px;
}

.hero h1 {
  font-size: 3.3rem;
  font-weight: 600;
}
.hero p {
  opacity: 0.9;
}

.btn-gradient {
  background: var(--gradient-main);
  border: none;
  color: #fff;
  padding: 10px 26px;
  box-shadow: 0 10px 25px rgba(255, 138, 0, 0.4);
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: var(--shadow-accent);
  opacity: 0.95;
}

/* CARD GENERALE */
.custom-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 22px;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}
.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
}
.custom-card h5 {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CARD SPECIFICHE */
.card-archivio {
  width: 80%;
  align-self: flex-end;
}
.card-creazione {
  width: 80%;
  align-self: flex-start;
}
.card-analisi {
  width: 80%;
  align-self: flex-end;
}

/*PAGINA RICHIESTE */
.requests-page {
  padding: 2rem;
}

.requests-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.requests-header h1 {
  font-size: 1.8rem;
  color: var(--c3);
}

.filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filters select,
.filters input {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  outline: none;
  background-color: var(--glass-bg);
  color: #fff;
}

.requests-table {
  background-color: var(--glass-bg);
  border-radius: 15px;
  overflow: hidden;
}

.requests-table table {
  width: 100%;
  color: #fff;
  border-collapse: collapse;
}

.requests-table th {
  background: var(--c5);
  color: #fff;
  text-align: left;
  padding: 0.8rem 1rem;
}

.requests-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.requests-table tr:last-child td {
  border-bottom: none;
}

.status-success {
  color: var(--c3);
  font-weight: 600;
}

.status-error {
  color: var(--c5);
  font-weight: 600;
}

/*PAGINA GENERAZIONE FILE*/
.generation-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 1rem;
}

.form-label {
  color: #fff;
}

.form-select,
.form-control {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

select option {
  color: #000;
}

.btn-content-type {
  flex: 1;
  border: 1px solid var(--pink);
  color: #fff;
  background: transparent;
  transition: all 0.3s;
  border-radius: 0.5rem;
  font-weight: 500;
}

.btn-content-type.active {
  background: var(--gradient-main);
  border-color: transparent;
}

.btn-content-type:hover {
  background: rgba(255, 61, 129, 0.2);
}

.btn-gradient {
  background: var(--gradient-main);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: 0.3s;
}

.btn-gradient:hover {
  opacity: 0.85;
}

h1 {
  color: #fff;
  font-weight: 600;
}

/*FOOTER*/
.footer {
  background: var(--bg);
  color: #fff;
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
}

.footer a.footer-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a.footer-link:hover {
  color: var(--pink);
}

.footer .social-icon {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer .social-icon:hover {
  color: var(--orange);
}
