* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  text-decoration: none;
  --webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

a {
  color: white;
}

a:focus,
a:active {
  outline: none;
  box-sizing: none;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", Sans-Serif;
  background-color: #151515;
  color: white;
  padding-bottom: 5rem;
}

html.sr .load-hidden {
  visibility: hidden;
}

.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0rem 0.7rem;
  color: black;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  position: relative;
  left: -0.3rem;
}

.logo img {
  height: 4rem;
  margin-top: 0.2rem;
  pointer-events: none;
  user-select: none;
}

.logo-container span {
  font-size: 1.7rem;
  font-weight: bold;
}

.logo-container {
  padding-left: 1rem;
  gap: 0.15;
}

.navbar-content {
  display: flex;
  gap: 1.25rem;
  margin-right: 1rem;
}

.navbar-content a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem;
  border-radius: 0px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #000;
  box-shadow: 2px 2px #000;
  display: inline-block;
}

.navbar-content a:hover {
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
  background: none;
  color: black;
}

.navbar-content a:last-child {
  border-radius: 0px;
  text-decoration: none;
  background-color: #3cb371;
  box-shadow: 2px 2px #000;
  padding: 0.4rem 0.6rem;
  text-align: center;
  display: inline-block;
  border: 2px solid #000;
  transition: all 0.2s ease;
}

.navbar-content a:last-child:hover {
  background: none;
  box-shadow: none;
  color: black;
  border: 2px solid #2e8b57;
}

.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  min-height: 100vh;
}

.box {
  width: 100%;
  max-width: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 0.6rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.info-container {
  align-items: flex-start;
  margin-top: 2rem;
  width: 85%;
}

.statistics-container {
  width: 85%;
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
}

.chart-container {
  width: 85%;
  height: 400px;
}

.chart-container canvas {
  width: 100%;
}

.manager-container {
  display: flex;
  flex-direction: row;
  width: 85%;
  gap: 0.6rem;
  min-height: 0;
}

.member-form-container h2,
.member-list-container h2 {
  align-self: flex-start;
}

.member-form-container {
  flex: 1;
  justify-content: flex-start;
  flex-shrink: 0;
  height: fit-content;
}

.member-list-container {
  flex: 2;
  justify-content: flex-start;
  min-width: 0;
  overflow-y: auto;
}

.member-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
}

.members {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem;
  border-radius: 8px;
}

.members-buttons {
  margin-top: 0.4rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
}

.members-buttons button {
  flex: 1;
  transition: all 0.2s ease;
}

.add-member-form,
.control-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

input,
select,
button {
  border: none;
  font-size: 1.2rem;
  padding: 0.8rem 0.6rem;
}

hr {
  width: 100%;
  margin: 1.2rem 0rem;
}

.submit-buttons,
.control-buttons {
  transition: all 0.2s ease;
}

.submit-buttons {
  background: rgba(82, 240, 155, 0.7);
}

.submit-buttons:hover {
  background: rgba(11, 165, 92, 0.7);
}

.control-buttons {
  background: rgba(116, 199, 255, 0.7);
}

.control-buttons:hover {
  background: rgba(25, 144, 255, 0.7);
}

.red-buttons {
  background: rgba(255, 92, 92, 0.7);
}

.red-buttons:hover {
  background: rgba(240, 23, 23, 0.7);
}

.update-modal {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.update-modal form {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.8rem 0.6rem;
  border-radius: 6px;
}

footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.4rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .logo img {
    height: 2.2rem;
  }

  .logo-container {
    padding-left: 0rem;
    gap: 0rem;
  }

  .logo-container span {
    font-size: 1.5rem;
  }

  .navbar-content {
    display: flex;
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    width: 10rem;
    margin-right: 0;
    padding: 0.8rem;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(2rem);
    transition: all 0.2s ease;
  }

  .navbar-content a {
    bsckground: rgba(255, 255, 255, 0.7);
    border: 2px solid #000;
    box-shadow: 2px 2px #000;
    display: inline-block;
  }

  .navbar-content a:hover {
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
    background: none;
    color: black;
  }

  .navbar-content a:last-child:hover {
    border: 2px solid #2e8b57;
    display: inline-block;
    box-shadow: 2px 2px rgba(0, 0, 0, 0);
  }

  .navbar-content.show {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
  }

  .burger {
    display: block;
  }

  .burger-container {
    margin-right: 0.5rem;
  }

  .statistics-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .manager-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}
