/* CSS Style */
/* ------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* Dark mode background */
[data-theme="dark"] body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.card-shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gradient-bg {
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
}

.bank-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bank-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.logo-placeholder {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Navigation link */
.nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  background-color: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}

.nav-link.active {
  background-color: rgba(29, 78, 216, 0.15);
  color: #1d4ed8;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Section transitions */
section {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form validation */
.input-error {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.05);
}

.input-success {
  border-color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.05);
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  background: white;
  color: #1f2937;
  border-radius: 8px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  max-width: 400px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.info {
  border-left: 4px solid #0ea5e9;
}

/* Social login buttons */
.social-login {
  transition: all 0.3s ease;
}

.social-login:hover {
  transform: scale(1.1);
}

/* Pulse animation for notifications */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.8);
  }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #374151;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #6b7280;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Mobile menu animation */
.mobile-menu-enter {
  transform: translateX(-100%);
}

.mobile-menu-enter-active {
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.mobile-menu-exit {
  transform: translateX(0);
}

.mobile-menu-exit-active {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

/* Transaction history row animation */
.transaction-row {
  animation: slideIn 0.5s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .logo-container {
    margin-bottom: 1rem;
  }

  .logo-placeholder {
    width: 140px;
    height: 140px;
    font-size: 1.2rem;
  }

  .stats {
    flex-direction: column;
  }

  .toast {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}

/* Print */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* CSS End */
/* ------------------------------------------------------- */
