/* FORM INDEX.PHP */
.form {
  --background: #404c4c;
  --color1: #e6d4c8;
  --color2: #81021f;
  display: flex;
  flex-direction: column;
  width: 26em;
  height: 20em;
  background-color: var(--background);
  border: 5px solid var(--color1);
  position: relative;
  overflow: hidden;
  box-shadow: -0.5em 0em var(--color2);
  transition: all 1s ease;
}

.form input {
  position: relative;
  z-index: 2;
}

/* Animazioni e stili pulsanti */
#circleform {
  width: 4.5em;
  height: 4.5em;
  border-bottom-right-radius: 50%;
  background-color: var(--color1);
  position: absolute;
  top: -2.5em;
  left: -2.5em;
  z-index: 1;
  box-shadow: 0.25em 0.25em 0em 1em var(--background), 0.25em 0.25em 0em 1.5em var(--color2);
}

#introform {
  width: 100%;
  height: 4em;
  background-color: var(--color1);
  color: blue;
  font-size: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 0;
}

#introformbehind {
  width: 100%;
  height: 3em;
  top: -1em;
  position: absolute;
  z-index: -1;
  color: var(--color2);
  animation: translateform 4s infinite linear;
}

@keyframes translateform {
  0% {
    transform: translateX(-2%);
    top: -1.5em;
  }

  5% {
    top: -1em;
  }

  95% {
    top: -1em;
  }

  100% {
    transform: translateX(25%);
    top: -1.5em;
  }
}

.form p {
  color: white;
  font-weight: bold;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1.15em;
  padding-right: 0.25em;
  text-shadow: 0em 0.1em 0em var(--color2);
}

.form input {
  background-color: var(--background);
  border: none;
  border-right: 5px solid var(--color2);
  border-bottom: 5px solid var(--color2);
  border-bottom-right-radius: 25em;
  height: 2em;
  width: 90%;
  transition: all 0.5s ease;
  color: var(--color2);
  font-weight: bold;
  padding-left: 0.5em;
  font-size: 1.05em;
  box-shadow: 1em 0em 0em;
  outline: none;
}

.form input:hover {
  width: 100%;
  background-color: white;
  box-shadow: 0em 0em 0em;
}

.form button {
  background-color: var(--color2);
  border: none;
  border-bottom-right-radius: 25em;
  height: 2em;
  width: 90%;
  transition: all 0.25s ease;
  color: white;
  font-weight: bold;
  font-size: 1.05em;
  display: flex;
  align-items: center;
  padding-left: 0.5em;
  box-shadow: 1em 0em 0em white;
}

#endform {
  background-color: var(--color1);
  width: 100%;
  height: 5em;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

#endform button {
  width: 87.5%;
  border-right: 5px solid white;
  border-bottom: 5px solid white;
  transition: all 0.25s ease;
}

#endform button:hover {
  width: 98%;
  border-right: 5px solid var(--color2);
  border-bottom: 5px solid var(--color2);
  box-shadow: 0em 0em 0em;
}

#endform button:active {
  color: white;
  background-color: var(--color2);
}

#endform2 {
  background-color: var(--color1);
  width: 100%;
  height: 3.2em;
  display: flex;
  align-items: flex-start;
}

.form button:hover {
  color: var(--color2);
  width: 100%;
  background-color: white;
}

#endform2 button {
  font-size: 0.76em;
  height: 2.5em;
  box-shadow: 4em 0em 0em white;
}

#endform2 button:active {
  color: white;
  background-color: var(--color2);
}

#passbutton {
  border-right: 0px;
  border-bottom-right-radius: 0em;
  border-bottom-left-radius: 25em;
  display: flex;
  justify-content: flex-end;
  padding-left: 0em;
  padding-right: 0.5em;
}

/* -------------------------------------------------------- */
/* NAVBAR.PHP */
.navbar {
  --background: #404c4c;
  --color1: #e6d4c8;
  --color2: #81021f;
  background-color: var(--color1);
}

.custom-navbar {
  --background: #404c4c;
  --color1: #e6d4c8;
  --color2: #81021f;
  background-color: var(--color2) !important;
  color: var(--color1) !important;
}

/* -------------------------------------------------------- */
/* DASHBOARD.PHP */
.background-color {
  --background: #404c4c;
  --color1: #e6d4c8;
  --color2: #81021f;
  background-color: var(--background);
  color: var(--color1);
}

.card-body{
  background-color: var(--background);
  color: var(--color1);
}

/* CARD DASHBOARD.PHP */
.container-dash {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #404c4c;
}

.container-dash .glass {
  position: relative;
  width: 180px;
  height: 200px;
  background: linear-gradient(#fff2, transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  border-radius: 10px;
  margin: 0 -45px;
  backdrop-filter: blur(10px);
  transform: rotate(calc(var(--r) * 1deg));

  flex-direction: column;
  text-align: center;
}

.container-dash:hover .glass {
  transform: rotate(0deg);
  margin: 0 10px;
}

.container-dash .glass::before {
  content: attr(data-text);
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e6d4c8;
}
.container-dash .glass svg {
  font-size: 2.5em;
  fill: #e6d4c8;
}

/* -------------------------------------------------------- */
/* REQUEST.PHP */
.table-request{
  background-color: var(--color2);
  color: var(--color1);
}
.answer-preview {
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.answer-preview.expanded {
    max-height: 500px;
}

/* -------------------------------------------------------- */
/* COHERE.PHP */
.btn-cohere{
  background-color: var(--color2);
  color: var(--color1);
}