/* Estilos para área do usuário logado */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.user-profile:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: white;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-name {
  font-weight: 500;
  font-size: 14px;
  color: #000000;
}

.user-dropdown {
  position: relative;
}

.user-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: none;
  min-width: 200px;
  padding: 8px 0;
  margin-top: 8px;
  z-index: 1000;
  display: none; /* Inicialmente escondido */
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.user-dropdown .dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Adicionar cursor pointer para o toggle */
.user-profile.dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

.user-dropdown .dropdown-item {
  padding: 10px 16px;
  color: #333;
  font-size: 14px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.user-dropdown .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #333;
}

.user-dropdown .dropdown-divider {
  margin: 8px 0;
  border-top: 1px solid #eee;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: .255em;
  vertical-align: .255em;
  content: "";
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
  color: #000000;
}

/* Layout para usuários logados */
.outer-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.outer-box .btn-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Melhorar espaçamento dos botões quando logado */
.outer-box .btn-box .theme-btn {
  font-size: 13px;
  padding: 10px 16px;
  white-space: nowrap;
}

/* Responsividade */
@media (max-width: 1199px) {
  .outer-box {
      gap: 10px;
  }
  
  .outer-box .btn-box .theme-btn {
      padding: 8px 12px;
      font-size: 12px;
  }
  
  .user-name {
      font-size: 13px;
  }
}

@media (max-width: 991px) {
  .user-profile {
      background: transparent;
      padding: 5px;
  }
  
  .user-name {
      display: none;
  }
  
  .outer-box .btn-box {
      display: none;
  }
  
  .dropdown-toggle::after {
      display: none;
  }
}

@media (max-width: 767px) {
  .outer-box {
      gap: 8px;
  }
}

/* Melhorias no dropdown mobile */
@media (max-width: 991px) {
  .user-dropdown .dropdown-menu {
      min-width: 180px;
      right: -10px;
  }
}

/* Estilos para melhor integração com o tema */
.main-header .outer-box .user-dropdown {
  margin-left: auto;
}

/* Hover states melhorados */
.user-dropdown .dropdown-item i {
  color: #666;
  transition: color 0.2s;
}

.user-dropdown .dropdown-item:hover i {
  color: #333;
}

/* Loading state para logout */
.dropdown-item.logging-out {
  opacity: 0.6;
  pointer-events: none;
}

.dropdown-item.logging-out::after {
  content: " ...";
}



/* PÁGINA DE FILTRO AVANÇADO VAGAS.PHP */
/* Estilos adicionais para a página de vagas */
.filters-column {
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .filters-column {
      position: fixed;
      left: -100%;
      top: 0;
      height: 100vh;
      z-index: 999;
      background: white;
      overflow-y: auto;
  }
  
  .filters-column.show-filters {
      left: 0;
  }
  
  .filters-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 998;
      display: none;
  }
  
  .filters-column.show-filters + .filters-backdrop {
      display: block;
  }
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.job-other-info .required.nova {
  background-color: #28a745;
  color: white;
}

.job-other-info .required.urgente {
  background-color: #dc3545;
  color: white;
  animation: pulse 2s infinite;
}

.job-other-info .required.destaque {
  background-color: #ffc107;
  color: #212529;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.w-100 { width: 100% !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.py-5 { padding: 3rem 0 !important; }


.range-slider-one.salary-range {
  position: relative;
  margin: 0;
  padding: 0;
}

/* Slider do noUiSlider */
.salary-range-slider {
  margin: 25px 0 20px 0;
  height: 8px;
  position: relative;
  z-index: 1;
}

/* Estilos do noUiSlider */
.salary-range-slider .noUi-target {
  background: #e0e0e0 !important;
  border-radius: 4px !important;
  border: none !important;
  box-shadow: none !important;
  height: 8px !important;
}

.salary-range-slider .noUi-connect {
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%) !important;
  border-radius: 4px !important;
}

.salary-range-slider .noUi-handle {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 3px solid #007bff !important;
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3) !important;
  cursor: grab !important;
  transition: all 0.2s ease !important;
}

.salary-range-slider .noUi-handle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
}

.salary-range-slider .noUi-handle:active {
  cursor: grabbing !important;
  transform: scale(1.05);
}

.salary-range-slider .noUi-handle:before,
.salary-range-slider .noUi-handle:after {
  display: none !important;
}

/* Tooltips do noUiSlider */
.salary-range-slider .noUi-tooltip {
  background: #333 !important;
  color: white !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  padding: 4px 8px !important;
}

/* Container dos valores */
.input-outer {
  margin-top: 20px;
}

.amount-outer {
  text-align: center;
}

/* Display dos valores */
.amount.salary-amount {
  display: inline-block;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  padding: 12px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  min-width: 180px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.salary-amount:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.salary-amount .min,
.salary-amount .max {
  font-weight: 700;
  color: #007bff;
  font-size: 15px;
}

/* Separador entre min e max */
.salary-amount .min::after {
  content: ' - R$';
  font-weight: 500;
  color: #6c757d;
}

/* IMPORTANTE: Ocultar qualquer outro slider que possa estar interferindo */
.salary-range > *:not(.salary-range-slider):not(.input-outer) {
  display: none !important;
}

/* Forçar visibilidade apenas do nosso slider */
.salary-range .salary-range-slider {
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Responsivo */
@media (max-width: 768px) {
  .filter-block {
      padding: 15px;
  }
  
  .filter-block h4 {
      font-size: 15px;
      margin-bottom: 15px;
  }
  
  .salary-range-slider {
      margin: 20px 0 15px 0;
  }
  
  .amount.salary-amount {
      font-size: 13px;
      padding: 10px 15px;
      min-width: 160px;
  }
  
  .salary-range-slider .noUi-handle {
      width: 26px !important;
      height: 26px !important;
  }
}

/* Estados especiais */
.salary-range-slider.loading {
  opacity: 0.7;
  pointer-events: none;
}


/* MOBILE DROPDOWN */
/* Estilos para dropdown mobile */
.mobile-user-dropdown {
  position: relative;
}

.mobile-user-dropdown .dropdown-menu {
  position: fixed;
  top: 11%;
  left: 8%;
  transform: translate(-50%, -50%);
  min-width: 300px;
  max-width: 90vw;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 999!important;
  display: none;
}

.mobile-user-dropdown .dropdown-menu.show {
  display: block;
}

.mobile-user-dropdown .dropdown-header {
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.mobile-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-user-name {
  display: block;
  font-weight: 600;
  color: white;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-user-dropdown .dropdown-item {
  padding: 15px 20px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-user-dropdown .dropdown-item:hover {
  background: #f8f9fa;
  color: #007bff;
}

.mobile-user-dropdown .dropdown-item i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.mobile-user-dropdown .dropdown-divider {
  margin: 0;
  border-color: #eee;
}

.mobile-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

.mobile-dropdown-overlay.show {
  display: block;
  z-index: 0!important;
}

.mobile-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.upper-title-box {
  display: flex;
  justify-content: space-between;
}

.mobile-foto-perfil-div{
  display: flex !important;
  flex-direction: row;

}

@media (max-width: 480px) {
  .mobile-user-dropdown .dropdown-menu {
    min-width: 280px;
    max-width: 85vw;
  }
  
  .mobile-user-dropdown .dropdown-item {
    padding: 7px 15px;
    font-size: 14px!important;
  }
  
  .mobile-user-avatar {
    width: 50px;
    height: 50px;
  }

  .dashboard .dashboard-outer {
      padding: 18px 15px 0!important;
  }

  .dashboard .upper-title-box {
      margin-bottom: 8px!important;
  }

  .upper-title-box {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }

  .mobile-foto-perfil-div{
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }

  .mobile-foto-perfil {
    width: 120px; 
    height: 120px;
  }

  .default-form .form-group input[type="text"], .default-form .form-group input[type="password"], .default-form .form-group input[type="number"], .default-form .form-group input[type="email"], .default-form .form-group input[type="url"], .default-form .form-group textarea, .default-form .form-group select {
      position: relative;
      width: 100%;
      display: block;
      height: 51px;
      line-height: 14px;
      padding: 15px 20px;
      font-size: 15px;
      color: #696969;
      background: #F0F5F7;
      border: 1px solid #F0F5F7;
      box-sizing: border-box;
      border-radius: 8px;
      transition: all 300ms ease;
  }

  .banner-section .content-column .inner-column {
      padding: 112px 0 50px!important;
  }

  .banner-section-six .popular-searches, .banner-section-three .popular-searches, .banner-section .popular-searches {
      margin-top: 20px!important;
  }

}


