@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

li {
  list-style: none;
}

h1 {
  font-weight: 600;
  font-size: 1.5rem;
}

.wrapper {
  display: flex;
}

#sidebar {
  width: 329px;
  height: 100vh;
  position: fixed;
  z-index: 1000;
  transition: all 0.25s ease-in-out;
  background-color: #101010;
  display: flex;
  flex-direction: column;
}

.toggle-btn {
  background-color: transparent;
  cursor: pointer;
  border: 0;
  padding: 1rem 1.5rem;
}

.toggle-btn i {
  font-size: 1.5rem;
  color: #fff;
}

.sidebar-nav {
  padding: 2rem 0;
  flex: 1 1 auto;
  max-height: 80vh; 
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-item {
  position: relative;
  cursor: pointer;
}

.sidebar-item.active {
  background-color: #007bff;
  color: white;
}

.sidebar-item.active a {
  color: white;
}

.sidebar-nav {
  flex: 1 1 auto;
}

.sidebar-menu-title {
  font-weight: 700; 
  font-size: 20px;
  font-family: 'Dosis', sans-serif;
}

.sidebar-menu-item {
  font-size: 16px;
  line-height: 30px;
}

.bg-orange {
  background-color: #E88F00;
  border-color: #E88F00;
}

.bg-orange:hover,
.bg-orange:disabled {
  background-color:  #E88F00 !important;
  border-color: #E88F00;
}

.bg-orange:focus {
  background-color: #E88F00 !important;
  border-color: #FFF;
  box-shadow: 0 0 0 0.1rem rgba(178, 107, 0, 0.5); 
}

.bg-red {
  background-color: #DC3545;
  border-color: #DC3545;
}

.bg-red:hover,
.bg-red:disabled {
  background-color: #DC3545 !important;
  border-color: #DC3545;

}

.bg-red:focus {
  background-color: #DC3545 !important;
  border-color: #FFF;
  box-shadow: 0 0 0 0.1rem rgba(156, 28, 35, 0.5);
}


.btn-outline-orange {
  color: #E88F00;
  border: 1px solid #E88F00;
  background-color: transparent;
}

.btn-outline-orange:hover,
.btn-outline-orange:focus,
.btn-outline-orange:active {
  color: #E88F00;
  background-color: transparent;
  border-color: #E88F00;
}

.sidebar-current-task {
  background-color: #4491B4;
  color: white;
}


.sidebar-current-task .sidebar-menu-title {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.sidebar-current-task .sidebar-task-title {
  font-size: 16px;
  font-weight: 500;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-current-task .go-to-task-btn {
  display: inline-block;
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 400;
  transition: opacity 0.2s ease-in-out;
}

.sidebar-current-task .go-to-task-btn:hover {
  opacity: 0.8;
}

.text-orange {
    color: #E88F00
}

.sidebar-header {
  width: 100%;
}

#sidebar {
  overflow: hidden;
  transition: width 0.25s ease-in-out;
}

#sidebar.sidebar-collapsed {
  width: 70px;
}

#sidebar.sidebar-collapsed .sidebar-header {
  justify-content: center;
}

#sidebar.sidebar-collapsed .sidebar-header a.p-3 {
  display: none;
}

#sidebar.sidebar-collapsed > *:not(.sidebar-header) {
  display: none !important;
}

.main {
  transition: margin-left 0.25s ease-in-out;
}

.main.main-collapsed {
  margin-left: 70px;
}

.sidebar-toggle-btn {
  background-color: transparent;
  cursor: pointer;
  border: 0;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

.sidebar-toggle-btn .menu-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 991px) {
  #sidebar:not(.sidebar-force-expanded) {
    width: 70px;
  }

  #sidebar:not(.sidebar-force-expanded) .sidebar-header {
    justify-content: center;
  }

  #sidebar:not(.sidebar-force-expanded):not(.sidebar-closing) .sidebar-header a.p-3 {
    display: none;
  }

  #sidebar:not(.sidebar-force-expanded):not(.sidebar-closing) > *:not(.sidebar-header) {
    display: none !important;
  }

  .main {
    margin-left: 70px !important;
  }

  .no-margin {
    margin-left: 0 !important;
  }

  .main.sidebar-force-expanded-main {
    margin-left: 329px !important;
  }
}

@media (max-width: 700px) {
  .wrapper {
    flex-direction: column;
  }

  #sidebar:not(.sidebar-force-expanded),
  #sidebar.sidebar-collapsed {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 35px;
    min-height: 35px;
    z-index: 1000;
    transition: none;
  }

  #sidebar.sidebar-force-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 329px;
    height: 100vh;
    z-index: 1000;
    transition: none;
  }

  #sidebar.sidebar-closing {
    position: fixed;
    top: 0;
    left: 0;
    width: 329px;
    height: 100vh;
    z-index: 1000;
    animation: sidebar-slide-out 0.25s ease-in-out both;
  }

  #sidebar.sidebar-force-expanded > * {
    animation: sidebar-slide-in 0.25s ease-in-out both;
  }

  @keyframes sidebar-slide-in {
    from {
      transform: translateX(-100%);
    }
    to {
      transform: translateX(0);
    }
  }

  @keyframes sidebar-slide-out {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-100%);
    }
  }

  #sidebar:not(.sidebar-force-expanded) .sidebar-header {
    height: 35px;
  }

  #sidebar .sidebar-toggle-btn {
    padding: 5px 12px;
  }

  #sidebar .sidebar-toggle-btn .menu-icon {
    width: 24px;
    height: 24px;
  }

  .main,
  .main.main-collapsed,
  .main.sidebar-force-expanded-main,
  .no-margin {
    margin-left: 0 !important;
    padding-top: 55px !important;
  }
}