/* ============================================
   USER PROFILE - Design Único e Moderno
   ============================================ */

/* Avatar do usuário no header */
.user-profile-img {
  position: relative;
  transition: all 0.3s ease;
}

.user-profile-img img {
  border: 3px solid var(--border-dark) !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.user-profile-img:hover img {
  border-color: var(--blue-bright) !important;
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
  transform: scale(1.1);
}

/* Indicador de status online */
.user-profile-img::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #13DEB9;
  border: 2px solid var(--bg-dark-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(19, 222, 185, 0.8);
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Dropdown do perfil - Design Moderno */
.dark-blue-dropdown.profile-dropdown-menu {
  background: linear-gradient(180deg, var(--bg-modal-dark) 0%, var(--dark-blue-primary) 100%) !important;
  border: 1px solid var(--border-blue) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(74, 144, 226, 0.3) !important;
  padding: 0 !important;
  min-width: 320px !important;
  overflow: hidden !important;
  margin-top: 1rem !important;
}

/* Header do dropdown */
.profile-dropdown .py-3.px-7.pb-0 {
  background: linear-gradient(135deg, var(--dark-blue-accent) 0%, var(--blue-dark) 100%);
  padding: 1.5rem !important;
  border-bottom: 2px solid var(--border-blue);
  position: relative;
  overflow: hidden;
}

.profile-dropdown .py-3.px-7.pb-0::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, transparent 70%);
  animation: rotateGradient 10s linear infinite;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.profile-dropdown .py-3.px-7.pb-0 h5 {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-dropdown .py-3.px-7.pb-0 h5::before {
  content: '👤';
  font-size: 1.5rem;
}

/* Seção de informações do usuário */
.profile-dropdown .d-flex.align-items-center.py-9.mx-7 {
  padding: 2rem 1.75rem !important;
  background: var(--bg-card-dark);
  border-bottom: 1px solid var(--border-dark);
  position: relative;
}

.profile-dropdown .d-flex.align-items-center.py-9.mx-7::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-blue), transparent);
}

/* Avatar grande no dropdown */
.profile-dropdown .d-flex.align-items-center.py-9.mx-7 img {
  width: 90px !important;
  height: 90px !important;
  border: 4px solid var(--blue-bright) !important;
  box-shadow: 0 0 30px rgba(74, 144, 226, 0.6), inset 0 0 20px rgba(74, 144, 226, 0.2) !important;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.profile-dropdown .d-flex.align-items-center.py-9.mx-7:hover img {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 40px rgba(74, 144, 226, 0.8), inset 0 0 30px rgba(74, 144, 226, 0.3) !important;
}

/* Informações do usuário */
.profile-dropdown .d-flex.align-items-center.py-9.mx-7 .ms-3 h5 {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  margin-bottom: 0.5rem !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--text-light) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-dropdown .d-flex.align-items-center.py-9.mx-7 .ms-3 p {
  color: var(--text-secondary) !important;
  margin-bottom: 0.5rem !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.profile-dropdown .d-flex.align-items-center.py-9.mx-7 .ms-3 p:hover {
  color: var(--text-primary) !important;
  transform: translateX(5px);
}

.profile-dropdown .d-flex.align-items-center.py-9.mx-7 .ms-3 p i {
  color: var(--blue-bright) !important;
  font-size: 1rem;
  width: 20px;
  text-align: center;
  filter: drop-shadow(0 0 5px rgba(74, 144, 226, 0.5));
}

/* Badge de role */
.profile-dropdown .d-flex.align-items-center.py-9.mx-7 .ms-3 span {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-bright) 100%);
  color: var(--text-light) !important;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
  margin-top: 0.5rem;
}

/* Menu de ações */
.profile-dropdown .message-body {
  background: var(--bg-card-dark);
  padding: 1rem 0 !important;
}

.profile-dropdown .message-body a {
  padding: 1.25rem 1.75rem !important;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.profile-dropdown .message-body a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue-dark) 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.profile-dropdown .message-body a:hover {
  background: linear-gradient(90deg, rgba(74, 144, 226, 0.1) 0%, transparent 100%);
  border-left-color: var(--blue-bright);
  transform: translateX(5px);
}

.profile-dropdown .message-body a:hover::before {
  transform: scaleY(1);
}

.profile-dropdown .message-body a span {
  background: linear-gradient(135deg, var(--dark-blue-accent) 0%, var(--blue-dark) 100%) !important;
  border: 1px solid var(--border-blue) !important;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2) !important;
  transition: all 0.3s ease;
}

.profile-dropdown .message-body a:hover span {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-medium) 100%) !important;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4) !important;
}

.profile-dropdown .message-body a h6 {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  margin-bottom: 0.25rem !important;
}

.profile-dropdown .message-body a span.text-dark {
  color: var(--text-muted) !important;
  font-size: 0.85rem;
}

.profile-dropdown .message-body a:hover span.text-dark {
  color: var(--text-secondary) !important;
}

/* Botões de ação */
.profile-dropdown .d-grid {
  padding: 1rem 1.75rem !important;
  background: var(--bg-card-dark);
}

.profile-dropdown .d-grid:last-child {
  padding-bottom: 1.5rem !important;
}

.profile-dropdown .d-grid .btn {
  border-radius: 10px !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.profile-dropdown .d-grid .btn-outline-warning {
  border: 2px solid #FFAE1F !important;
  color: #FFAE1F !important;
  background: transparent !important;
}

.profile-dropdown .d-grid .btn-outline-warning:hover {
  background: linear-gradient(135deg, #FFAE1F 0%, #cc8b18 100%) !important;
  color: var(--text-light) !important;
  box-shadow: 0 8px 25px rgba(255, 174, 31, 0.4) !important;
  transform: translateY(-2px);
}

.profile-dropdown .d-grid .btn-outline-primary {
  border: 2px solid var(--blue-bright) !important;
  color: var(--blue-bright) !important;
  background: transparent !important;
}

.profile-dropdown .d-grid .btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-dark) 100%) !important;
  color: var(--text-light) !important;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4) !important;
  transform: translateY(-2px);
}

/* Efeito de brilho nos botões */
.profile-dropdown .d-grid .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.profile-dropdown .d-grid .btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Scrollbar customizada */
.profile-dropdown[data-simplebar] .simplebar-scrollbar::before {
  background: var(--blue-bright) !important;
  opacity: 0.5;
}

/* ============================================
   NOVO DESIGN DO DROPDOWN - Moderno e Responsivo
   ============================================ */

/* Header do dropdown */
.profile-dropdown-header {
  background: linear-gradient(135deg, var(--dark-blue-accent) 0%, var(--blue-dark) 100%);
  padding: 1.5rem 1.75rem;
  border-bottom: 2px solid var(--border-blue);
  position: relative;
  overflow: hidden;
}

.profile-dropdown-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, transparent 70%);
  animation: rotateGradient 10s linear infinite;
}

.profile-dropdown-header h5 {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.profile-dropdown-header .online-indicator {
  width: 10px;
  height: 10px;
  background: #13DEB9;
  border: 2px solid var(--bg-dark-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(19, 222, 185, 0.8);
  animation: pulseStatus 2s infinite;
  position: relative;
  z-index: 1;
}

/* Seção de informações do usuário */
.profile-dropdown-user-info {
  background: var(--bg-card-dark);
  padding: 2rem 1.75rem;
  border-bottom: 1px solid var(--border-dark);
  text-align: center;
  position: relative;
}

.profile-dropdown-user-info::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-blue), transparent);
}

.profile-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.profile-avatar-img {
  width: 100px !important;
  height: 100px !important;
  object-fit: cover;
  border: 4px solid var(--blue-bright) !important;
  box-shadow: 0 10px 40px rgba(74, 144, 226, 0.4), 0 0 30px rgba(74, 144, 226, 0.3) !important;
  transition: all 0.3s ease;
}

.profile-status-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: #13DEB9;
  border: 3px solid var(--bg-card-dark);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(19, 222, 185, 0.8);
  animation: pulseStatus 2s infinite;
}

.profile-user-details {
  text-align: center;
}

.profile-username {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  margin-bottom: 0.75rem !important;
  background: linear-gradient(135deg, var(--text-light) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-bright) 100%);
  color: var(--text-light) !important;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
  margin-bottom: 1rem;
}

.profile-role-badge i {
  font-size: 0.9rem;
}

.profile-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.profile-info-item i {
  color: var(--blue-bright) !important;
  font-size: 1rem;
  width: 20px;
  text-align: center;
  filter: drop-shadow(0 0 5px rgba(74, 144, 226, 0.5));
}

.profile-info-item span {
  word-break: break-word;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Menu de itens */
.profile-dropdown-menu-items {
  background: var(--bg-card-dark);
  padding: 0.5rem 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.profile-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue-dark) 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.profile-menu-item:hover {
  background: linear-gradient(90deg, rgba(74, 144, 226, 0.1) 0%, transparent 100%);
  border-left-color: var(--blue-bright);
  transform: translateX(5px);
}

.profile-menu-item:hover::before {
  transform: scaleY(1);
}

.menu-item-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-blue-accent) 0%, var(--blue-dark) 100%);
  border: 1px solid var(--border-blue);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
  transition: all 0.3s ease;
}

.profile-menu-item:hover .menu-item-icon {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-medium) 100%);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.menu-item-icon i {
  font-size: 1.25rem;
  color: var(--blue-bright);
  transition: all 0.3s ease;
}

.profile-menu-item:hover .menu-item-icon i {
  color: var(--text-light);
}

.menu-item-content {
  flex: 1;
  min-width: 0;
}

.menu-item-title {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  margin-bottom: 0.25rem !important;
  font-size: 1rem;
}

.menu-item-subtitle {
  color: var(--text-muted) !important;
  font-size: 0.85rem;
  display: block;
}

.profile-menu-item:hover .menu-item-subtitle {
  color: var(--text-secondary) !important;
}

.menu-item-arrow {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.profile-menu-item:hover .menu-item-arrow {
  color: var(--blue-bright);
  transform: translateX(5px);
}

/* Botões de ação */
.profile-dropdown-actions {
  background: var(--bg-card-dark);
  padding: 1rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-profile-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn-profile-action i {
  font-size: 1.1rem;
}

.btn-profile-action-warning {
  background: transparent;
  border-color: #FFAE1F !important;
  color: #FFAE1F !important;
}

.btn-profile-action-warning:hover {
  background: linear-gradient(135deg, #FFAE1F 0%, #cc8b18 100%) !important;
  color: white !important;
  box-shadow: 0 8px 25px rgba(255, 174, 31, 0.4);
  transform: translateY(-2px);
}

.btn-profile-action-danger {
  background: transparent;
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

.btn-profile-action-danger:hover {
  background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%) !important;
  color: white !important;
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
  transform: translateY(-2px);
}

/* Efeito de brilho nos botões */
.btn-profile-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-profile-action:hover::before {
  width: 300px;
  height: 300px;
}

/* Responsivo */
@media (max-width: 768px) {
  .dark-blue-dropdown.profile-dropdown-menu {
    min-width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  
  .profile-dropdown-header {
    padding: 1.25rem 1.5rem;
  }
  
  .profile-dropdown-header h5 {
    font-size: 1.1rem !important;
  }
  
  .profile-dropdown-user-info {
    padding: 1.5rem 1.25rem;
  }
  
  .profile-avatar-img {
    width: 80px !important;
    height: 80px !important;
  }
  
  .profile-username {
    font-size: 1.25rem !important;
  }
  
  .profile-info-item span {
    max-width: 100%;
    font-size: 0.85rem;
  }
  
  .profile-menu-item {
    padding: 1rem 1.25rem;
  }
  
  .menu-item-icon {
    width: 40px;
    height: 40px;
  }
  
  .menu-item-icon i {
    font-size: 1.1rem;
  }
  
  .menu-item-title {
    font-size: 0.95rem;
  }
  
  .menu-item-subtitle {
    font-size: 0.8rem;
  }
  
  .profile-dropdown-actions {
    padding: 1rem 1.25rem 1.25rem;
  }
  
  .btn-profile-action {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .profile-avatar-img {
    width: 70px !important;
    height: 70px !important;
  }
  
  .profile-username {
    font-size: 1.1rem !important;
  }
  
  .profile-role-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .menu-item-icon {
    width: 35px;
    height: 35px;
  }
  
  .menu-item-icon i {
    font-size: 1rem;
  }
}

