:root {
  --sidebar-main-bg-color: #212529;
  --sidebar-secondary-bg-color: #2e3134;
  --sidebar-tertiary-bg-color: #222528;
}

/*
html, body, #body-wrapper, #sidebar{
  height: 100%;
}*/

#sidebarContent {
  height: 105%;
}

.content-wrapper {
  width: 100%;
}

#top-navbar {
  background-color: #2e3134 !important;
  /*background-color:var(--sidebar-secondary-bg-color);*/
  box-shadow: 1px 1px 3px gray;
  display: flex;
  justify-content: end;
}

/*-----------------------------
slider
-------------------------------*/

/* The switch - the box around the slider */
label.switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.5rem;
  margin-bottom: 0;
}

/* Hide default HTML checkbox */
label.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1rem;
  width: 1rem;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

[data-theme="dark"] .slider-input {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: #2196f3;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*-----------------------------
NAVIGATION
-------------------------------*/

a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s;
}

.navbar {
  padding: 15px 10px;
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
  box-shadow: none;
  outline: none !important;
  border: none;
}

.line {
  width: 100%;
  height: 1px;
  border-bottom: 1px dashed #ddd;
  margin: 40px 0;
}

i,
span {
  display: inline-block;
}

/* ---------------------------------------------------
      SIDEBAR STYLE
  ----------------------------------------------------- */

.overlay {
  display: none;
  position: fixed;
  top: 0px;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.overlay.active {
  display: block;
}

.wrapper {
  display: flex;
  align-items: stretch;
}

#sidebar::-webkit-scrollbar {
  width: 3px;
}

#sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

#sidebar::-webkit-scrollbar-track {
  background: transparent;
}

#sidebar {
  min-width: 8rem;
  max-width: 8rem;
  background: var(--sidebar-secondary-bg-color);
  color: #fff;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 3px 3px 3px rgb(0 0 0 / 20%);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
  display: none;
}

#sidebar.active,
#sidebar.active .sidebar-header img {
  display: block;
}

#sidebar ul li a {
  padding: 0.9rem 1rem;
  text-align: center;
  font-size: 0.85em;
  display: block;
}

#sidebar.active ul li a i {
  margin-right: 0;
  display: block;
  font-size: 1.8em;
  margin-bottom: 5px;
}

#sidebar.active .dropdown-toggle::after {
  top: auto;
  bottom: 10px;
  right: 50%;
  -webkit-transform: translateX(50%);
  -ms-transform: translateX(50%);
  transform: translateX(50%);
}

#sidebar .sidebar-header {
  padding: 20px;
  background: var(--sidebar-main-bg-color);
}

#sidebar .sidebar-header strong {
  display: none;
  font-size: 1.8em;
}

#sidebar .sidebar-header img {
  display: none;
}

#sidebar ul.components {
  padding: 0 0;
  border-bottom: 1px solid var(--sidebar-main-bg-color);
}

#sidebar ul li a:hover {
  color: var(--sidebar-secondary-bg-color);
  background: #fff;
}

#sidebar ul li.active > a,
a[aria-expanded="true"] {
  color: #fff;
  background: var(--sidebar-main-bg-color);
}

#sidebarContent {
  border-bottom: none !important;
}

a[data-toggle="collapse"] {
  position: relative;
}

.dropdown-toggle::after {
  display: block;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

ul ul a {
  font-size: 0.9em !important;
  background: var(--sidebar-main-bg-color);
  padding: 10px;
}

ul.CTAs {
  padding: 20px;
}

ul.CTAs a {
  text-align: center;
  font-size: 0.9em !important;
  display: block;
  border-radius: 5px;
  margin-bottom: 5px;
}

a.download {
  background: #fff;
  color: var(--sidebar-secondary-bg-color);
}

a.article,
a.article:hover {
  background: var(--sidebar-main-bg-color) !important;
  color: #fff !important;
}

#sidebarCollapse2 {
  display: block;
}

/* ---------------------------------------------------
      CONTENT STYLE
  ----------------------------------------------------- */

#content {
  width: 100%;
  transition: all 0.3s;
  padding: 20px;
}

/* ---------------------------------------------------
      MEDIAQUERIES
  ----------------------------------------------------- */

@media (max-width: 768px) {
  #sidebar {
    min-width: 120px;
    max-width: 120px;
    text-align: center;
    left: -120px !important;
    z-index: 999;
    margin-left: 0;
  }

  #sidebar.active {
    left: 0px !important;
    min-width: 120px;
    max-width: 120px;
    text-align: center;
  }

  .dropdown-toggle::after {
    top: auto;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
  }

  #sidebar .sidebar-header h3,
  #sidebar .CTAs {
    display: none;
  }

  #sidebar .sidebar-header strong {
    display: block;
  }

  #sidebar .sidebar-header img {
    display: block;
  }

  #sidebar ul li a span {
    font-size: 0.85em;
  }

  #sidebar ul li a i {
    font-size: 1.8em !important;
    margin-bottom: 5px !important;
    margin-right: 0;
    display: block;
  }

  #sidebarCollapse span {
    display: none;
  }
}

/*----------------------------- NAVBAR -------------------------------*/

/* Add this to your existing navigation.css file */

/* Navbar Bienvenido Styles */
.navbar-bienvenido {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  margin: 0 1rem;
}

.bienvenido-navbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: white;
  font-size: 0.9rem;
}

.bienvenido-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bienvenido-greeting {
  font-weight: 400;
  opacity: 0.9;
}

.bienvenido-name {
  font-weight: 600;
  font-size: 1rem;
}

.bienvenido-info-navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.bienvenido-business-navbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar-right-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Responsive design for navbar bienvenido */
@media (max-width: 992px) {
  .bienvenido-navbar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .bienvenido-info-navbar {
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .navbar-bienvenido {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 10;
  }

  .bienvenido-navbar {
    gap: 0.5rem;
  }

  .bienvenido-user {
    flex-direction: column;
    gap: 0.25rem;
  }

  .bienvenido-greeting,
  .bienvenido-name {
    font-size: 0.85rem;
  }

  .bienvenido-info-navbar {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
  }

  .navbar-right-section {
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .bienvenido-info-navbar {
    display: none; /* Hide extra info on very small screens */
  }

  .bienvenido-user {
    flex-direction: row;
    gap: 0.5rem;
  }
}

/* Dark theme support */
[data-theme="dark"] .bienvenido-navbar {
  color: #e9ecef;
}

[data-theme="dark"] .bienvenido-greeting {
  opacity: 0.8;
}

[data-theme="dark"] .bienvenido-info-navbar {
  opacity: 0.8;
}
