#sidebar {
  width: 260px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 4px 0 24px rgba(139, 92, 246, 0.08);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-logo-img {
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--text-secondary);
  transform: translateX(4px);
}

.nav-link:hover::before {
  transform: scaleY(1);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 250, 0.15));
  color: var(--accent-primary);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.nav-link.active::before {
  transform: scaleY(1);
}

.nav-link i {
  width: 20px;
  height: 20px;
}

.nav-link span {
  font-weight: 500;
}

/* User Section */
.sidebar-user {
  padding: 12px;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  margin-top: auto; /* Empurra para o final */
}

.user-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.user-avatar-container {
  text-align: center;
  margin-bottom: 10px;
}

.user-avatar,
.user-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto;
}

.user-avatar {
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  display: block;
}

.user-avatar-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.user-info h4 {
  margin: 0 0 4px 0;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.user-name {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  display: block;
  text-align: center;
  margin: 0 0 6px 0;
  font-size: 0.7rem;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.today-date {
  display: block;
  text-align: center;
  margin-top: 6px;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.btn-logout {
  width: 100%;
  padding: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-logout svg {
  width: 14px;
  height: 14px;
}

.sidebar-footer {
  padding: 8px;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  background: rgba(255, 255, 255, 0.3);
}
