/* Base Styles - Revamped for Banking Site */
:root {
  /* Light Theme Colors */
  --primary: #0056b3; /* Darker Blue for main actions/branding */
  --primary-light: #007bff; /* Lighter Blue for hover/active states */
  --secondary: #6c757d; /* Grey for secondary elements */
  --accent: #28a745; /* Green for success/positive actions */
  --background: #f8f9fa; /* Light background */
  --card-background: #ffffff; /* White cards */
  --text-color: #343a40; /* Dark grey text */
  --text-light: #6c757d; /* Lighter grey text */
  --border-color: #dee2e6; /* Light grey borders */
  --shadow-color: rgba(0, 0, 0, 0.08); /* Subtle shadow */

  /* Specific Accent Colors (for theme-blue, theme-green, etc.) */
  --theme-blue: #007bff;
  --theme-green: #28a745;
  --theme-purple: #6f42c1;
  --theme-orange: #fd7e14;
  --theme-teal: #20c997;
  --theme-pink: #e83e8c;

  /* Default theme accent */
  --current-accent-color: var(--theme-blue);
}

/* Dark Theme */
body.dark-theme {
  --primary: #4299e1; /* Lighter blue for dark mode primary */
  --primary-light: #63b3ed;
  --secondary: #a0aec0;
  --accent: #48bb78;
  --background: #1a202c; /* Dark background */
  --card-background: #2d3748; /* Darker cards */
  --text-color: #e2e8f0; /* Light text */
  --text-light: #a0aec0;
  --border-color: #4a5568;
  --shadow-color: rgba(0, 0, 0, 0.3);

  /* Dark theme specific accent colors (can be same or adjusted) */
  --theme-blue: #63b3ed;
  --theme-green: #48bb78;
  --theme-purple: #9f7aea;
  --theme-orange: #fbd38d;
  --theme-teal: #4fd1c5;
  --theme-pink: #f687b3;

  --current-accent-color: var(--theme-blue); /* Default for dark mode */
}

/* Dynamic Accent Colors based on localStorage 'colorTheme' */
body.theme-blue {
  --current-accent-color: var(--theme-blue);
}
body.theme-green {
  --current-accent-color: var(--theme-green);
}
body.theme-purple {
  --current-accent-color: var(--theme-purple);
}
body.theme-orange {
  --current-accent-color: var(--theme-orange);
}
body.theme-teal {
  --current-accent-color: var(--theme-teal);
}
body.theme-pink {
  --current-accent-color: var(--theme-pink);
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
  margin-bottom: 0.5em;
  font-weight: 700;
}

p {
  margin-bottom: 1em;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.mt-4 {
  margin-top: 1rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.hidden {
  display: none !important;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-col {
  flex-direction: column;
}
.gap-4 {
  gap: 1rem;
}
.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.md\:grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lg\:grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.xl\:grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rounded-lg {
  border-radius: 0.5rem;
}
.shadow-md {
  box-shadow: 0 4px 6px var(--shadow-color);
}
.shadow-lg {
  box-shadow: 0 10px 15px var(--shadow-color);
}
.border {
  border: 1px solid var(--border-color);
}
.border-t {
  border-top: 1px solid var(--border-color);
}
.border-b {
  border-bottom: 1px solid var(--border-color);
}
.w-full {
  width: 100%;
}
.max-w-screen-xl {
  max-width: 1280px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.z-10 {
  z-index: 10;
}
.object-cover {
  object-fit: cover;
}
.bg-cover {
  background-size: cover;
}
.bg-center {
  background-position: center;
}
.bg-no-repeat {
  background-repeat: no-repeat;
}
.text-white {
  color: #ffffff;
}
.font-bold {
  font-weight: 700;
}
.text-4xl {
  font-size: 2.25rem;
}
.text-5xl {
  font-size: 3rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}
.leading-tight {
  line-height: 1.25;
}
.leading-relaxed {
  line-height: 1.625;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.cursor-pointer {
  cursor: pointer;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.hover\:scale-105:hover {
  transform: scale(1.05);
}
.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px var(--shadow-color);
}
.hover\:underline:hover {
  text-decoration: underline;
}
.focus\:outline-none:focus {
  outline: none;
}
.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px var(--current-accent-color);
}
.focus\:ring-offset-2:focus {
  box-shadow: 0 0 0 2px var(--current-accent-color), 0 0 0 4px var(--background);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  border: 1px solid transparent;
  font-size: 1em;
}

.button:active {
  transform: translateY(1px);
}

.button.primary-button {
  background-color: var(--current-accent-color);
  color: #ffffff;
}

.button.primary-button:hover {
  background-color: var(--primary-light);
}

.button.secondary-button {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--border-color);
}

.button.secondary-button:hover {
  background-color: var(--background);
  border-color: var(--text-light);
}

.button.outline-button {
  background-color: transparent;
  color: var(--current-accent-color);
  border: 2px solid var(--current-accent-color);
}

.button.outline-button:hover {
  background-color: var(--current-accent-color);
  color: #ffffff;
}

.button.small {
  padding: 8px 16px;
  font-size: 0.9em;
}

.button svg {
  margin-right: 8px;
}

/* Header */
.main-header {
  background-color: var(--card-background);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  box-shadow: 0 2px 5px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .logo img {
  height: 40px; /* Adjust as needed */
  transition: filter 0.3s ease;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--current-accent-color);
  text-decoration: none;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: var(--current-accent-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.theme-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary);
  transition: .4s;
  border-radius: 20px;
}

.theme-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .theme-toggle-slider {
  background-color: var(--current-accent-color);
}

input:checked + .theme-toggle-slider:before {
  transform: translateX(20px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 101;
  display: none;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -300px; /* Hidden by default */
  width: 280px;
  height: 100%;
  background-color: var(--card-background);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 102;
  transition: right 0.3s ease-in-out;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-menu.open {
  right: 0;
}

.mobile-nav-menu ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.mobile-nav-menu li {
  margin-bottom: 15px;
}

.mobile-nav-menu a {
  display: block;
  color: var(--text-color);
  font-size: 1.1em;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu a:hover {
  color: var(--current-accent-color);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.8em;
  align-self: flex-end;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 500px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Default dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: inherit; /* Inherit white color */
}

.hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: inherit; /* Inherit white color */
}

.hero-buttons .button {
  margin: 0 10px;
}

/* Quick Actions Section */
.quick-actions-section {
  padding: 60px 0;
  background-color: var(--background);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.quick-action-card {
  background-color: var(--card-background);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-color);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color);
}

.quick-action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.quick-action-card svg {
  width: 40px;
  height: 40px;
  color: var(--current-accent-color);
  margin-bottom: 15px;
}

.quick-action-card h3 {
  font-size: 1.2em;
  margin-bottom: 0;
}

/* Service Cards Section */
.service-cards-section {
  padding: 60px 0;
  background-color: var(--background);
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.service-card .icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: var(--current-accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card .icon-wrapper svg {
  width: 30px;
  height: 30px;
  color: #ffffff;
}

.service-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95em;
}

/* Horizontal Scroll Grids (e.g., for News/Tips) */
.horizontal-scroll-section {
  padding: 60px 0;
  background-color: var(--background);
}

.horizontal-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 15px; /* For scrollbar visibility */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--primary-light) var(--border-color); /* Firefox */
}

.horizontal-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 10px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
  border-radius: 10px;
  border: 2px solid var(--border-color);
}

.scroll-card {
  flex: 0 0 300px; /* Fixed width for scroll items */
  background-color: var(--card-background);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.scroll-card h4 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.scroll-card p {
  font-size: 0.9em;
  color: var(--text-light);
}

/* About Section */
.about-section {
  padding: 60px 0;
  background-color: var(--background);
  text-align: center;
}

.about-section h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  color: var(--text-light);
}

/* Footer */
.main-footer {
  background-color: var(--primary);
  color: #ffffff;
  padding: 40px 0;
  font-size: 0.9em;
}

.main-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.main-footer .footer-logo img {
  height: 50px;
  margin-bottom: 15px;
  filter: brightness(0) invert(1); /* Make logo white for dark background */
}

.main-footer h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.main-footer ul {
  list-style: none;
  padding: 0;
}

.main-footer ul li {
  margin-bottom: 8px;
}

.main-footer ul a {
  color: rgba(255, 255, 255, 0.8);
}

.main-footer ul a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.main-footer .contact-info p {
  margin-bottom: 8px;
}

.main-footer .social-links a {
  display: inline-block;
  margin-right: 15px;
  color: #ffffff;
}

.main-footer .social-links svg {
  width: 24px;
  height: 24px;
}

.main-footer .copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Dashboard Wrapper (for logged-in users) */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.dashboard-section {
  flex-grow: 1;
  padding: 30px;
  background-color: var(--background);
}

.section-title {
  font-size: 2.5em;
  color: var(--text-color);
  margin-bottom: 30px;
  font-weight: 700;
}

.card {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--shadow-color);
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
  font-size: 1.5em;
  color: var(--text-color);
  margin: 0;
}

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.account-card {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.account-card.primary-card {
  background-color: var(--current-accent-color);
  color: #ffffff;
  border-color: var(--current-accent-color);
}

.account-card.primary-card .account-name,
.account-card.primary-card .account-number,
.account-card.primary-card .account-balance,
.account-card.primary-card .account-status {
  color: #ffffff;
}

.account-info .account-name {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 5px;
}

.account-info .account-number {
  font-size: 0.9em;
  color: var(--text-light);
}

.account-balance {
  font-size: 2em;
  font-weight: 700;
  margin-top: 15px;
}

.account-status {
  font-size: 0.8em;
  color: var(--text-light);
  margin-top: 5px;
}

.table-responsive {
  overflow-x: auto;
}

.transaction-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.9em;
}

.transaction-history-table th,
.transaction-history-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.transaction-history-table th {
  background-color: var(--background);
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
}

.transaction-history-table tbody tr:nth-child(even) {
  background-color: var(--background);
}

.transaction-history-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.amount-col {
  font-weight: 600;
}

.success-text {
  color: var(--accent);
}

.danger-text {
  color: #dc3545; /* Red for negative amounts */
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
}

.status-pill.active,
.status-pill.completed,
.status-pill.success {
  background-color: var(--accent);
}

.status-pill.inactive,
.status-pill.rejected,
.status-pill.danger {
  background-color: #dc3545;
}

.status-pill.pending,
.status-pill.warning {
  background-color: #ffc107;
  color: var(--text-color);
}

/* Profile Page */
.profile-card .profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.profile-card .profile-picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--current-accent-color);
  box-shadow: 0 4px 10px var(--shadow-color);
}

.profile-card .profile-info h2 {
  font-size: 1.8em;
  margin-bottom: 5px;
}

.profile-card .profile-info .profile-email {
  color: var(--text-light);
  font-size: 1em;
}

.profile-card .profile-info .profile-member-since {
  font-size: 0.9em;
  color: var(--text-light);
  margin-top: 5px;
}

.profile-card .profile-header .button {
  margin-left: auto;
}

.sub-section-title {
  font-size: 1.3em;
  color: var(--text-color);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.profile-details-grid,
.security-info-grid,
.preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.detail-item,
.security-item,
.preference-item {
  background-color: var(--background);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.detail-label,
.security-label,
.preference-label {
  font-weight: 600;
  color: var(--text-color);
  display: block;
  margin-bottom: 5px;
}

.detail-value,
.security-value,
.preference-value {
  color: var(--text-light);
  font-size: 0.95em;
}

.button-link {
  background: none;
  border: none;
  color: var(--current-accent-color);
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  padding: 0;
  margin-top: 10px;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.button-link:hover {
  color: var(--primary-light);
}

/* Edit Profile Page */
.profile-edit-form .form-group {
  margin-bottom: 20px;
}

.profile-edit-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.profile-edit-form input[type="text"],
.profile-edit-form input[type="email"],
.profile-edit-form input[type="tel"],
.profile-edit-form input[type="number"],
.profile-edit-form select,
.profile-edit-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-background);
  color: var(--text-color);
  font-size: 1em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-edit-form input:focus,
.profile-edit-form select:focus,
.profile-edit-form textarea:focus {
  border-color: var(--current-accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  outline: none;
}

.profile-picture-edit {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  margin-bottom: 10px;
}

.form-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

/* Deposit Check Page */
.deposit-check-card .deposit-form .form-group {
  margin-bottom: 20px;
}

.deposit-check-card .deposit-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.deposit-check-card .deposit-form input[type="file"] {
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 6px;
  background-color: var(--background);
  width: 100%;
}

.deposit-check-card .deposit-form input[type="file"]::file-selector-button {
  background-color: var(--current-accent-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.deposit-check-card .deposit-form input[type="file"]::file-selector-button:hover {
  background-color: var(--primary-light);
}

.deposit-check-card .deposit-form .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-background);
  color: var(--text-color);
  font-size: 1em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deposit-check-card .deposit-form .form-control:focus {
  border-color: var(--current-accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  outline: none;
}

.deposit-check-card .deposit-form .full-width {
  width: 100%;
}

.deposit-instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.instruction-step {
  background-color: var(--card-background);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-color);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.instruction-step .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--current-accent-color);
  color: #ffffff;
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 20px;
}

.instruction-step .step-content h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.instruction-step .step-content p {
  color: var(--text-light);
  font-size: 0.95em;
  margin-bottom: 15px;
}

.instruction-step .instruction-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px var(--shadow-color);
}

.accounts-overview-grid {
  margin-top: 40px;
}

/* Alerts */
.alert {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 0.95em;
}

.alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8em;
  }
  .hero-content p {
    font-size: 1.1em;
  }
  .main-nav ul {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .main-nav,
  .header-actions .button {
    display: none; /* Hide desktop nav and login/signup buttons */
  }
  .mobile-menu-toggle {
    display: block; /* Show mobile menu toggle */
  }
  .main-header .container {
    padding: 0 15px;
  }
  .hero-section {
    height: 400px;
  }
  .hero-content h1 {
    font-size: 2.5em;
  }
  .hero-content p {
    font-size: 1em;
  }
  .hero-buttons .button {
    display: block;
    width: 80%;
    margin: 10px auto;
  }
  .quick-actions-grid,
  .service-cards-grid,
  .profile-details-grid,
  .security-info-grid,
  .preferences-grid,
  .deposit-instructions-grid {
    grid-template-columns: 1fr; /* Stack columns on small screens */
  }
  .main-footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .main-footer .footer-logo {
    margin-bottom: 20px;
  }
  .main-footer .social-links {
    margin-top: 20px;
  }
  .main-footer .social-links a {
    margin: 0 10px;
  }
  .dashboard-section {
    padding: 20px;
  }
  .section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .card {
    padding: 20px;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-header h2 {
    margin-bottom: 10px;
  }
  .profile-card .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-card .profile-header .button {
    margin-left: 0;
    margin-top: 15px;
  }
  .profile-card .profile-picture {
    margin-bottom: 15px;
  }
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 350px;
  }
  .hero-content h1 {
    font-size: 2em;
  }
  .hero-content p {
    font-size: 0.9em;
  }
  .quick-action-card {
    padding: 20px;
  }
  .service-card {
    padding: 25px;
  }
  .scroll-card {
    flex: 0 0 250px; /* Smaller fixed width for very small screens */
  }
}
