:root {
  /* Colori generali */
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-primary: #6e34eb;
  --color-primary-light: #a580f2;
  --color-primary-dark: #4a21b8;

  /* Azioni coerenti con tema viola */
  --color-edit: #835df3;
  --color-edit-light: #a580f2;

  --color-delete: #b84de1;
  --color-delete-dark: #6e34eb;
}

*{
    transition: all 0.3s ease;
}
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: Mulish;
    margin: 0;
    padding: 0;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

/*
html{
    background: black;
    color: white;
    font-family: Mulish;
}*/

h1{
    background: linear-gradient(135deg, #6e34eb 0%, #a580f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
h2{
    background: linear-gradient(135deg, #6e34eb 0%, #a580f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
h3{
    text-align: center;
}
.delete_button{
    background: linear-gradient(135deg, var(--color-delete), var(--color-delete-dark));
    color: var(--color-text);
    border: none;
    border-radius: 8px;
    padding: 0.6em 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.delete_button:hover{
    background: linear-gradient(135deg, var(--color-delete-dark), var(--color-delete));
    box-shadow: 0 0 10px var(--color-delete);
}

.element_title{
    color: white;
    font-size: 1.5rem;
}
.footer_link{
    color: white;
    text-decoration: none;
}
.footer{
    margin-top: 2rem;
    gap: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.close{
    color: white;
    font-size: 2rem;
    text-decoration: none;
}

.edit_button {
  background: linear-gradient(135deg, var(--color-edit), var(--color-edit-light));
  color: var(--color-text);
  border: none;
  border-radius: 8px;
  padding: 0.6em 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit_button:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-edit));
  box-shadow: 0 0 8px var(--color-edit-light);
}

.button_wrapper{
    gap: 0.5rem;
    display: flex;
}

.form{
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form br{
    display: none;
}

/*a:after {    
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    background: #fff;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}
a:hover:after { 
    width: 100%; 
    left: 0; 
}*/

/* Riga sopra */
a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease, left 0.3s ease;
}

/* Riga sotto */
a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease, left 0.3s ease;
}

/* Al passaggio del mouse, le linee si estendono */
a:hover::before,
a:hover::after {
    width: 100%;
    left: 0;
}

.popup_button{
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    box-shadow: 0 0 8px var(--color-primary);
    border-radius: 4px;
    margin-top: 4rem;
    color: white;
    text-decoration: none;
}

.popup_button:hover{
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: 0 0 12px var(--color-primary-light);
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}
.overlay:target {
    visibility: visible;
    opacity: 1;
}
  
.popup {
    margin: 70px auto;
    padding: 1rem;
    padding-bottom: 2rem;
    background: #3b3b3b;
    border-radius: 5px;
    width: 30%;
    min-width: 300px;
    position: relative;
    transition: all 5s ease-in-out;
}

#installPwa{
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    background: linear-gradient(-45deg, #ffa63d, #ff3d77, #338aff, #3cf0c5);
    background-size: 600%;
    -webkit-animation: anime 16s linear infinite;
    animation: anime 16s linear infinite;
}

@-webkit-keyframes anime {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes anime {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


/* Contenitore per allineare verticalmente con testo o bottoni */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nasconde la checkbox originale */
.item-check {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #111;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-in-out;
}

/* Quando è selezionata */
.item-check:checked {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  border-color: transparent;
}

/* Aggiunge la "spunta" */
.item-check:checked::after {
  content: '✓';
  color: white;
  font-weight: bold;
  position: absolute;
  top: 0;
  left: 4px;
}

/* Hover effetto */
.item-check:hover {
  box-shadow: 0 0 5px rgba(142, 45, 226, 0.6);
}
