body {
      font-family: 'Inter', sans-serif;
      background-color: #f0f2f5;
      color: #333;
    }
html {
  scroll-behavior: smooth;
}
    .welcome-message h3 {
      font-weight: 700;
    }
    @keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.card-3d:hover {
  transform: scale(0.97); /* Zoom out */
  box-shadow: 0 10px 30px rgba(118, 75, 162, 0.2);
}

.card-3d:hover .card-icon {
  animation: pulseIcon 1s infinite alternate;
}

@keyframes pulseIcon {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

    .card-3d {
  position: relative;
  border-radius: 16px;
  padding: 24px;
  color: white;
  background: linear-gradient(135deg, #667eea, #764ba2); /* Blue-purple gradient */
  box-shadow: 0 15px 40px rgba(118, 75, 162, 0.25), 0 0 30px rgba(118, 75, 162, 0.2); /* outer glow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform;
  cursor: pointer;
}


.card-3d:hover {
  transform: scale(0.97); /* subtle zoom out */
  box-shadow: 0 20px 50px rgba(118, 75, 162, 0.3), 0 0 40px rgba(118, 75, 162, 0.25);
}
.card-3d::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: inherit;
  filter: blur(30px);
  z-index: -1;
  border-radius: 20px;
  opacity: 0.3;
}
    .card-3d .card-icon {
      font-size: 24px;
      background: rgba(255, 255, 255, 0.15);
      padding: 10px 12px;
      border-radius: 10px;
      position: relative;
    }
.card-owner {
  position: absolute;
  bottom: 16px;
  left: 24px;
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.8;
  margin-left: 300px;
}
    .quick-actions {
      border-radius: 16px;
      background: #ffffff;
      box-shadow: 0 15px 40px rgba(91, 110, 245, 0.25);
      padding: 24px;
      transition: all 0.3s ease;
    }
    .quick-actions:hover {
      box-shadow: 0 20px 50px rgba(67, 97, 238, 0.3);
    }
    .quick-actions h5 {
      font-weight: 600;
      margin-bottom: 20px;
    }
    .quick-actions .btn {
      width: 100%;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: none;
      color: white;
      transition: transform 0.2s, box-shadow 0.2s;
      border-radius: 10px;
      padding: 12px 16px;
    }
    .quick-actions .btn:hover {
      transform: scale(1.03);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    .quick-actions .btn.btn-send-money,
.quick-actions .btn.btn-send-money:hover,
.quick-actions .btn.btn-send-money:focus {
  background: #0d6efd !important;
  color: #fff !important;
  box-shadow: none;
}
    .btn-send-money {
      background: #0d6efd;
    }
    .btn-send-money:hover {
      background: #0b5ed7; /* a darker blue for hover */
  color: #fff;
    }
    .btn-pay-bills {
      background: linear-gradient(90deg, #56ab2f, #a8e063);
    }
    .btn-mobile-deposit {
      background: linear-gradient(90deg, #ff6a00, #ee0979);
    }
    .btn-find-atm {
      background: linear-gradient(90deg, #232526, #414345);
    }
    .transaction-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  will-change: transform;
}
.transaction-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: bounceCard 0.4s;
}

@keyframes bounceCard {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.08); }
  60%  { transform: scale(0.98); }
  100% { transform: scale(1.03); }
}
    .transaction-icon {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background-color: #eff2fb;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      margin-right: 16px;
    }
    .transaction-info {
      flex-grow: 1;
    }
    .transaction-info h6 {
      margin: 0;
      font-weight: 600;
    }
    .transaction-info small {
      color: #6c757d;
    }
    .transaction-amount {
      font-weight: bold;
    }
    .profile-circle {
      background-color: #e9ecef;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      color: #495057;
    }
    .view-all-btn {
      display: block;
      text-align: right;
      margin-top: 10px;
    }
    .quick-actions .btn i {
      font-size: 18px;
    }

    /* Entrance Animation */
    @keyframes fadeInUp {
      0% {
        opacity: 0;
        transform: translateY(30px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .fade-in {
      animation: fadeInUp 0.8s ease both;
    }

    /* Stagger */
    .fade-in:nth-child(1) { animation-delay: 0.1s; }
    .fade-in:nth-child(2) { animation-delay: 0.2s; }
    .fade-in:nth-child(3) { animation-delay: 0.3s; }

    @media (max-width: 768px) {
      .welcome-message h3 {
        font-size: 1.5rem;
      }
      .quick-actions .btn {
        font-size: 0.85rem;
        padding: 10px;
      }
      .transaction-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 12px;
      }
      .transaction-info h6 {
        font-size: 0.95rem;
      }
      .transaction-info small,
      .transaction-amount {
        font-size: 0.8rem;
      }
    }
.glass {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  border-radius: 16px;
}
.spending-analytics-card {
    -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  transition: all 0.3s ease;
}

.dot {
  height: 10px;
  width: 10px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 4px;
}

.dot-food { background-color: #4caf50; }
.dot-bills { background-color: #2196f3; }
.dot-shopping { background-color: #ff9800; }
.dot-others { background-color: #9c27b0; }
.chart-container {
  width: 200px;   /* adjust width */
  height: 200px;  /* adjust height */
  margin: 0 auto; /* center the chart */
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}
.spending-analytics-legend {
  text-align: center;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 20px;
}