/**
 * Dashboard Timeline - Estilos da Sidebar
 * Estilos específicos para a sidebar do dashboard
 */

/* ===== SIDEBAR PRINCIPAL ===== */
.dashboard-sidebar {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(30, 41, 59, 0.6);
}

/* Cabeçalho da Sidebar */
.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.sidebar-header-icon {
  background: linear-gradient(135deg, #6366f1, #1e40af);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.sidebar-header-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(99, 102, 241, 0.4);
}

/* Seções da Sidebar */
.sidebar-section {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.sidebar-section:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
}

.sidebar-section-title svg {
  margin-right: 0.75rem;
  color: #818cf8;
}

/* Botões de Navegação */
.nav-button {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}

.nav-button svg {
  margin-right: 0.5rem;
}

.nav-button.active {
  background: linear-gradient(135deg, #6366f1, #1e40af);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4);
}

.nav-button:not(.active) {
  background: rgba(51, 65, 85, 0.5);
  color: #cbd5e1;
}

.nav-button:not(.active):hover {
  background: rgba(71, 85, 105, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Inputs e Selects */
.sidebar-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  color: white;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.sidebar-input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.sidebar-input::placeholder {
  color: #94a3b8;
}

.sidebar-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background-color: rgba(51, 65, 85, 0.5);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  color: white;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  appearance: none;
}

.sidebar-select:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

/* Grupos de Filtros */
.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

/* Status Indicators */
.status-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(51, 65, 85, 0.3);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.status-indicator:last-child {
  margin-bottom: 0;
}

.status-indicator-label {
  display: flex;
  align-items: center;
  color: #94a3b8;
  font-size: 0.75rem;
}

.status-indicator-label svg {
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.5rem;
}

.status-indicator-value {
  font-weight: 600;
  font-size: 0.75rem;
}

.status-indicator-value.green {
  color: #4ade80;
}

.status-indicator-value.blue {
  color: #60a5fa;
}

.status-indicator-value.yellow {
  color: #fbbf24;
}

/* Animações */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Indicador de Auto-carregamento */
.auto-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.auto-loading-indicator svg {
  animation: spin 2s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsividade */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    width: 18rem;
  }
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .sidebar-section {
    margin-bottom: 0.75rem;
    padding: 1rem;
  }
  
  .sidebar-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}
