@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");
:root {
  --header-height: 3rem;
  --nav-width: 68px;
  --first-color: #1bb6ec;
  --first-color-light: #edfaff;
  --white-color: #f7f6fb;
  --body-font: "Nunito", sans-serif;
  --normal-font-size: 1rem;
  --z-fixed: 100;
}
*,
::before,
::after {
  box-sizing: border-box;
}
body {
  position: relative;
  margin: var(--header-height) 0 0 0;
  padding: 0 1rem;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  transition: 0.5s;
  background-color: var(--white-color);
}
a {
  text-decoration: none;
}
.header {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background-color: var(--white-color);
  z-index: var(--z-fixed);
  transition: 0.5s;
}
.header_toggle {
  color: var(--first-color);
  font-size: 1.5rem;
  cursor: pointer;
}
.header_img {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}
.header_img img {
  width: 40px;
}
.l-navbar {
  position: fixed;
  top: 0;
  left: -30%;
  width: var(--nav-width);
  height: 100vh;
  background-color: var(--first-color);
  padding: 0.5rem 1rem 0 0;
  transition: 0.5s;
  z-index: var(--z-fixed);
}
.nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.nav_logo,
.nav_link {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 1rem;
  padding: 0.5rem 0 0.5rem 1.5rem;
}
.nav_logo {
  margin-bottom: 2rem;
}
.nav_logo-icon {
  font-size: 1.25rem;
  color: var(--white-color);
}
.nav_logo-name {
  color: var(--white-color);
  font-weight: 700;
}
.nav_link {
  position: relative;
  color: var(--first-color-light);
  margin-bottom: 1.5rem;
  transition: 0.3s;
}
.nav_link:hover {
  color: var(--white-color);
}
.nav_icon {
  font-size: 1.25rem;
}
.show-sidenav {
  left: 0;
}
.body-pd {
  padding-left: calc(var(--nav-width) + 1rem);
}
.active {
  color: var(--white-color);
}
.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 32px;
  background-color: var(--white-color);
}
.height-100 {
  height: 100vh;
}
@media screen and (min-width: 768px) {
  body {
    margin: calc(var(--header-height) + 1rem) 0 0 0;
    padding-left: calc(var(--nav-width));
  }
  .header {
    height: calc(var(--header-height) + 1rem);
    padding: 0 2rem 0 calc(var(--nav-width) + 2rem);
  }
  .header_img {
    width: 40px;
    height: 40px;
  }
  .header_img img {
    width: 45px;
  }
  .l-navbar {
    left: 0;
    padding: 1rem 1rem 0 0;
  }
  .show-sidenav {
    width: calc(var(--nav-width) + 156px);
  }
  .body-pd {
    padding-left: calc(var(--nav-width) + 188px);
  }
}

.modal-fullscreen {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  max-width: none;
}
.modal-content {
  height: 100%;
  border: none;
  border-radius: 0;
}

#page-content-wrapper {
  flex: 1;
  padding: 20px;
  background: linear-gradient(to bottom right, #5b6fdb, #5c70d8);
  color: #ffffff;
  background-size: 100% 25%; /* Background gradient covers top quarter */
  background-repeat: no-repeat;
  background-position: top;
}

.container-fluid {
  padding: 20px; /* Add padding to match the sidebar and keep content centered */
}

#sidebar-wrapper {
  min-height: 100vh;
  width: 250px;
  background: #343a40;
}

.navbar {
  background: linear-gradient(to bottom right, #5b6fdb, #5c70d8);
  margin-bottom: 0;
  height: 56px; /* Set navbar height */
}

.card {
  border: none;
}

.card.pool-card {
  background: #ffffff;
  color: #2c3e50;
  border-radius: 10px;
}

.card-title.pool-name {
  font-size: 1.5em;
  font-weight: bold;
}

.btn-primary {
  background-color: #3498db;
  border-color: #3498db;
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-light {
  background-color: #ecf0f1;
  color: #2c3e50;
}

.btn-light:hover {
  background-color: #bdc3c7;
  color: #2c3e50;
}

/* Additional styles */
#wrapper {
  display: flex;
  height: 100vh;
}

#sidebar-wrapper {
  min-height: 100vh;
  width: 250px;
  background-color: #f8f9fa;
  position: fixed;
  top: 56px;
  left: 0;
  transition: all 0.3s;
  z-index: 1000;
}

#page-content-wrapper {
  width: 100%;
  margin-left: 250px;
  padding: 20px;
  transition: all 0.3s;
}

#sidebar-wrapper.toggled {
  margin-left: -250px;
}

#page-content-wrapper.toggled {
  margin-left: 0;
}

.navbar-toggler {
  margin-left: 10px;
  color: #2980b9;
}

.fixed-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: #6c757d;
}

.badge-css {
  left: 92% !important;
  top: 14% !important;
  border-style: solid;
  border-color: white;
  z-index: 1;
}

.fixed-header img {
  height: 40px;
}

.fixed-header h3 {
  color: #f8f9fa;
  text-align: left;
  margin: 0;
  line-height: 56px;
}

.fixed-header .navbar-brand {
  display: flex;
  align: left;
}

.fixed-header .navbar-brand img {
  margin-right: 10px;
}
