@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: roboto, sans-serif;
  font-size: 1rem;
  height: 100%;
  width: 100%;

  button {
    background-color: #97b181;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    min-width: 120px;
    max-height: 40px;

    &:hover {
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
      transform: translateY(-3px);
      background-color: #8ca873;
    }

  }
}

/*&____________________HEADER_______________*/

header {
  height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../images/back-hero.jpeg);

  .logo {
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.673);
    padding: 0.2rem;

    img {
      height: 80%;
      width: 80%;
    }
  }
}

/*&__________________SEARCH-FORM_______________________*/

.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 2rem;
  margin: 2rem;
  width: 80%;
  border-radius: 8px;
  margin-inline: auto;
  gap: 1rem;
  align-items: end;

  .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    label {
      font-weight: 600;
      color: #444;
    }

    #citySelect,
    #name-input {
      width: 100%;
      padding: 0.5rem;
      border-radius: 8px;
      border: 1px solid #ddd;
    }

    .form-group select:focus,
    .form-group input:focus {
      border-color: #97b181;
      box-shadow: 0 0 5px rgba(151, 177, 129, 0.4);
      outline: none;
    }
 
  }

  
}

/*&__________________Volunteers-List___________________*/

#volunteers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
  margin: 3rem;

  .volunteer-profil {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;

    .profil-box {
      display: flex;
      flex-direction: column;
      padding: 1rem;
      gap: 1rem;

      ul {
        display: flex;
        flex-direction: column;
        list-style-type: none;
        margin: 0;
        padding: 0;
        gap: 10px;
      }
      .delete-btn {
        margin-top: 1rem;
      }
    }
  }
}

#add-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

/*&________________________MODAL_____________________*/


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);

  .modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 10px;
    text-align: center;
    position: relative;

    .close {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 25px;
      font-weight: bold;
      color: #aaa;
      cursor: pointer;
      transition: color 0.2s;

      &:hover {
        color: black;
      }
    }

    .modal-buttons button {
      margin: 0 10px;
      padding: 8px 15px;
      border: none;
      border-radius: 2rem;
      cursor: pointer;
    }

    .modal-buttons{
      display: flex;
    }
  }
}

#add-volunteer, #add-volunteer_modal{
 display: none;
 margin: 1rem;
}


  span {
    display: flex;
    cursor: pointer;
  }

  #volunteer-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
    margin: 2rem;
  }

#add-btn {
  margin-bottom: 2rem;
}

/*&__________________Bottom_Nav-Bar___________________*/

.navBar {
  /* position: fixed; */
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: transparent;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  z-index: 100;
  height: 10vh;

  a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 0.8rem;
    gap: 0.2rem;
    transition: transform 0.2s ease, opacity 0.2s ease;

    &.current {
      color: #8ca873;
    }
  }

  .navBar a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
  }

  .navBar i {
    width: 22px;
    height: 22px;
  }

}

#loading {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 20px 0;
  text-align: center;
}

.hidden {
  display: none;
}
