/* Dashboard Styles */
#dashboard-resumo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 1;
}

#dashboard-resumo.animate {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Animações de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animação de bounce suave para ícones */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.dashboard-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
  max-width: 1200px;
  margin: 0 auto 24px auto;
  padding: 0 16px;
}

.dashboard-container.animate {
  animation: slideInLeft 0.6s ease-out 0.2s both;
}

@media (max-width: 600px) {
  .dashboard-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 8px;
  }
}

.dashboard-card {
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(49, 130, 206, 0.13);
  min-width: 180px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
  transition: all 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dashboard-card.animate {
  opacity: 0;
  transform: translateY(20px);
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}

.dashboard-card:hover::before {
  left: 100%;
}

.dashboard-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(49, 130, 206, 0.2);
}

.dashboard-card:active {
  transform: translateY(-4px) scale(0.98);
  transition: all 0.1s ease;
}

@media (max-width: 600px) {
  .dashboard-card {
    padding: 16px 12px;
    min-width: 0;
    border-radius: 12px;
  }
}

.dashboard-card-produtos {
  background: #232b38;
  color: #38a169;
  border: 2.5px solid #38a169;
}

.dashboard-card-estoque {
  background: #232b38;
  color: #17acaf;
  border: 2.5px solid #17acaf;
}

.dashboard-card-vendas {
  background: #17acaf;
  color: #fff;
  border: 2.5px solid #3182ce;
}

.dashboard-card-receitas {
  background: #38a169;
  color: #fff;
  border: 2.5px solid #38a169;
}

.dashboard-card-despesas {
  background: #e53e3e;
  color: #fff;
  border: 2.5px solid #e53e3e;
}

.dashboard-card-saldo {
  color: #fff;
  border: 2.5px solid;
}

.dashboard-card-saldo-positivo {
  background: #3182ce;
  border-color: #3182ce;
}

.dashboard-card-saldo-negativo {
  background: #e53e3e;
  border-color: #e53e3e;
}

.dashboard-card-valor-medio {
  background: #805ad5;
  color: #fff;
  border: 2.5px solid #805ad5;
}

.dashboard-card-saude {
  color: #fff;
  border: 2.5px solid;
}

.dashboard-card-saude-excelente {
  background: #38a169;
  border-color: #38a169;
}

.dashboard-card-saude-boa {
  background: #3182ce;
  border-color: #3182ce;
}

.dashboard-card-saude-regular {
  background: #ecc94b;
  border-color: #ecc94b;
  color: #1a202c;
}

.dashboard-card-saude-regular .dashboard-label-saude,
.dashboard-card-saude-regular .dashboard-value-saude,
.dashboard-card-saude-regular .dashboard-periodo {
  color: #1a202c;
}

.dashboard-card-saude-atencao {
  background: #e53e3e;
  border-color: #e53e3e;
}

.dashboard-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
  animation: pulse 2s infinite;
}

.dashboard-card:hover .dashboard-icon {
  transform: scale(1.1);
  animation: bounceIn 0.6s ease-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Skeleton Loading */
.dashboard-skeleton {
  background: #2d3748 !important;
  border: 2px solid #4a5568 !important;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-icon {
  width: 40px;
  height: 40px;
  background: #4a5568;
  border-radius: 50%;
  margin-bottom: 12px;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-label {
  width: 80%;
  height: 16px;
  background: #4a5568;
  border-radius: 8px;
  margin-bottom: 8px;
  animation: skeletonShimmer 1.5s ease-in-out infinite 0.2s;
}

.skeleton-value {
  width: 60%;
  height: 24px;
  background: #4a5568;
  border-radius: 8px;
  animation: skeletonShimmer 1.5s ease-in-out infinite 0.4s;
}

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

@keyframes skeletonShimmer {
  0% {
    background: #4a5568;
  }
  50% {
    background: #718096;
  }
  100% {
    background: #4a5568;
  }
}

.dashboard-label {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .dashboard-icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  
  .dashboard-label {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }
}

.dashboard-label-produtos,
.dashboard-label-estoque {
  color: #a0aec0;
}

.dashboard-label-vendas,
.dashboard-label-receitas,
.dashboard-label-despesas,
.dashboard-label-saldo,
.dashboard-label-valor-medio,
.dashboard-label-saude {
  color: #e2e8f0;
}

.dashboard-value {
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.dashboard-card:hover .dashboard-value {
  transform: scale(1.05);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
  .dashboard-value {
    font-size: 1.4rem;
    margin-bottom: 2px;
  }
}

.dashboard-value-produtos {
  color: #38a169;
}

.dashboard-value-estoque {
  color: #3182ce;
}

.dashboard-value-vendas,
.dashboard-value-receitas,
.dashboard-value-despesas,
.dashboard-value-saldo,
.dashboard-value-valor-medio,
.dashboard-value-saude {
  color: #fff;
}

.dashboard-periodo {
  font-size: 1rem;
  margin-top: 4px;
  color: #e2e8f0;
}

@media (max-width: 600px) {
  .dashboard-periodo {
    font-size: 0.8rem;
    margin-top: 2px;
  }
  
  .dashboard-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .dashboard-card:hover .dashboard-icon {
    transform: scale(1.05);
  }
}

/* Animações específicas por tipo de card */
.dashboard-card-vendas:hover {
  box-shadow: 0 12px 32px rgba(23, 172, 175, 0.3);
}

.dashboard-card-receitas:hover {
  box-shadow: 0 12px 32px rgba(56, 161, 105, 0.3);
}

.dashboard-card-despesas:hover {
  box-shadow: 0 12px 32px rgba(229, 62, 62, 0.3);
}

.dashboard-card-saldo-positivo:hover {
  box-shadow: 0 12px 32px rgba(49, 130, 206, 0.3);
}

.dashboard-card-saldo-negativo:hover {
  box-shadow: 0 12px 32px rgba(229, 62, 62, 0.3);
}

.dashboard-card-produtos:hover {
  box-shadow: 0 12px 32px rgba(56, 161, 105, 0.2);
}

.dashboard-card-estoque:hover {
  box-shadow: 0 12px 32px rgba(23, 172, 175, 0.2);
}

.dashboard-card-valor-medio:hover {
  box-shadow: 0 12px 32px rgba(128, 90, 213, 0.3);
}

.dashboard-card-saude-excelente:hover {
  box-shadow: 0 12px 32px rgba(56, 161, 105, 0.3);
}

.dashboard-card-saude-boa:hover {
  box-shadow: 0 12px 32px rgba(49, 130, 206, 0.3);
}

.dashboard-card-saude-regular:hover {
  box-shadow: 0 12px 32px rgba(236, 201, 75, 0.3);
}

.dashboard-card-saude-atencao:hover {
  box-shadow: 0 12px 32px rgba(229, 62, 62, 0.3);
}

/* Efeito de brilho nos valores */
.dashboard-value {
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    background-position: -200% 0;
  }
  50% {
    background-position: 200% 0;
  }
}

