:root {
  overflow-y: hidden;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow-x: hidden !important;
  height: 100vh;
  margin: 0;
}

li .dropdown-header {
  padding: 10px 15px;
  background-color: #f8f9fa; /* Light background for user info */
}

li .dropdown-header.user-full {
  margin-bottom: 0;
  font-size: 14px;

}

li .dropdown-header.user-email {
  font-size: 12px;
  color: #6c757d; /* Muted color for email */
  padding-top: 0;
}

.dropdown-divider.user-div {
  margin: 0;
  border: none;
  border-top: 1px solid #e9ecef;  /* Adjust color as needed */
  width: 100%;
}

.dropdown-item {
  padding: 5px 10px; /* Adjusted padding */
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease; /* Smooth transition for hover effect */
}

.dropdown-item:first-child {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.dropdown-item:last-child {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.dropdown-item:hover {
  background-color: #f8f9fa; /* Lighter background on hover */
}

 .navbar-nav .nav-link.active {
      font-weight: bold;
      color: #fff !important;
      position: relative;
    }

    .navbar-nav .nav-link.active::after {
      content: '';
      display: block;
      width: 100%;
      height: 4px;
      position: absolute;
      bottom: -10px;
      left: 0;
    }

    .navbar-nav .nav-link.active.commitment::after {
      background-color: #e9fd61;
    }

    .navbar-nav .nav-link.active.impact::after {
      background-color: #06d863;
    }

    .navbar {
  background-color: #f5f5f5 !important;
  width: calc(100% - 185px);
  padding-right: 0;
  padding: 0.25rem;
  -webkit-transition: margin-left 0.3s;
  transition: margin-left 0.3s;
  margin-left: 185px;
}

    .navbar.com-tab-bg {
      background-color: #111b17 !important;
    }

    .navbar .nav-item .nav-link {
      color: #9d9d9d;
    }

    .navbar .nav-item .nav-link:hover {
      color: #fff;
    }
    

#sidebar {
  width: 185px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  background-color: #f8f9fa;
  height: 100vh;
  position: fixed;
  border-right: 1px solid #dee2e6;
}

#sidebar.collapsed {
  width: 50px;
}

#main-content {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  margin-left: 185px;
  overflow-x: hidden !important;
  -webkit-transition: margin-left 0.3s;
  transition: margin-left 0.3s;
  overflow-y: auto;
  height: 100vh;
  width: calc(100% - 185px);
}

#page-footer {
    padding: 15px 0 10px;
    font-size: 12px;
}

.bugfooter {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  margin-left: 185px;
  -webkit-transition: margin-left 0.3s;
  transition: margin-left 0.3s;
  overflow-y: auto;
  height: 100vh;
  width: calc(100% - 185px);
  margin-top: 0;
}

#sidebar.collapsed + #main-content {
  margin-left: 50px;
  width: calc(100% - 50px); /* Add this line */
}

.sidebar-logo {
  padding: 10px 10px;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 50px;
}

.logo-expanded {
  max-width: 100%;
  -webkit-transition: max-width 0.3s, height 0.3s;
  transition: max-width 0.3s, height 0.3s;
}

.logo-collapsed {
  max-width: 30px;
  height: auto;
  display: none;
  margin-left: 0px;
}

.collapse-button {
  margin-left: 5px;
  margin-right: -5px;
  background: none;
  border: none;
  padding: 1px;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
  position: relative;
}

.expand-button {
  margin-left: auto;
  background: none;
  border: none;
  padding: 1px;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
  display: none;
  position: absolute;
  bottom: 20px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.expand-button:hover, .collapse-button:hover {
  background-color: #e5e5e5;
}

.collapse-button::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 115%;
  left: 40%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 3px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
  pointer-events: none;
  font-size: 10px;
}

.expand-button::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 3px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
  pointer-events: none;
  font-size: 10px;
}

.collapse-button:hover::after, .expand-button:hover::after {
  opacity: 1;
}

#sidebar {
  padding-top: 8px;
  padding-bottom: 8px;
}

.sidebar-item {
  padding: 4px 20px; /* Further reduced vertical padding */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #333;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.sidebar-item a {
  color: #333;
  text-decoration: none;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 8px 15px;
  border-radius: 10px;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.sidebar-item a:hover {
  background-color: #f8f9fa;
  margin: 0 3px;
}

/* Adjust the collapsed sidebar item styles */
.sidebar-item.collapsed {
  text-align: center;
  padding: 4px 5px; /* Reduced padding */
}

.sidebar-item.collapsed a {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 6px;
}

.sidebar-item.collapsed a:hover {
  background-color: #f8f9fa;
  border-radius: 50%;
  margin: 0;
}

/* Adjust the sidebar icon size and spacing */
.sidebar-item .sidebar-icon {
  margin-right: 8px;
  font-size: 16px;
}

/* Add a small gap between groups of sidebar items if needed */
.sidebar-item + .sidebar-item {
  margin-top: 2px;
}

.sidebar-item.collapsed .sidebar-icon {
  margin-right: 0;
  margin-left: auto;
  margin-right: auto;
}

.sidebar-item.collapsed .sidebar-text {
  display: none;
}

.sidebar-profile {
  position: absolute;
  bottom: 60px;
  width: 100%;
  text-align: center;
}

#sidebar.collapsed + .navbar {
  width: calc(100% - 50px);
  margin-left: 50px;
}

.navbar-brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-write {
  background-color: #e5e5e5 !important;
  padding: 0.25rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  border-radius: 30px !important;
  font-size: 16px !important;
}

.nav-write .nav-link,
.nav-write .btn {
  color: #333;
  margin-left: 10px;
}



.nav-write .btn-light {
  background-color: #e5e5e5;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
}


.profile-thumbnail {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
}

.navbar-light .navbar-nav .nav-link {
  color: #333;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: #2ac8c8;
}

.navbar-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-pill {
  border-radius: 30px;
  padding: 2px 10px;
  margin-top: 0px !important;
  background-color: #e5e5e5;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-right: -5px;
  margin-left: auto !important;
  margin-bottom: 0.5rem !important;
  margin-bottom: 0 !important;
}

.nav-pill .nav-link {
  color: #333;
  font-size: 14px; /* Adjusted font size */
  margin-top: 0px;
  padding: 2px 5px !important;
  border-radius: 50px;
  background-color: #f8f9fa;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 14px; /* Adjust font size */
}

.hover-effect:hover {
    background-color: #cecece !important;
    border-radius: 30px;
}

.nav-pill .nav-link:hover {
  color: #2ac8c8;
}

.nav-item .nav-chevron-down {
  margin-left: 10px;
  color: #9d9d9d;

}

.nav-item .nav-link {
  color: #333;
}

.nav-item .nav-link:hover {
  color: #2ac8c8;
}

.nav-item .dropdown-menu.profile-dropdown-menu {
  position: absolute;
  right: 0;
  left: auto;
  -webkit-transform: translateX(-3%);
          transform: translateX(-3%); /* Adjust this value as needed */
  top: 100%; /* Ensures it appears below the nav pill */
  margin-top: 0.5rem; /* Adds a small gap between the nav pill and dropdown */
  width: 210px;
  border-radius: 15px;
  overflow: hidden;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-item .dropdown-toggle::after {
  display: none;
}

.card-deck {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  gap: 20px;
}

.card {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.profile-dropdown {
  position: relative;
}

.profile-dropdown-menu {
  border-radius: 15px;
  overflow: hidden;
  padding: 8px 0;
}

.profile-dropdown-menu .dropdown-item,
.profile-dropdown-menu .sign-out {
  padding: 8px 15px;
  margin: 0;
}

.profile-dropdown-menu .dropdown-divider {
  margin: 8px 0;
  border-top: .5px solid rgba(0,0,0,0.1);
}

.profile-dropdown-menu .dropdown-item.settings-item {
  margin-bottom: 8px !important;
}

/* Style for the user divider */
.profile-dropdown-menu .dropdown-divider.user-div {
  margin: 0;
  border-top: 0.5px solid #e0e0e0;
  width: 100%;
}

.profile-dropdown-menu .user-info {
  background-color: #f8f9fa; /* Light gray background for both sections */
  padding: 8px 15px;
}+

.profile-dropdown-menu .user-full {
  font-weight: bold;
  margin-bottom: 0;
}

.profile-dropdown-menu .user-email {
  font-size: 0.9em;
  color: #6c757d;

}

.profile-dropdown-menu .sign-out-wrapper {
  margin: -8px; /* Add a small gap above the sign-out option */
  background-color: #ffffff;
  padding-left: 8px;
}

.profile-dropdown-menu .sign-out {
  border-radius: 0 0 15px 15px; /* Remove top radius, keep bottom radius */
  background-color: #ffffff; /* White background initially */
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease; /* Smooth transition for hover effect */
  display: block; /* Ensure it takes full width */
  width: 100%; /* Make sure it spans the full width */
}

.profile-dropdown-menu .sign-out:hover,
.profile-dropdown-menu .sign-out:focus {
  background-color: #f8f9fa; /* Matches user info background on hover/focus */
  color: #212529;
}

.profile-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  width: 250px;
}

.profile-dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.profile-dropdown-content a:hover {
  background-color: #e5e5e5;
}

.profile-dropdown:hover .profile-dropdown-content {
  display: block;
}

.profile-summary {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 10px;
}

.profile-summary img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-right: 10px;
}


.collapse-thumbnail {
  width: 30px;
  height: 30px;
  margin-right: -5px;
}

#sidebar.collapsed .collapse-thumbnail {
  display: inline-block;
}

#sidebar .collapse-thumbnail {
  display: none;
}

#sidebar.collapsed .expand-button {
  display: block;
}

.shrink-button {
  display: block;
}

#sidebar.collapsed .shrink-button {
  display: none;
}

.dropdown-divider {
  margin: 15px 0;
  border-color: transparent;
}

.main-header {
  margin-top: 0;
}

.content-area {
  padding-top: 5px;
}

#write_new_story {
  padding: 5px 10px;
  background-color: #e5e5e5;
  border: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 16px;
}

#write_new_story svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

@media (max-width: 767px) {
  #sidebar {
    width: 50px;
  }

  #main-content {
    margin-left: 50px;
    width: calc(100% - 50px); /* Add this line */
  }

  .logo-expanded {
    display: none;
  }

  .logo-collapsed {
    display: block;
  }

  .navbar {
    width: calc(100% - 50px);
    margin-left: 50px;
  }

  .collapse-button {
    display: none;
  }

  .expand-button {
    display: block;
  }
}

@media (max-width: 575.98px) {
  #sidebar {
    width: 50px;
  }

  #main-content {
    margin-left: 50px;
    width: calc(100% - 50px); /* Add this line */
  }

  .logo-expanded {
    display: none;
  }

  .logo-collapsed {
    display: block;
  }

  .navbar {
    width: calc(100% - 50px);
    margin-left: 50px;
  }

  .navbar-nav.nav-pill {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }
}
