@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
@import "general.css";

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins" , sans-serif;
}
.sidebar{
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 78px;
  background: var(--dark-color);
  padding: 6px 14px;
  z-index: 99;
  transition: all 0.5s ease;
}
.sidebar.open{
  width: 250px;
}
.sidebar .logo-details{
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}
.sidebar .logo-details .icon{
  opacity: 0;
  transition: all 0.5s ease;
}
.sidebar .logo-details .logo_name{
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.5s ease;
}
.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name{
  opacity: 1;
}
.sidebar .logo-details #btn{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 22px;
  transition: all 0.4s ease;
  font-size: 23px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease;
}
.sidebar.open .logo-details #btn{
  text-align: right;
}
.sidebar i{
  color: #fff;
  height: 60px;
  min-width: 50px;
  font-size: 28px;
  text-align: center;
  line-height: 60px;
}
.sidebar .nav-list{
  margin-top: 20px;
  height: 100%;
}
.sidebar li{
  position: relative;
  margin: 8px 0;
  list-style: none;
}
.sidebar li .tooltip{
  position: absolute;
  top: -20px;
  left: calc(100% + 15px);
  z-index: 3;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: 0s;
}
.sidebar li:hover .tooltip{
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
  top: 50%;
  transform: translateY(-50%);
}
.sidebar.open li .tooltip{
  display: none;
}
.sidebar input{
  font-size: 15px;
  color: #FFF;
  font-weight: 400;
  outline: none;
  height: 50px;
  width: 100%;
  width: 50px;
  border: none;
  border-radius: 12px;
  transition: all 0.5s ease;
  background: var(--main-color);
}
.sidebar.open input{
  padding: 0 20px 0 50px;
  width: 100%;
}
.sidebar .bx-search{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 22px;
  background: var(--main-color);
  color: #FFF;
}
.sidebar.open .bx-search:hover{
  background: var(--main-color);
  color: #FFF;
}
.sidebar .bx-search:hover{
  background: #FFF;
  color: var(--main-color);
}
.sidebar li a{
  display: flex;
  height: 100%;
  width: 100%;
  border-radius: 12px;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s ease;
  background: var(--main-color);
}
.sidebar li a:hover,
.sidebar li a.active{
  background: #FFF;
}
.sidebar li a .links_name{
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
}
.sidebar.open li a .links_name{
  opacity: 1;
  pointer-events: auto;
}
.sidebar li a:hover .links_name,
.sidebar li a:hover i,
.sidebar li a.active .links_name,
.sidebar li a.active i{
  transition: all 0.5s ease;
  color: var(--main-color);
}
.sidebar li i{
  height: 50px;
  line-height: 50px;
  font-size: 18px;
  border-radius: 12px;
}
/* Replaced with .sidebar-footer logic, but keeping for reference if needed
.sidebar li.profile{
  position: fixed;
  height: 60px;
  width: 78px;
  left: 0;
  bottom: -8px;
  padding: 10px 14px;
  background: var(--main-color);
  transition: all 0.5s ease;
  overflow: hidden;
}
.sidebar.open li.profile{
  width: 250px;
}
*/
.sidebar li .profile-details{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.sidebar li img{
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}
/*
.sidebar li.profile .name,
.sidebar li.profile .job{
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}
.sidebar li.profile .job{
  font-size: 12px;
}
.sidebar .profile #log_out{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: var(--main-color);
  width: 100%;
  height: 60px;
  line-height: 60px;
  border-radius: 0px;
  transition: all 0.5s ease;
  z-index: 10;
  cursor: pointer;
}
.sidebar.open .profile #log_out{
  width: 50px;
  background: none;
}
*/

/* --- NEW SIDEBAR FOOTER STYLES --- */
.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #11101d;
  padding: 10px 14px;
  z-index: 100;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: all 0.5s ease;
  overflow: hidden;
  height: 80px;
  display: flex;
  align-items: center;
}

.sidebar-footer .profile-details {
  display: flex;
  align-items: center;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
  white-space: nowrap;
}

.sidebar.open .sidebar-footer .profile-details {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-footer img, 
.sidebar-footer .profile-initials {
  height: 45px;
  width: 45px;
  min-width: 45px;
  border-radius: 6px;
  margin-right: 10px;
  object-fit: cover;
}

.sidebar-footer .profile-initials {
  background-color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.sidebar-footer .name_job {
  display: flex;
  flex-direction: column;
}

.sidebar-footer .name {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
}

.sidebar-footer .job {
  font-size: 12px;
  color: #888;
}

.sidebar-footer #log_out {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #11101d;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  z-index: 2;
}

.sidebar.open .sidebar-footer #log_out {
  width: 50px;
  background: none;
}

.sidebar-footer .profile-link {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% - 50px);
  height: 100%;
  z-index: 1;
}

.home-section{
  position: relative;
  min-height: 100vh;
  top: 0;
  background: var(--contrast-color);
  left: 78px;
  color: white;
  width: calc(100% - 78px);
  transition: all 0.5s ease;
  z-index: 2;
}
.sidebar.open ~ .home-section{
  left: 250px;
  width: calc(100% - 250px);
}
.home-section .text{
  display: inline-block;
  color: var(--main-color);
  font-size: 25px;
  font-weight: 500;
  margin: 18px
}
@media (max-width: 420px) {
  .sidebar li .tooltip{
    display: none;
  }
}

/* CUSTOM TOAST STYLES */
.custom-toast {
  min-width: 300px;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.custom-toast .toast-header {
  border-bottom: none;
  font-weight: 600;
}
.custom-toast .toast-body {
  font-size: 14px;
  padding: 12px 15px;
}

/* Success: Fundo verde claro, letras verde escuro */
.toast-success {
  background-color: #d4edda !important;
  color: #155724 !important;
}
.toast-success .toast-header {
  background-color: #c3e6cb !important;
  color: #155724 !important;
}
.toast-success .toast-body {
  background-color: #d4edda !important;
  color: #155724 !important;
}

/* Warning: Fundo amarelo, letras pretas */
.toast-warning {
  background-color: #fff3cd !important;
  color: #000 !important;
}
.toast-warning .toast-header {
  background-color: #ffeeba !important;
  color: #000 !important;
}
.toast-warning .toast-body {
  background-color: #fff3cd !important;
  color: #000 !important;
}

/* Error: Fundo vermelho, letras brancas */
.toast-error {
  background-color: #dc3545 !important;
  color: #fff !important;
}
.toast-error .toast-header {
  background-color: #c82333 !important;
  color: #fff !important;
}
.toast-error .toast-body {
  background-color: #dc3545 !important;
  color: #fff !important;
}
.toast-error .close {
  color: #fff !important;
  text-shadow: none;
  opacity: 0.8;
}
.toast-error .close:hover {
  opacity: 1;
}
