/* === ESTILO PROFISSIONAL MODERNO COM SUPORTE A TEMA CLARO/ESCURO === */

/* Variáveis globais */
:root {
  --primary-color: #009dff;
  --primary-hover: #00c6ff;
  --dark-bg: linear-gradient(135deg, #1d1f27, #2a2d3e);
  --light-bg: linear-gradient(135deg, #ffffff, #f4f7fb);
  --dark-text: #f1f1f1;
  --light-text: #333;
  --shadow: 3px 0px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* Estilos gerais */
body.dark-mode .main-conteiner {
  background: var(--dark-bg);
  color: var(--dark-text);
}

body.light-mode .main-conteiner {
  background: var(--light-bg);
  color: var(--light-text);
}

.main-conteiner {
  width: 300px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  border-radius: 0 30px 30px 0;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: var(--shadow);
  overflow-y: auto;
  z-index: 999;
  transition: var(--transition);
}

.main-conteiner::-webkit-scrollbar {
  display: none;
}

.scrollbar-width {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Botão de tema */
#themeToggle {
  position: absolute;
  top: 25px;
  right: 25px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
}

#themeToggle:hover {
  color: var(--primary-hover);
  transform: rotate(20deg);
}

/* Perfil */
.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Informações do usuário */
.saudation {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 5px;
}

.week-day {
  font-size: 14px;
  color: inherit;
  margin-bottom: 12px;
}

.hours {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  width: 100%;
  padding: 0 8px;
  margin-bottom: 20px;
  color: inherit;
}

.bday {
  display: flex;
  justify-content: center;
  font-size: 13px;
  width: 100%;
  padding: 0 10px;
}

.bday-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  width: 100%;
}

.info-item {
  display: flex;
  gap: 6px;
}


.info-item i {
  color: #555;
}

.info-item.muted {
  font-size: 12px;
  color: #777;
}

.emptime {
  font-size: 12px;
  color: #000000;
  font-weight: 500;
}

.rule {
  width: 100%;
  height: 1px;
  background-color: rgba(255,255,255,0.1);
  margin: 15px 0;
}

/* Navegação */
.alteraaqui {
  width: 100%;
  position: relative;
}

.nav.flex-column {
  width: 100%;
}

.nav-item {
  margin-bottom: 10px;
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  color: inherit;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.nav-link i {
  margin-right: 10px;
  font-size: 16px;
}

.nav-link:hover {
  background-color: var(--primary-hover);
  color: #fff;
  transform: translateX(3px);
}

/* Dropdown */
.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 0 !important;
  min-width: 100% !important;
  padding: 8px 0 !important;
  border-radius: 10px !important;
  border: 1px solid #ddd !important;
  z-index: 1001 !important;
  pointer-events: auto !important;
  background-color: #fff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  display: none !important;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition);
}

.show > .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body.dark-mode .dropdown-menu {
  background-color: #2f3244 !important;
  border: 1px solid #444 !important;
  color: var(--dark-text) !important;
}

body.light-mode .dropdown-menu {
  background-color: #fff !important;
  color: var(--light-text) !important;
}

/* Claro */
body.light-mode .icon-tema-dinamico {
    color: #3d3d3d;
}

/* Escuro */
body.dark-mode .icon-tema-dinamico {
    color: #ffffff;
}

.dropdown-item {
  padding: 10px 20px !important;
  font-size: 14px !important;
  color: inherit !important;
  transition: var(--transition) !important;
  white-space: nowrap !important;
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  background: transparent !important;
  border: none !important;
}

.dropdown-item:hover {
  background-color: var(--primary-hover) !important;
  color: #fff !important;
  transform: translateX(5px) !important;
}

/* Botão de esconder menu (desktop) */
.toggle-btn {
  position: fixed;
  left: 275px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: var(--transition);
}

.toggle-btn:hover {
  background-color: #0090cc;
}

.main-conteiner.hidden {
  transform: translateX(-100%);
  opacity: 0;
}

.main-conteiner.hidden + .toggle-btn {
  left: 10px;
  opacity: 0.3;
}

.topnav-fixed {
    position: fixed;
    top: 0;
    left: 0; /* começa do canto esquerdo absoluto */
    padding-left: 330px; /* compensa o espaço da sidebar */
    padding-top: 10px;
    right: 0;
    height: 60px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 998;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .topnav-fixed h1 {
        font-size: 18px;
        color: white;
        margin: 0;
    }

    .main-content {
        margin-left: 300px;
        margin-top: 60px;
        padding: 20px;
        transition: all 0.3s ease;
    }

    /* Quando a sidebar estiver oculta */
    .main-conteiner.hidden ~ .topnav-fixed {
        left: 0px; /* largura da sidebar recolhida */
    }

    .main-conteiner.hidden ~ .main-content {
        margin-left: 70px;
    }

/* ============ VERSÃO MOBILE ============ */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-nav-toggle:hover {
  background: var(--primary-hover);
  transform: scale(1.1);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-conteiner {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-radius: 0;
  }

  .main-conteiner.mobile-visible {
    transform: translateX(0);
  }

  .toggle-btn {
    display: none;
  }

  /* Ajuste do conteúdo principal */
  .content-wrapper {
    margin-left: 0;
    padding: 80px 20px 20px;
  }

  /* Cards - 1 por linha */
  .employees-grid {
    grid-template-columns: 1fr !important;
  }

  .employee-card {
    max-width: 100%;
  }
  
  .profile-pic {
  flex-shrink: 0;
}

  /* Dropdown mobile */
  .dropdown-menu {
    position: static !important;
    display: none !important;
    margin-left: 15px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  body.dark-mode .dropdown-menu {
    background: transparent !important;
  }

  .show > .dropdown-menu {
    display: block !important;
  }

  .dropdown-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    border: none;
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .show.dropdown > .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

.badge-eventos {
    font-size: 0.65rem;
    padding: 4px 6px;
    border-radius: 50%;
    background-color: #dc3545;
    color: #fff;
    position: absolute;
    top: 6px;         /* Ajuste vertical fino */
    right: 8px;       /* Alinha com o final do link */
    z-index: 1050;    /* Acima do restante */
    line-height: 1;
    pointer-events: none;
}