/* ========== DASHBOARD PREMIUM ========== */
.financial-dashboard {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(255, 4, 1, 0.3);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.welcome-message {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.user-name {
  color: var(--primary-accent);
}

.account-info {
  font-size: 0.9rem;
  color: var(--secondary-gray);
}

.current-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
}

.current-date i {
  color: var(--primary-accent);
}

/* Cartão de saldo */
.balance-card {
  background: var(--gradient-accent);
  color: white;
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 24px rgba(255, 4, 1, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.1), transparent);
  z-index: 1;
}

.balance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(255, 4, 1, 0.3);
}

.card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.balance-info {
  display: flex;
  flex-direction: column;
}

.balance-label {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0.8rem;
}

.balance-value {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.amount {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.trend i {
  font-size: 0.8rem;
}

.balance-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
}

.action-btn:hover::before {
  opacity: 1;
}

.action-btn.transfer {
  background: var(--pure-white);
  color: var(--primary-accent);
}

.action-btn.deposit {
  background: rgba(255, 255, 255, 0.2);
  color: var(--pure-white);
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn i {
  font-size: 1rem;
}

/* Resumo financeiro */
.financial-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.summary-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}

.summary-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.card-header i {
  font-size: 1.3rem;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.summary-card.income .card-header i {
  color: var(--primary-accent);
}

.summary-card.expense .card-header i {
  color: #FF5252;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
}

.summary-card.income .progress-bar {
  background: var(--gradient-accent);
}

.summary-card.expense .progress-bar {
  background: #FF5252;
}

.comparison {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.comparison i {
  font-size: 0.8rem;
}

.comparison.positive {
  color: var(--primary-accent);
}

.comparison.negative {
  color: #FF5252;
}

/* Limites do cartão */
.limit-item {
  margin-bottom: 1.2rem;
}

.limit-item:last-child {
  margin-bottom: 0;
}

.limit-label {
  display: block;
  font-size: 0.9rem;
  color: var(--secondary-gray);
  margin-bottom: 0.3rem;
}

.limit-value {
  font-size: 0.95rem;
  font-weight: 500;
}

.limit-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0.5rem 0;
}

.limit-used {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-accent);
}

/* Ações rápidas */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-action:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.action-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 4, 1, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-accent);
  transition: all 0.3s;
}

.quick-action:hover .action-icon {
  background: var(--gradient-accent);
  color: white;
  transform: scale(1.1);
}

.quick-action span {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* Responsividade */
@media (max-width: 1200px) {
  .dashboard-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1.5rem;
  }
  
  .current-date {
      align-self: flex-end;
  }
}

@media (max-width: 768px) {
  .financial-dashboard {
      padding: 1.8rem;
  }
  
  .balance-value {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.8rem;
  }
  
  .balance-actions {
      width: 100%;
      flex-direction: column;
  }
  
  .action-btn {
      justify-content: center;
  }
}

@media (max-width: 480px) {
  .quick-actions {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .user-profile {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }
}
