/* ============================================
   Base Styles & Variables  
   ============================================ */
:root {
  --primary-color: #0066B3;
  --secondary-color: #0088CC;
  --dark-blue: #003d82;
  --light-bg: #f8f9fa;
  --text-muted: #6c757d;
}

body { 
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  margin: 0;
  padding: 0;
}

/* ============================================
   Login Page Styles  
   ============================================ */
.login-page {
  display: flex;
  min-height: 100vh;
  background: white;
}

.login-left {
  flex: 1;
  background: linear-gradient(135deg, #0066B3 0%, #0088CC 50%, #00509E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 40px 20px;
}

.login-branding {
  text-align: center;
  max-width: 400px;
  animation: fadeInUp 0.8s ease-out;
}

.login-logo {
  font-size: 5rem;
  animation: bounceIn 0.6s ease;
}

.login-logo i {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.login-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.login-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
}

.feature-item i {
  font-size: 1.5rem;
}

.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #f8f9fa;
}

.login-form-container {
  width: 100%;
  max-width: 420px;
  animation: fadeInRight 0.8s ease-out;
}

.login-form-title {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 8px;
}

.login-form-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
}

.form-group {
  position: relative;
}

.form-group label {
  color: #212529;
}

.input-group-text {
  border: 1px solid #dee2e6;
  color: var(--primary-color);
}

.form-control {
  border: 1px solid #dee2e6;
  height: 48px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 179, 0.25);
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  font-size: 0.9rem;
  color: #dc3545;
}

.btn-outline-secondary {
  border: 1px solid #dee2e6;
  color: #6c757d;
  background: white;
  height: 48px;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: white;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  height: 48px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 179, 0.3);
}

.btn-primary:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 179, 0.25);
}

.form-check-label {
  cursor: pointer;
  user-select: none;
}

.demo-credentials-box {
  background: #e7f3ff;
  border-left: 4px solid var(--primary-color);
  padding: 16px;
  border-radius: 8px;
  animation: slideInUp 0.6s ease;
}

.demo-header {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin: 0;
}

.demo-text {
  color: #495057;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   Header / Navbar Styles  
   ============================================ */
.bg-primary-bank {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 600;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 80%;
  left: 10%;
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Hero Section  
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, #0066B3 0%, #0088CC 50%, #00509E 100%);
  padding: 80px 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-image {
  animation: fadeInRight 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Features Section  
   ============================================ */
.features-section {
  background: #ffffff;
  padding: 60px 0;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 102, 179, 0.15);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.text-primary-bank {
  color: var(--primary-color) !important;
}

/* ============================================
   Statistics Section  
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.stat-item {
  padding: 20px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 4rem;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: countUp 2s ease-out;
}

.stat-label {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Customer Spotlight Section  
   ============================================ */
.customer-spotlight-section {
  background: #ffffff;
}

.spotlight-card {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.spotlight-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 102, 179, 0.2);
}

.spotlight-image-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.spotlight-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.spotlight-card:hover .spotlight-image {
  transform: scale(1.1);
}

.spotlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 179, 0.8), rgba(0, 136, 204, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.spotlight-card:hover .spotlight-overlay {
  opacity: 1;
}

.spotlight-icon {
  font-size: 4rem;
  color: white;
  animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.spotlight-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.spotlight-content .btn-link {
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.spotlight-content .btn-link:hover {
  gap: 10px;
  padding-left: 10px;
}

.spotlight-content .btn-link i {
  transition: transform 0.3s ease;
}

.spotlight-content .btn-link:hover i {
  transform: translateX(5px);
}

/* ============================================
   Banking Services Sections  
   ============================================ */
.banking-services-section {
  padding: 80px 0;
  scroll-margin-top: 80px; /* Offset for fixed header */
}

.banking-services-section h2 {
  position: relative;
  padding-bottom: 15px;
}

.banking-services-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  padding: 12px 0;
  font-size: 1.1rem;
  color: #495057;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-list li:hover {
  transform: translateX(10px);
  color: var(--primary-color);
}

.service-list li i {
  font-size: 1.3rem;
}

.banking-services-section img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.banking-services-section img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 45px rgba(0, 102, 179, 0.25);
}

/* Smooth scrolling for all links */
html {
  scroll-behavior: smooth;
}

/* ============================================
   Bank Locations Section  
   ============================================ */
.bank-locations-section {
  background-color: #f8f9fa;
}

.location-card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  border-radius: 20px;
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.location-header {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  border-radius: 20px 20px 0 0;
}

.location-body {
  background: white;
}

.location-detail {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
}

.location-detail i {
  font-size: 18px;
  margin-right: 12px;
  margin-top: 2px;
}

.location-detail strong {
  color: #1a1a1a;
  font-weight: 600;
}

.location-detail a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.location-detail a:hover {
  color: #0052a3;
}

.location-detail p {
  font-size: 13px;
  color: #666;
}

/* ============================================
   Call to Action Section  
   ============================================ */
.cta-section {
  background: #f8f9fa;
}

.cta-card {
  background: linear-gradient(135deg, #0066B3 0%, #0088CC 50%, #00509E 100%);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 102, 179, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.cta-card .btn {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.cta-card .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Scroll Animations  
   ============================================ */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-on-scroll.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for child elements */
.feature-card,
.spotlight-card,
.stat-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1),
.spotlight-card:nth-child(1),
.stat-item:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2),
.spotlight-card:nth-child(2),
.stat-item:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3),
.spotlight-card:nth-child(3),
.stat-item:nth-child(3) {
  animation-delay: 0.3s;
}

/* ============================================
   Footer Styles  
   ============================================ */
.footer-contact p,
.footer-links li {
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links a:hover {
  text-decoration: underline !important;
  opacity: 0.8;
}

/* ============================================
   Card & Form Styles  
   ============================================ */
.card { 
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.bi { 
  vertical-align: -.125em; 
}

/* ============================================
   Responsive Mobile Styles  
   ============================================ */
@media (max-width: 576px) {
  .container { 
    padding-left: 12px; 
    padding-right: 12px; 
  }
  
  .hero-section {
    padding: 40px 0;
    min-height: 400px;
  }
  
  .hero-content h1 {
    font-size: 2rem !important;
  }
  
  .features-section {
    padding: 40px 0;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .spotlight-image-wrapper {
    height: 200px;
  }

  .spotlight-content {
    padding: 20px;
  }

  .cta-card {
    padding: 30px 20px !important;
  }

  .cta-card h2 {
    font-size: 1.8rem !important;
  }

  .banking-services-section {
    padding: 40px 0;
  }

  .banking-services-section h2 {
    font-size: 2rem !important;
  }

  .service-list li {
    font-size: 1rem;
    padding: 8px 0;
  }

  /* Login Page Mobile Styles */
  .login-page {
    flex-direction: column;
  }

  .login-left {
    display: none;
  }

  .login-right {
    padding: 20px;
  }

  .login-form-container {
    max-width: 100%;
  }

  .login-form-title {
    font-size: 1.5rem;
  }

  .form-control {
    height: 44px;
  }

  .btn-primary {
    height: 44px;
  }
}

/* ============================================
   Button Styles  
   ============================================ */
.btn { 
  min-height: 44px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 179, 0.3);
}

@media (max-width: 576px) {
  .btn-responsive { 
    width: 100% !important; 
    margin-bottom: .5rem; 
  }
  .btn-group-responsive > .btn { 
    width: 100% !important; 
  }
}

/* ============================================
   Utility Classes  
   ============================================ */
.dropdown-menu { 
  z-index: 1200; 
}

/* ============================================
   Dark Mode (Optional)  
   ============================================ */
.dark-mode { 
  background: #0b1220; 
  color: #e6eef8; 
}

.dark-mode .card { 
  background: #0f1724; 
  color: #e6eef8; 
}

.dark-mode .navbar { 
  background: #081427 !important; 
}

.dark-mode .list-group-item { 
  background: transparent; 
  color: #d7e8ff; 
  border-color: rgba(255,255,255,0.04); 
}

.dark-mode .btn-outline-secondary { 
  color: #d7e8ff; 
  border-color: rgba(255,255,255,0.08); 
}

.dark-mode .form-control { 
  background: rgba(255,255,255,0.02); 
  color: #d7e8ff; 
  border-color: rgba(255,255,255,0.04); 
}

/* ============================================
   Transaction Styles  
   ============================================ */
.tx-overlay-backdrop {
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.35); 
  display: flex; 
  align-items: flex-end; 
  justify-content: center; 
  z-index: 1050;
}

.tx-overlay-card {
  width: 100%; 
  max-width: 720px; 
  border-radius: 12px 12px 0 0; 
  background: #fff; 
  padding: 16px; 
  box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
}

@media (min-width: 768px) {
  .tx-overlay-card { 
    border-radius: 12px; 
    margin: 24px; 
    align-self: center; 
  }
}

.list-group-item.tx-item { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  padding: 14px 16px; 
}

.tx-left { 
  flex: 1 1 auto; 
  min-width: 0; 
}

.tx-desc { 
  font-weight: 600;
  display: block; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

.tx-date { 
  color: #6c757d; 
  font-size: 0.9rem; 
}

.tx-amount { 
  min-width: 120px; 
  text-align: right; 
  font-weight: 700; 
}

.tx-actions { 
  width: 100px; 
  display: flex; 
  justify-content: flex-end; 
}

.tx-actions .btn { 
  padding: .375rem .6rem; 
}

.list-group-item.tx-item + .list-group-item.tx-item { 
  border-top: 1px solid rgba(0,0,0,0.06); 
}

@media (max-width: 576px) {
  .tx-amount { 
    min-width: 90px; 
    font-size: 0.98rem; 
  }
  .tx-actions { 
    width: 80px; 
  }
  .list-group-item.tx-item { 
    padding: 12px; 
  }
}

/* ============================================
   Page Layout  
   ============================================ */
.page-card { 
  padding: 16px; 
  border-radius: 12px; 
}

.card .list-group { 
  margin: 0; 
}

.card { 
  overflow: visible; 
}

.btn-responsive { 
  min-width: 0; 
}

/* ============================================
   Patinence Finance Dashboard Styles  
   ============================================ */

.us-banking-dashboard {
  background: #f0f1f3;
  min-height: 100vh;
  padding-bottom: 40px;
}

.dashboard-top {
  background: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 24px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dashboard-welcome {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.5px;
}

.dashboard-date {
  font-size: 13px;
  color: #666;
  margin: 6px 0 0 0;
}

/* Profile Avatar Section */
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.25);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-actions {
  display: flex;
  gap: 8px;
}

.dashboard-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

/* Primary Account Card - Chase Style */
.checking-account-card {
  background: linear-gradient(135deg, #0066B3 0%, #0052A3 100%);
  color: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 102, 179, 0.2);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.5s ease-out;
}

.checking-account-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* Savings Account Card */
.savings-account-card {
  background: linear-gradient(135deg, #27b06f 0%, #1e9456 100%);
  color: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(39, 176, 111, 0.2);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.5s ease-out 0.1s both;
}

.savings-account-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* Investment Account Card */
.investment-account-card {
  background: linear-gradient(135deg, #9c5de8 0%, #6d28d9 100%);
  color: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(156, 93, 232, 0.2);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.5s ease-out 0.2s both;
}

.investment-account-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.account-type {
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-number {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
  font-weight: 500;
}

.account-icon {
  font-size: 32px;
  opacity: 0.8;
}

.account-balance-section {
  position: relative;
  z-index: 1;
}

.balance-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin: 0 0 8px 0;
}

.balance-amount {
  font-size: 40px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -1px;
}

.savings-rate {
  font-size: 14px;
  opacity: 0.9;
  margin: 12px 0 0 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.portfolio-gain {
  font-size: 14px;
  opacity: 0.9;
  margin: 12px 0 0 0;
  font-weight: 600;
  color: #4ade80;
}

/* Quick Stats Cards */
.quick-stat-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.quick-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0 0 6px 0;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.stat-icon {
  font-size: 24px;
  color: #0066B3;
  opacity: 0.6;
}

/* Quick Actions - Enhanced Banking Services */
.quick-actions-section {
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.qa-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  padding: 0;
}

.action-btn {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  min-height: 120px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 179, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action-btn:hover {
  background: linear-gradient(to bottom, #f0f7ff, white);
  border-color: #0066B3;
  color: #0066B3;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 102, 179, 0.15);
}

.action-btn:hover::before {
  opacity: 1;
}

.action-icon-wrapper {
  position: relative;
  z-index: 1;
  font-size: 28px;
  color: #0066B3;
  transition: transform 0.3s ease;
}

.action-btn:hover .action-icon-wrapper {
  transform: scale(1.15);
}

.action-label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  position: relative;
  z-index: 1;
}

.action-desc {
  font-size: 9px;
  color: #999;
  display: block;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* Banking Transaction Table */
.bank-transaction-table {
  width: 100%;
  border-collapse: collapse;
}

.tx-header-row {
  display: grid;
  grid-template-columns: 1fr 2fr 0.8fr 1fr 1fr;
  gap: 16px;
  padding: 14px 20px;
  background: #f5f7fa;
  border-bottom: 2px solid #e5e5e5;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  align-items: center;
}

.tx-row {
  display: grid;
  grid-template-columns: 1fr 2fr 0.8fr 1fr 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  transition: background-color 0.2s ease;
}

.tx-row:hover {
  background-color: #f9f9f9;
}

.tx-row:last-child {
  border-bottom: none;
}

.tx-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-date {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.tx-date-value {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.tx-available-date {
  font-size: 10px;
  color: #999;
}

.tx-description {
  align-items: center;
  gap: 12px;
}

.tx-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tx-icon-badge.income {
  background: #e8f5e9;
  color: #27b06f;
}

.tx-icon-badge.fuel {
  background: #fff3e0;
  color: #f39c12;
}

.tx-icon-badge.deposit {
  background: #e8f5e9;
  color: #27b06f;
}

.tx-icon-badge.credit {
  background: #e8f5e9;
  color: #27b06f;
}

.tx-icon-badge.debit {
  background: #ffebee;
  color: #c62828;
}

.tx-desc-details {
  min-width: 0;
  flex: 1;
}

.tx-merchant {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-reference {
  font-size: 10px;
  color: #999;
  margin: 3px 0 0 0;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.posted {
  background: #e8f5e9;
  color: #27b06f;
}

.tx-amount {
  justify-content: flex-end;
}

.tx-amt {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.tx-amt.credit {
  color: #27b06f;
}

.tx-amt.debit {
  color: #c62828;
}

.tx-balance {
  justify-content: flex-end;
}

.tx-balance-value {
  font-size: 13px;
  font-weight: 600;
  color: #0066B3;
}

/* Banking Transaction Format - Date Grouped */
.tx-date-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #f9f9f9;
  border-bottom: 2px solid #e5e5e5;
  border-top: 1px solid #e5e5e5;
  margin-top: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tx-date-label {
  color: #666;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.tx-date-balance {
  color: #0066B3;
  font-weight: 700;
  font-size: 13px;
}

.tx-date-group {
  border-bottom: 2px solid #e5e5e5;
}

.tx-banking-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  gap: 16px;
}

.tx-banking-row:hover {
  background-color: #f9f9f9;
}

.tx-banking-row:last-child {
  border-bottom: none;
}

.tx-banking-left {
  flex: 1;
  min-width: 0;
}

.tx-banking-description {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tx-banking-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

.tx-banking-reference {
  font-size: 11px;
  color: #999;
  margin: 0;
  line-height: 1.3;
}

.tx-banking-right {
  text-align: right;
  flex-shrink: 0;
}

.tx-banking-amount {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin: 4px 0;
}

.tx-banking-amount.credit {
  color: #27b06f;
}

.tx-banking-amount.debit {
  color: #c62828;
}

/* Transactions Section */
.transactions-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

.transaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
}

.search-box i {
  position: absolute;
  left: 12px;
  color: #999;
  font-size: 14px;
}

.transaction-search {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.transaction-search:focus {
  border-color: #0066B3;
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

.transaction-list {
  max-height: 600px;
  overflow-y: auto;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s ease;
}

.transaction-item:hover {
  background-color: #fafafa;
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}

.transaction-icon.credit {
  background: #e8f5e9;
  color: #2e7d32;
}

.transaction-icon.debit {
  background: #ffebee;
  color: #c62828;
}

.transaction-details {
  min-width: 0;
}

.transaction-title {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-date {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.transaction-right {
  text-align: right;
  min-width: 120px;
}

.transaction-amount {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.transaction-amount.credit {
  color: #2e7d32;
}

.transaction-amount.debit {
  color: #c62828;
}

.transaction-balance {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* Responsive Design - Tablets */
@media (max-width: 1024px) {
  .dashboard-welcome {
    font-size: 24px;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
  }

  .balance-amount {
    font-size: 32px;
  }

  .search-box {
    width: 180px;
  }

  .transaction-search {
    font-size: 12px;
    padding: 6px 10px 6px 32px;
  }

  .tx-header-row,
  .tx-row {
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 12px;
    padding: 12px 16px;
  }

  .tx-status {
    display: none;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .us-banking-dashboard {
    padding-bottom: 20px;
  }

  .dashboard-top {
    padding: 16px 0;
  }

  .dashboard-welcome {
    font-size: 20px;
  }

  .dashboard-date {
    font-size: 12px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar-section {
    gap: 12px;
  }

  .dashboard-actions {
    width: 100%;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .dashboard-actions .btn {
    flex: 1;
    min-width: 100px;
    font-size: 12px;
  }

  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 12px;
  }

  .checking-account-card,
  .savings-account-card,
  .investment-account-card {
    padding: 24px;
  }

  .balance-amount {
    font-size: 28px;
  }

  .account-icon {
    font-size: 24px;
  }

  .action-btn {
    padding: 16px 10px;
    min-height: 110px;
  }

  .action-label {
    font-size: 11px;
  }

  .action-desc {
    font-size: 8px;
  }

  .action-icon-wrapper {
    font-size: 24px;
  }

  .transaction-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .search-box {
    width: 100%;
  }

  .tx-header-row,
  .tx-row {
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 10px;
    padding: 12px 12px;
  }

  .tx-status {
    display: none;
  }

  .tx-col {
    gap: 6px;
  }

  .tx-icon-badge {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .tx-merchant {
    font-size: 12px;
  }

  .tx-amt {
    font-size: 13px;
  }

  .tx-balance-value {
    font-size: 12px;
  }

  .transaction-item {
    padding: 12px 16px;
  }

  .transaction-left {
    gap: 10px;
  }

  .transaction-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .transaction-title {
    font-size: 13px;
  }

  .transaction-date {
    font-size: 11px;
  }

  .transaction-amount {
    font-size: 13px;
  }

  .transaction-balance {
    font-size: 11px;
  }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
  .dashboard-welcome {
    font-size: 18px;
  }

  .dashboard-date {
    font-size: 11px;
  }

  .profile-avatar {
    width: 50px;
    height: 50px;
  }

  .profile-avatar-section {
    gap: 10px;
  }

  .checking-account-card,
  .savings-account-card,
  .investment-account-card {
    padding: 20px;
  }

  .account-header {
    margin-bottom: 20px;
  }

  .balance-amount {
    font-size: 24px;
  }

  .balance-label {
    font-size: 11px;
  }

  .quick-stat-card {
    padding: 12px;
  }

  .stat-value {
    font-size: 16px;
  }

  .stat-label {
    font-size: 11px;
  }

  .action-btn {
    padding: 12px 8px;
    min-height: 100px;
    gap: 6px;
  }

  .action-label {
    font-size: 10px;
  }

  .action-desc {
    font-size: 7px;
  }

  .action-icon-wrapper {
    font-size: 20px;
  }

  .row.g-2 > .col-6 {
    flex: 0 0 50%;
  }

  .section-title {
    font-size: 16px;
  }

  .tx-header-row,
  .tx-row {
    grid-template-columns: 1fr 1.5fr 0.8fr;
    gap: 8px;
    padding: 8px 10px;
  }

  .tx-date-value {
    font-size: 11px;
  }

  .tx-available-date {
    font-size: 9px;
  }

  .tx-merchant {
    font-size: 11px;
  }

  .tx-reference {
    font-size: 9px;
  }

  .tx-amt {
    font-size: 12px;
  }

  .tx-balance-value {
    font-size: 11px;
  }

  .tx-icon-badge {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .transaction-item {
    padding: 10px 12px;
  }

  .transaction-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .transaction-title {
    font-size: 12px;
  }

  .transaction-right {
    min-width: 100px;
  }

  .transaction-amount {
    font-size: 12px;
  }

  /* Banking Format - Mobile Responsive */
  .tx-date-group-header {
    padding: 10px 16px;
    font-size: 12px;
  }

  .tx-date-label {
    font-size: 11px;
  }

  .tx-date-balance {
    font-size: 12px;
  }

  .tx-banking-row {
    padding: 12px 16px;
    gap: 12px;
  }

  .tx-banking-title {
    font-size: 12px;
  }

  .tx-banking-reference {
    font-size: 10px;
  }

  .tx-banking-amount {
    font-size: 12px;
  }
}


/* Balance Card */
.balance-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 102, 179, 0.2);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.balance-card-content {
  position: relative;
  z-index: 1;
}

.balance-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-amount {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.balance-account {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -30px);
  }
}

/* Dashboard Cards */
.dashboard-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.dashboard-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.dashboard-card .card-header {
  background: white;
  border-bottom: 2px solid #f0f0f0;
  padding: 20px;
  border-radius: 12px 12px 0 0;
}

.dashboard-card .card-header h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin: 0;
}

.dashboard-card .card-body {
  padding: 20px;
  background: white;
  border-radius: 0 0 12px 12px;
}

.account-info {
  padding: 12px 0;
  border-top: 1px solid #e9ecef;
}

.account-info small {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Transaction Form */
.card-body .form-label {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.card-body .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.card-body .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
  background-color: white;
}

.card-body .form-control::placeholder {
  color: #cbd5e1;
}

/* Transaction Table */
.table-responsive {
  padding: 0;
}

.table {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.table thead th {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding: 16px;
  background: #f9f9f9;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f9f9f9;
}

.table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
}

.table .badge {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Transaction Amount Colors */
.text-success-tx {
  color: #28a745;
  font-weight: 600;
}

.text-danger-tx {
  color: #dc3545;
  font-weight: 600;
}

/* Empty State */
.text-center.py-5 {
  color: var(--text-muted);
}

.text-center.py-5 i {
  color: #d9d9d9;
  opacity: 0.6;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-page {
    padding: 10px 0;
  }

  .dashboard-header {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .dashboard-header .d-flex {
    flex-direction: column;
    gap: 15px;
  }

  .dashboard-header .btn {
    width: 100%;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }

  .balance-card {
    padding: 25px;
  }

  .balance-amount {
    font-size: 2rem;
  }

  .row.g-4 {
    gap: 15px !important;
  }

  .row.g-4 > div {
    margin-bottom: 10px;
  }

  .table {
    font-size: 0.85rem;
  }

  .table thead th,
  .table tbody td {
    padding: 10px 8px;
  }

  .card .card-header {
    padding: 15px;
  }

  .card .card-header h5 {
    font-size: 1rem;
  }

  .card .card-header .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .dashboard-card .card-body {
    padding: 15px;
  }

  /* Mobile Transaction View */
  .table-responsive {
    overflow-x: auto;
  }

  .table {
    min-width: 500px;
  }
}

@media (max-width: 480px) {
  .dashboard-title {
    font-size: 1.25rem;
  }

  .balance-card {
    padding: 20px;
  }

  .balance-amount {
    font-size: 1.75rem;
  }

  .balance-label {
    font-size: 0.8rem;
  }

  .table {
    font-size: 0.75rem;
    min-width: 450px;
  }

  .table thead th {
    padding: 8px 6px;
  }

  .table tbody td {
    padding: 8px 6px;
  }

  .card .card-header {
    flex-direction: column;
    gap: 10px;
  }

  .card .card-header .btn {
    width: 100%;
  }

  .btn {
    font-size: 0.875rem;
  }
}

/* Animation for slide down */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Suspension Modal Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
}