.bg-primary {
  background-color: #75c227 !important;
  color: #ffffff !important;
}

.bg-secondary {
  background-color: #7c2a8e !important;
  color: #ffffff !important;
}

.btn-primary {
  background-color: #75c227 !important;
  border-color: #75c227 !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: #349731 !important;
  border-color: #349731 !important;
  color: #ffffff !important;
}

.btn-primary:active {
  background-color: #349731 !important;
  border-color: #349731 !important;
  color: #ffffff !important;
}

.btn-primary:focus {
  background-color: #349731 !important;
  border-color: #349731 !important;
  color: #ffffff !important;
}

.btn-secondary {
  background-color: #7c2a8e !important;
  border-color: #7c2a8e !important;
  color: #ffffff !important;
}

.btn-secondary:hover {
  background-color: #5b1d6f !important;
  border-color: #5b1d6f !important;
  color: #ffffff !important;
}

.btn-secondary:active {
  background-color: #5b1d6f !important;
  border-color: #5b1d6f !important;
  color: #ffffff !important;
}

.btn-outline-primary {
  border-color: #75c227 !important;
  color: #75c227 !important;
}

.btn-outline-primary:hover {
  background-color: #349731 !important;
  border-color: #349731 !important;
  color: #ffffff !important;
}

.btn-outline-primary:active {
  background-color: #349731 !important;
  border-color: #349731 !important;
  color: #ffffff !important;
}

.btn-outline-secondary {
  border-color: #7c2a8e !important;
  color: #7c2a8e !important;
}

.btn-outline-secondary:hover {
  background-color: #5b1d6f !important;
  border-color: #5b1d6f !important;
  color: #ffffff !important;
}

.btn-outline-secondary:active {
  background-color: #5b1d6f !important;
  border-color: #5b1d6f !important;
  color: #ffffff !important;
}

.a_active {
  color: #75c227 !important;
}

.text-primary {
  color: #75c227 !important;
}

.text-primary:hover {
  color: #349731 !important;
}

.text-primary:active {
  color: #349731 !important;
}

.text-secondary {
  color: #7c2a8e !important;
}

.text-secondary:hover {
  color: #5b1d6f !important;
}

.text-secondary:active {
  color: #5b1d6f !important;
}

.text-bg-secondary {
  background-color: #5b1d6f !important;
}

.text-bg-secondary:hover {
  background-color: #5b1d6f !important;
}

.text-bg-primary {
  background-color: #75c227 !important;
}

.text-bg-primary:hover {
  background-color: #349731 !important;
}

.navbar .nav-link { font-weight: 500; }
.navbar .nav-link:hover { color: #5b1d6f; }

.mt-mobile-15 {
  margin-top: 20%;
}

@media (min-width: 768px) { /* md hacia arriba */
  .mt-mobile-15 {
    margin-top: 20%;
  }  
}

@media (min-width: 992px) { /* lg hacia arriba */
  .mt-mobile-15 {
    margin-top: 5%;
  }
}

/* Contenido */

#content.expanded {
    margin-left: 0;
}

/* Ajuste full height */
body, html {
    height: 100%;
    margin: 0;
}
#wrapper {
    display: flex;
    height: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px; /* separa el icono del texto */
  transition: all 0.3s ease;
  color: #333; /* color inicial */
  cursor: pointer;
}

.nav-item i {
  font-size: 20px;
  transition: all 0.3s ease;
}

.nav-item span {
  font-size: 12px;
  transition: all 0.3s ease;
}

/* Ocultar en pantallas móviles (ejemplo: hasta 767px) */
.hide-on-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-on-mobile {
    display: block !important;
  }
}

/* Ocultar en pantallas grandes (ejemplo: desde 768px en adelante) */
.hide-on-desktop {
  display: none;
}

@media (max-width: 767px) {
  .hide-on-desktop {
    display: block !important;
  }
}

/* Cuando el collapse está abierto */
a[aria-expanded="true"] .fa-angle-down {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}
a[aria-expanded="false"] .fa-angle-down {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}


.bg-card {
  background-color: #75c22726 !important;
}

/*MultiSelect*/
.choices__list--multiple .choices__item {
  background-color: #75c227 !important;
  border-color: #75c227 !important;
}

.active>.page-link, .page-link.active {
  background-color: #75c227 !important;
  border-color: #75c227 !important;
  color: #ffffff !important;
}

.page-link {
  color: #75c227 !important;
}

/*Menu*/
 /* ---------- Overlay oscuro al abrir ---------- */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* ---------- Contenedor principal flotante ---------- */
  .floating-menu {
    position: fixed;
    bottom: 20px;
    left: 23px;
    z-index: 2000;
  }

  /* ---------- Botón principal ---------- */
  .fab-btn {
    background-color: #7c2a8e;
    color: #fff;
    border: none;
    border-radius: 20%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  /* Hover visual */
  .fab-btn:hover {
    background-color: #75c227;
    box-shadow: 0 6px 15px rgba(124, 42, 142, 0.5);
    transform: scale(1.1);
  }

  /* Estado abierto */
  .fab-btn.active {
    background-color: #75c227;
    box-shadow: 0 0 20px rgba(92, 28, 109, 0.7);
    transform: rotate(45deg);
  }

  /* Ajuste del ícono para que rote suavemente */
  .fab-btn i {
    transition: transform 0.3s ease;
  }

  .fab-btn.active i {
    transform: rotate(180deg);
  }

  /* ---------- Contenedor de los items ---------- */
  .menu-items {
    position: absolute;
    bottom: 70px;
    left: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .menu-items.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* ---------- Botones individuales ---------- */
  .menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: white;
    color: #7c2a8e;
    border-radius: 30px;
    padding: 10px 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    font-size: 14px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 160px;
  }

  .menu-items.show .menu-item {
    transform: translateY(0);
    opacity: 1;
  }

  /* ---------- Hover en botones ---------- */
  .menu-item:hover {
    background-color: #7c2a8e;
    color: white;
  }

  .menu-item i {
    font-size: 18px;
  }

  /* ---------- Submenús ---------- */
  .submenu {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-left: 25px;
    margin-top: 5px;
  }

  .submenu.show {
    display: flex;
  }

  .submenu a {
    background-color: #f8f9fa;
    color: #7c2a8e;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: 0.2s ease;
  }

  .submenu a:hover {
    background-color: #7c2a8e;
    color: white;
  }

/*profile*/
.image-container {
  position: relative;
  display: inline-block;
}
.image-container img {
  display: block;
}

.edit-button {
  position: absolute;
  bottom: 10px;
  left: 10;
  z-index: 999;
}

.password-button{
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 999;
}

.img-thumbnail {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  max-width: 100%;
  height: auto;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
