/* Base Styles */
:root {
  --primary-color: #1b6875;
  --text-color: #333;
  --border-color: #ccc;
  --hover-color: #165761;
  --bg-color: #f7f7f7;
  --white: #fff;
  --accent-color: #ff3b30;
  --header-height: 60px;
}

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

html {
  height: 100%;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('images/page_background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 60px; /* Space for top bar */
  padding-bottom: 0;
}

@media (min-width: 992px) {
  body {
    padding-top: 110px; /* Space for top bar + nav bar */
  }
}

@media (max-width: 991px) {
  body {
    padding-top: var(--header-height);
  }

  .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
  }

  .alert-banner {
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 2px solid #ff3b30;
    border-left: none;
    border-right: none;
    position: relative;
    top: 0;
  }

  .content {
    margin-top: 0;
  }

  .alert-banner.hidden + .content {
    margin-top: 0;
  }
}

/* Top Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 0.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.top-left img {
  height: 40px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Icons and Badges */
.icon-bell {
  display: none;
}

.badge {
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.top-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  position: relative;
}

.top-circle.has-notifications::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #ff3b30;
  border-radius: 50%;
  border: 1px solid white;
  box-shadow: 0 0 0 1px var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

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

/* Page Mask */
.page-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.open + .page-mask {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation Header */
.mobile-nav-header {
  padding: 1.25rem;
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-header .user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-color);
}

.mobile-nav-header .top-circle {
  background-color: var(--primary-color);
  color: white;
}

.close-nav {
  background: none;
  border: none;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 2001;
  pointer-events: auto;
}

.close-nav:hover {
  opacity: 0.8;
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f8f9fa;
}

.mobile-menu > li > a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 500;
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.mobile-menu > li > a i {
  font-size: 1.25rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
  width: 24px;
  text-align: center;
}

.mobile-menu > li > a:hover {
  background: var(--primary-color);
  color: white;
  padding-left: 1.5rem;
}

.mobile-menu > li > a:hover i {
  color: white;
}

.mobile-menu > li.active > a {
  background: var(--primary-color);
  color: white;
  padding-left: 1.5rem;
}

.mobile-menu > li.active > a i {
  color: white;
}

.mobile-menu .submenu {
  display: none;
  background: #f8f9fa;
  padding: 0;
  list-style: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.mobile-menu .submenu a {
  display: flex;
  align-items: center;
  padding: 1rem 1rem 1rem 3.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu .submenu li:last-child a {
  border-bottom: none;
}

.mobile-menu .submenu a:hover {
  background: var(--primary-color);
  color: white;
  padding-left: 4rem;
}

.mobile-menu .has-submenu > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu .has-submenu > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.mobile-menu .has-submenu.active > a::after {
  transform: rotate(180deg);
}

/* Mobile Menu Bottom Links */
.mobile-utility-links {
  margin-top: auto;
  padding: 1rem;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-utility-links a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-utility-links a:hover {
  background: var(--primary-color);
  color: white;
}

.mobile-utility-links a:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Desktop Navigation */
.nav-bar {
  display: none;
}

@media (min-width: 992px) {
  .nav-bar {
    display: block;
    background: var(--primary-color);
    border-bottom: 1px solid var(--hover-color);
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
  }

  .nav-menu {
    display: flex;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
  }

  .nav-menu > li > a {
    color: var(--white);
    padding: 1rem 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
  }

  .nav-menu > li:hover > a {
    background: transparent;
    opacity: 0.8;
  }

  .nav-menu .submenu {
    position: absolute;
    display: none;
    background: var(--white);
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 0;
    list-style: none;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-menu > li {
    position: relative;
    padding-bottom: 0.5rem;
  }

  .nav-menu > li:hover > .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu .submenu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
  }

  .nav-menu .submenu .submenu {
    left: 100%;
    top: -0.5rem;
    list-style: none;
  }

  .nav-menu .submenu li {
    position: relative;
  }

  .nav-menu .submenu li:hover > .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu .submenu a {
    padding: 0.75rem 0;
    color: var(--text-color);
    text-decoration: none;
    display: block;
  }

  .nav-menu .menu-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.25rem 0 0.75rem 0;
    padding: 0.5rem 0.75rem 0.25rem 0.75rem;
    cursor: default;
    background: rgba(0, 151, 64, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
  }

  .nav-menu .submenu li:first-child .menu-heading {
    margin-top: 0;
    padding-top: 0.5rem;
  }

  .nav-menu .submenu a:hover {
    background: #f5f5f5;
    padding-left: 0.5rem;
    border-radius: 4px;
  }

  .nav-menu > li.has-submenu > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 0.3rem;
    opacity: 0.8;
  }

  .nav-menu > li:not(.has-submenu) > a::after {
    content: '';
  }

  .mobile-nav {
    display: none !important;
  }
  
  .hamburger {
    display: none !important;
  }
}

/* Desktop Header Items */
.desktop-only {
  display: none;
}

@media (min-width: 992px) {
  .desktop-only {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .desktop-only a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
  }

  .desktop-only a:hover {
    color: var(--primary-color);
  }

  .user-name-container {
    pointer-events: auto;
    cursor: pointer;
  }

  .user-name-container strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    user-select: none;
  }

  .user-name-container strong i {
    display: inline-block;
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.2s ease;
  }

  .user-name-container.active strong i {
    transform: rotate(180deg);
  }
}

/* Notifications Pane */
.notifications-pane {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.notifications-pane.active {
  right: 0;
}

.notifications-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), #165761);
  color: white;
}

.notifications-header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notifications-header h4 i {
  color: white;
}

.close-notifications {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.close-notifications:hover {
  color: white;
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  margin: 0;
  list-style: none;
}

.notification-item {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.notification-item:hover {
  background: #f8f9fa;
}

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

.notification-icon {
  width: 40px;
  height: 40px;
  background: rgba(27, 104, 117, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 1.1rem;
}

.notification-message {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.notification-time {
  font-size: 0.85rem;
  color: #999;
}

/* Messages Pane */
.messages-pane {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.messages-pane.active {
  right: 0;
}

.messages-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), #165761);
  color: white;
}

.messages-header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.messages-header h4 i {
  color: white;
}

.close-messages {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.close-messages:hover {
  color: white;
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  margin: 0;
  list-style: none;
}

.message-item {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.message-item:hover {
  background: #f8f9fa;
}

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

.message-icon {
  width: 40px;
  height: 40px;
  background: rgba(27, 104, 117, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
}

.message-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 1.1rem;
}

.message-preview {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.message-time {
  font-size: 0.85rem;
  color: #999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .messages-pane {
    width: 100%;
    right: -100%;
  }
}

/* Content Area */
.content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 3rem auto;
  padding: 2.5rem;
  flex: 1 0 auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.content h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.content h3 {
  color: var(--text-color);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* New Dashboard Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Welcome Section */
.welcome-section {
  margin-bottom: 2rem;
}

.welcome-header {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.welcome-info h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.welcome-info .last-login {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick-action-btn {
  background: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  min-width: 120px;
}

.quick-action-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 104, 117, 0.15);
}

.quick-action-btn.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.quick-action-btn.primary:hover {
  background: var(--hover-color);
  border-color: var(--hover-color);
}

.quick-action-btn i {
  font-size: 1.5rem;
  color: inherit;
}

.notification-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.view-all-btn, .start-conversation-btn {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-all-btn:hover, .start-conversation-btn:hover {
  background: var(--primary-color);
  color: white;
}

.start-conversation-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Combined Financial & Loans Overview */
.combined-overview-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.combined-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: start;
  grid-auto-rows: min-content;
  grid-template-rows: auto auto;
  justify-items: stretch;
}

.combined-overview-grid .loan-card.compact,
.combined-overview-grid .overview-card.compact {
  height: fit-content !important;
  min-height: unset !important;
  max-height: fit-content !important;
  align-self: start !important;
  justify-self: stretch !important;
  flex-shrink: 0 !important;
}

@media (max-width: 1200px) {
  .combined-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .combined-overview-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .combined-overview-section {
    padding: 1rem;
  }
}

/* Loans Overview */
.loans-overview-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.loans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.loan-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
}

.loan-card.compact {
  padding: 0.4rem;
  min-height: unset !important;
  height: fit-content !important;
  max-height: fit-content !important;
}

.loan-card:hover {
  background: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 104, 117, 0.15);
}

.loan-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  min-height: 70px;
}

.loan-header.compact {
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  min-height: unset !important;
  height: fit-content !important;
}

.loan-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.loan-icon.compact {
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  border-radius: 6px;
}

.loan-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 50px;
}

.loan-info.compact {
  min-height: unset !important;
  height: fit-content !important;
}

.loan-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
}

.loan-info.compact h3 {
  font-size: 0.9rem;
  margin: 0 0 0.05rem 0;
}

.loan-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.3;
}

.loan-info.compact .loan-subtitle {
  font-size: 0.75rem;
}

.loan-details {
  text-align: left;
  margin-top: auto;
}

.loan-details.compact {
  margin-top: 0.25rem;
}

.loan-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.loan-details.compact .loan-amount {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.loan-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.loan-details.compact .loan-meta {
  gap: 0.1rem;
}

.loan-meta span {
  font-size: 0.9rem;
  color: #666;
}

.loan-details.compact .loan-meta span {
  font-size: 0.8rem;
}

.available {
  color: #009740 !important;
}

.due {
  color: #dc3545 !important;
  font-weight: 600;
}

.payment {
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.payment i {
  color: #009740;
  font-size: 0.7rem;
}

.pro-badge {
  background: #009740;
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  margin-left: 0.25rem;
}

/* Recent Transactions */
.recent-transactions-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 800px;
  height: auto;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: visible;
  max-height: none;
  flex: 1;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 60px;
}

.transaction-item:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  flex-shrink: 0;
}

.transaction-icon.positive {
  background: rgba(0, 151, 64, 0.1);
  color: #009740;
}

.transaction-details {
  flex: 1;
}

.transaction-title {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.transaction-subtitle {
  font-size: 0.9rem;
  color: #666;
}

.transaction-amount {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: right;
}

.transaction-amount.positive {
  color: #009740;
}

/* Quick Actions */
.quick-actions-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-action-item {
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-color);
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
  width: 100%;
  text-align: left;
}

.quick-action-item:hover {
  background: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(27, 104, 117, 0.15);
}

.quick-action-item.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.quick-action-item.primary:hover {
  background: var(--hover-color);
  border-color: var(--hover-color);
}

.quick-action-item i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

/* Important Alerts */
.important-alerts-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alert-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.alert-item.warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.alert-item.info {
  background: rgba(33, 150, 243, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-item.warning .alert-icon {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
}

.alert-item.info .alert-icon {
  background: rgba(33, 150, 243, 0.2);
  color: #0c5460;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.alert-message {
  font-size: 0.9rem;
  color: #666;
}

/* Messages */
.messages-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.messages-section .section-header {
  margin-bottom: 1rem;
}

.message-count {
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.message-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.message-item:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.message-sender {
  font-weight: 600;
  color: var(--text-color);
}

.message-time {
  font-size: 0.8rem;
  color: #999;
}

.message-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.message-reply {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.message-reply:hover {
  background: var(--primary-color);
  color: white;
}

/* Account Summary Cards */
.account-summary-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.account-card:hover {
  background: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(27, 104, 117, 0.15);
}

.account-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.account-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.account-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.account-number {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.account-balance {
  text-align: left;
}

.balance-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.balance-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.balance-details span {
  font-size: 0.9rem;
  color: #666;
}

.balance-details .available {
  color: #009740;
}

.balance-details .pending {
  color: #ffc107;
}

.balance-details .rate {
  color: var(--primary-color);
}

.balance-details .due {
  color: var(--accent-color);
}

.balance-details .payment {
  color: var(--text-color);
  font-weight: 500;
}

/* Financial Overview Section */
.financial-overview-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.financial-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.overview-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.overview-card.compact {
  padding: 0.4rem 0.6rem;
  gap: 0.2rem;
  height: fit-content !important;
  min-height: unset !important;
  max-height: fit-content !important;
}

.overview-card:hover {
  background: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 104, 117, 0.15);
}

.overview-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.overview-card.compact .overview-icon {
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  border-radius: 10px;
}

.overview-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
}

.overview-card.compact .overview-content h3 {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.1;
}

.overview-content .amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.overview-card.compact .overview-content .amount {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.1;
}

.overview-content .trend {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.overview-card.compact .overview-content .trend {
  font-size: 0.75rem;
  margin: 0;
}

.overview-content .trend.positive {
  color: #009740;
}

.overview-content .trend i {
  font-size: 0.8rem;
}

/* Banking Services Section */
.banking-services-section {
  margin-bottom: 2rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.service-card-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 0.75rem;
}

.service-card-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.service-description {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

.service-status-badge {
  margin: 0 0 1rem 0;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-status-badge.active {
  background: rgba(0, 151, 64, 0.1);
  color: #009740;
}

.service-status-badge.earning {
  background: rgba(0, 151, 64, 0.1);
  color: #009740;
}

.service-status-badge.ready {
  background: #f8f9fa;
  color: #666;
}

.service-meta-info {
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-label {
  color: #666;
  font-size: 0.9rem;
}

.meta-value {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}

.meta-value.positive {
  color: #009740;
}

.service-btn {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.service-btn:hover {
  background: var(--primary-color);
  color: white;
}



/* Season Overview */
.season-overview-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.season-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.season-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: default;
}

.season-stat:hover {
  background: #f8f9fa;
  transform: none;
  box-shadow: none;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-title {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-subtitle {
  font-size: 0.8rem;
  color: #999;
}

.welcome-card {
  background: linear-gradient(135deg, #1b6875, #165761);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
              linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
              linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%),
              linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
  background-size: 20px 20px;
  opacity: 0.1;
}

.welcome-card h2 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.last-login {
  margin: 1rem 0 2.5rem 0;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.quick-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
}

.action-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.action-btn.has-notifications::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background-color: #ff3b30;
  border-radius: 50%;
  border: 1px solid white;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.action-btn:hover::before {
  transform: translateX(100%);
}

.action-btn i {
  font-size: 1.3rem;
  color: white;
  position: relative;
}

/* Financial Overview */
.financial-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.overview-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.98);
}

.overview-card h3 {
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.overview-card .amount {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  line-height: 1;
}

.overview-card .subtitle {
  color: #666;
  font-size: 0.9rem;
}

.overview-card .trend {
  color: #009740;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.overview-card .trend.negative {
  color: #c0392b;
}

/* Overview Grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
}

/* Account Cards */
.accounts-section {
  margin-bottom: 2.5rem;
}

.accounts-section h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 600;
}

.account-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.account-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.account-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color), #165761);
  color: white;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.card-header i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.card-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



.card-body {
  padding: 1.5rem;
  max-height: 1000px;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.card-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 0.75rem;
  background: #f8f9fa;
  max-height: 1000px;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}



.balance-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.balance-info:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.balance-info .label {
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}

.balance-info .amount {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.1rem;
}

.balance-info .amount.positive {
  color: #009740;
}

.card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 0.5rem;
  background: #f8f9fa;
  flex-wrap: wrap;
}

.card-action {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

.card-action:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 104, 117, 0.2);
}

/* Pending Transactions */
.pending-transactions {
  margin-bottom: 2rem;
}

.pending-transactions h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 600;
}

.activity-item.pending {
  background: rgba(255, 193, 7, 0.05);
  border-left: 4px solid #ffc107;
}

.activity-item.pending .activity-icon {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.activity-subtitle {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.25rem;
}

/* Recent Activity */
.recent-activity {
  margin-bottom: 2rem;
}

.recent-activity h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 600;
}

.activity-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.activity-list {
  padding: 1.25rem;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: #f8f9fa;
}

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

.activity-icon {
  width: 48px;
  height: 48px;
  background: rgba(27, 104, 117, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 1rem;
}

.activity-date {
  font-size: 0.9rem;
  color: #666;
}

.activity-amount {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.1rem;
}

.activity-amount.positive {
  color: #009740;
}

/* Mobile and Tablet Responsive Design */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .season-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 991px) {
  .content {
    padding: 1.5rem;
    margin: 0.75rem;
  }

  .welcome-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 0.75rem;
  }

  .loans-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .loan-card {
    padding: 1.25rem;
  }

  .loan-amount {
    font-size: 1.5rem;
  }

  .season-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .season-stat {
    padding: 1.25rem;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .welcome-section {
    margin-bottom: 1.5rem;
  }

  .financial-overview {
    margin-bottom: 1.5rem;
  }

  .accounts-section {
    margin-bottom: 1.5rem;
  }

  .pending-transactions {
    margin-bottom: 1.5rem;
  }

  .recent-activity {
    margin-bottom: 1.5rem;
  }

  .banking-services {
    margin-bottom: 1.5rem;
  }

  .welcome-card {
    padding: 2rem;
  }

  .welcome-card h2 {
    font-size: 1.8rem;
  }

  .last-login {
    margin: 0.75rem 0 1.5rem 0;
    font-size: 1rem;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .action-btn {
    padding: 1rem;
    font-size: 1rem;
    justify-content: center;
  }

  .action-btn i {
    font-size: 1.2rem;
  }

  .account-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .account-card {
    border-radius: 10px;
  }

  .card-header {
    padding: 1rem;
  }

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

  .card-header i {
    font-size: 1.1rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .card-footer {
    padding: 1rem;
    gap: 0.5rem;
  }

  .balance-info {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .balance-info .label {
    font-size: 0.95rem;
  }

  .balance-info .amount {
    font-size: 1rem;
  }
}

  /* Pending Transactions Mobile */
  .pending-transactions {
    margin-bottom: 1.5rem;
  }

  .pending-transactions h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .recent-activity {
    margin-bottom: 1.5rem;
  }

  .recent-activity h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .activity-card {
    border-radius: 10px;
  }

  .activity-list {
    padding: 1rem;
  }

  .activity-item {
    padding: 1rem;
  }

  .activity-item.pending {
    padding: 1rem;
  }

  .activity-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    font-size: 1.1rem;
  }

  .activity-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .activity-date {
    font-size: 0.85rem;
  }

  .activity-amount {
    font-size: 1rem;
  }

  .activity-subtitle {
    font-size: 0.8rem;
  }

@media (max-width: 900px) and (min-width: 769px) {
  .financial-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .overview-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .overview-card h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .overview-card .amount {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
    line-height: 1;
  }

  .overview-card .trend {
    font-size: 0.85rem;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .welcome-header {
    padding: 1.25rem;
  }
  
  .welcome-info h1 {
    font-size: 1.5rem;
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .quick-action-btn {
    padding: 0.75rem;
    font-size: 0.85rem;
    min-width: auto;
  }
  
  .quick-action-btn i {
    font-size: 1.25rem;
  }

  .loans-overview-section,
  .recent-transactions-section,
  .quick-actions-section,
  .important-alerts-section,
  .messages-section,
  .season-overview-section,
  .account-summary-section,
  .financial-overview-section,
  .banking-services-section {
    padding: 1.25rem;
  }

  .financial-overview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .overview-card {
    padding: 1.25rem;
  }

  .overview-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .overview-content .amount {
    font-size: 1.5rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1.25rem;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .account-card {
    padding: 1rem;
  }

  .account-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

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

  .section-header h2 {
    font-size: 1.25rem;
  }

  .loan-card {
    padding: 1rem;
  }

  .loan-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .loan-info h3 {
    font-size: 1rem;
  }

  .loan-amount {
    font-size: 1.25rem;
  }

  .transaction-item {
    padding: 0.75rem;
  }

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

  .season-stat {
    padding: 1rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .message-item {
    padding: 0.75rem;
  }

  .message-avatar {
    width: 36px;
    height: 36px;
  }

  .financial-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .overview-card {
    padding: 0.75rem;
    border-radius: 12px;
  }

  .overview-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .overview-card .amount {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    line-height: 1;
  }

  .overview-card .trend {
    font-size: 0.8rem;
  }

  .activity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .activity-amount {
    width: 100%;
    text-align: right;
  }

  /* Deposit Modal Mobile Styles */
  .deposit-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }

  .deposit-value {
    text-align: left;
    font-size: 1.4rem;
  }

  .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .summary-value {
    font-size: 1.2rem;
  }

  .transaction-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .transaction-amount {
    width: 100%;
    text-align: right;
    font-size: 1.2rem;
  }

  /* Modal Mobile Adjustments */
  .modal-content {
    width: 95%;
    max-height: 95vh;
    margin: 1rem;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

/* Table Styles */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  margin: 0;
}

thead th {
  background: #f2f2f2;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 2px solid #ddd;
  white-space: nowrap;
}

tbody td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  background: var(--white);
}

tbody tr:nth-child(even) td {
  background: #f9f9f9;
}

.account-nickname {
  color: var(--primary-color);
  font-weight: 500;
}

tfoot {
  background: #f2f2f2;
  font-weight: 600;
}

tfoot td {
  padding: 1rem;
  border-top: 2px solid #ddd;
}

/* Mobile Table Styles */
@media (max-width: 991px) {
  .table-container {
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  table {
    display: block;
    background: transparent;
    box-shadow: none;
  }

  thead {
    display: none;
  }

  tbody {
    display: block;
  }

  tr {
    display: block;
    margin-bottom: 1rem;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }

  td {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    align-items: center;
  }

  td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
  }

  td:last-child {
    border-bottom: none;
  }

  tfoot {
    display: block;
    margin-top: 1rem;
  }

  tfoot tr {
    background: #f2f2f2;
  }

  tfoot td[data-label="Totals"] {
    font-weight: 600;
    color: var(--primary-color);
  }

  tfoot td:empty {
    display: none;
  }
}

/* Small Mobile Styles */
@media (max-width: 767px) {
  .content {
    padding: 1rem;
    margin: 60px 0.5rem 1rem;
  }

  td {
    padding: 0.75rem;
  }

  /* Welcome card optimizations for small screens */
  .welcome-card {
    padding: 1.5rem;
  }

  .welcome-card h2 {
    font-size: 1.5rem;
  }

  .last-login {
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
  }

  .action-btn {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  /* Financial overview compact layout */
  .financial-overview {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .overview-card {
    padding: 0.5rem;
    border-radius: 8px;
  }

  .overview-card h3 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }

  .overview-card .amount {
    font-size: 1.3rem;
    margin-bottom: 0.1rem;
    line-height: 1;
  }

  .overview-card .trend {
    font-size: 0.75rem;
  }

  /* Account cards for small mobile */
  .account-cards {
    gap: 1rem;
  }

  .card-header {
    padding: 0.75rem;
  }

  .card-header h4 {
    font-size: 0.95rem;
  }

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

  .card-body {
    padding: 1rem;
  }

  .card-footer {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .balance-info {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .balance-info .label {
    font-size: 0.9rem;
  }

  .balance-info .amount {
    font-size: 0.95rem;
  }

  .card-action {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  /* Section headers for very small screens */
  .content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .content h3 {
    font-size: 1rem;
    margin: 1rem 0 0.75rem;
  }

  .accounts-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  /* Activity sections for very small screens */
  .pending-transactions h3,
  .recent-activity h3,
  .banking-services h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .activity-card {
    border-radius: 8px;
  }

  .activity-list {
    padding: 0.75rem;
  }

  .activity-item {
    padding: 0.75rem;
  }

  .activity-icon {
    width: 36px;
    height: 36px;
    margin-right: 0.75rem;
    font-size: 1rem;
  }

  .activity-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .activity-date {
    font-size: 0.8rem;
  }

  .activity-amount {
    font-size: 0.95rem;
  }

  /* Banking services for very small screens */
  .service-cards {
    gap: 0.75rem;
  }

  .service-card {
    border-radius: 8px;
  }

  .service-header {
    padding: 0.75rem;
  }

  .service-header h4 {
    font-size: 0.95rem;
  }

  .service-body {
    padding: 0.75rem;
  }

  .service-body p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .service-footer {
    padding: 0.5rem 0.75rem;
  }

  .service-action {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* Account specific mobile styles */
@media (max-width: 991px) {
  td[data-label="Account Nickname"],
  td[data-label="Account Description"] {
    color: var(--text-color);
  }

  td[data-label="Account Nickname"]::before,
  td[data-label="Account Description"]::before {
    color: var(--primary-color);
  }

  td[data-label="Balance"],
  td[data-label="Available Balance"],
  td[data-label="Amount Due"] {
    text-align: right;
  }

  .account-nickname {
    color: var(--primary-color);
    font-weight: 500;
  }
}

/* Mobile Styles */
@media (max-width: 991px) {
  .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .content {
    margin: 60px 0 0 0;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-sizing: border-box;
  }

  .main-content {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  .welcome-section,
  .stats-section,
  .quick-actions {
    margin: 0;
    border-radius: 0;
    width: 100%;
  }

  .welcome-card {
    border-radius: 0;
    margin: 0;
    width: 100%;
  }

  body {
    overflow-x: hidden;
    padding: 0;
  }

  .site-footer {
    width: 100vw;
    margin: 0;
    padding: 1.25rem 1rem;
    box-sizing: border-box;
  }

  .footer-content {
    padding: 0;
    width: 100%;
  }

  .hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    display: flex;
  }

  .user-name-container strong {
    display: none;
  }

  /* Mobile Table Styles */
  table {
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  table thead {
    display: none;
  }

  table tr {
    margin-bottom: 1rem;
    display: block;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
  }

  table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
  }

  table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    padding-right: 1rem;
  }

  table td:last-child {
    border-bottom: none;
  }

  /* Section headers */
  .content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .content h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
  }

  .accounts-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .alert-banner {
    width: 100%;
    margin: 60px 0 0 0;
    padding: 0.75rem 1rem;
    border: 2px solid #ff3b30;
    border-left: none;
    border-right: none;
  }

  .alert-banner .alert-message {
    font-size: 0.95rem;
  }

  .alert-banner .alert-icon {
    font-size: 1.1rem;
  }

  .alert-banner .alert-close {
    padding: 0.5rem;
  }

  .content {
    margin-top: 0;
  }

  .alert-banner.hidden + .content {
    margin-top: 60px;
  }
}

/* Hamburger Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.5rem;
  z-index: 1600;
}

/* User Profile and Dropdown */
.user-name-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}

.user-name-container strong {
  display: none;
}

/* Show name in desktop view */
@media (min-width: 992px) {
  .user-name-container {
    pointer-events: auto;
    cursor: pointer;
  }

  .user-name-container strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    user-select: none;
  }

  .user-name-container strong i {
    display: inline-block;
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.2s ease;
  }

  .user-name-container.active strong i {
    transform: rotate(180deg);
  }
}

/* Remove the coming soon tooltip */
.user-name-container::after {
  display: none;
}

/* Mobile nav specific styles */
.mobile-nav-header .user-profile strong {
  display: none;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 4px;
  display: none;
  z-index: 1500;
  border: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

.user-dropdown.show {
  display: block;
}

.user-menu {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.user-menu li {
  position: relative;
}

.user-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.user-menu a i {
  width: 16px;
  text-align: center;
}

.user-menu a:hover,
.user-menu .has-submenu.active > a.menu-trigger {
  background-color: var(--primary-color);
  color: var(--white);
}

.user-menu a:hover i,
.user-menu a:hover .badge,
.user-menu .has-submenu.active > a.menu-trigger i {
  color: var(--white);
}

.user-menu .has-submenu > a.menu-trigger {
  justify-content: space-between;
}

.user-menu .has-submenu > a.menu-trigger i:last-child {
  margin-left: auto;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.user-menu .has-submenu.active > a.menu-trigger i:last-child {
  transform: rotate(180deg);
}

.user-menu .submenu {
  background: var(--white);
  display: none;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border-color);
}

.user-menu .submenu a {
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  color: var(--text-color);
  font-size: 0.85rem;
}

.user-menu .submenu a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.user-menu .has-submenu.active .submenu {
  display: block;
}

/* Footer Styles */
.site-footer {
  background: rgba(28, 28, 28, 0.9);
  color: white;
  padding: 1.25rem 0;
  margin-top: auto;
  width: 100%;
  border-top: 4px solid #8dc63f;
  overflow: hidden;
}

.footer-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.footer-left {
  text-align: left;
  flex: 1;
  min-width: 0; /* Allows text to wrap instead of forcing container wider */
}

.footer-left a {
  color: white;
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
}

.footer-left p {
  margin: 0.5rem 0 0 0;
  opacity: 0.9;
  white-space: normal;
  word-wrap: break-word;
}

.footer-right {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  flex-shrink: 0;
}

.equal-housing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.equal-housing-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 991px) {
  .footer-content {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
    gap: 1rem;
  }

  .footer-left {
    text-align: center;
    width: 100%;
  }

  .footer-right {
    justify-content: center;
    margin-left: 0;
    width: 100%;
  }

  body {
    padding-bottom: 0;
  }

  .content {
    margin-bottom: 2rem;
  }
}

/* Premium Banking UI Styles */

/* Compact Layout Optimizations */
.compact {
  margin-bottom: 1.5rem !important;
}

.section-header {
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.section-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.subsection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-top: 0.75rem;
}

.subsection-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.section-divider {
  height: 1px;
  background: #e9ecef;
  margin: 1rem 0;
}

/* Right Column Optimizations */
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.summary-cards.compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.account-card {
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

/* Premium Actions & Tools Grid */
.actions-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* Promo image for property valuation card */
.promo-image {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  background: url('images/page_background.jpg') center/cover no-repeat;
  margin-bottom: 0.25rem;
}

/* Property Valuation CTA button styling */
.quick-actions-section.compact .action-btn {
  width: auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  align-self: flex-start;
  margin-top: 1rem;
}

/* Property Valuation section spacing adjustments */
.quick-actions-section.compact .section-header {
  margin-bottom: 0.5rem;
}

.quick-actions-section.compact p {
  margin-bottom: 0;
}

/* Learning Center media row */
.learning-media {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.learning-media .media-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background: #f6fbfc;
}

.learning-media .media-thumb i {
  font-size: 1.5rem;
}

.learning-media .media-content h4 {
  margin: 0 0 0.25rem 0;
  color: var(--primary-color);
}

/* Full-width Learning Center */
.learning-center-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin: 0 0 2rem 0;
}

.learning-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.learning-card {
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.learning-card h3 {
  margin: 0.25rem 0 0 0;
  color: var(--primary-color);
  font-size: 1.05rem;
}

.learning-card p {
  color: #555;
  font-size: 0.95rem;
}

.learning-card .action-btn {
  width: auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  align-self: flex-start;
  margin-top: auto;
}

.learning-image {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 1200px) {
  .learning-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .learning-center-section { margin: 0 0 1rem 0; }
  .learning-cards { grid-template-columns: 1fr; }
}

/* Simple Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.accordion-item.open .accordion-header {
  color: var(--primary-color);
}

.accordion-content {
  display: none;
  padding: 1rem;
}

.accordion-item.open .accordion-content {
  display: block;
}

.action-tool-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 500;
}

.action-tool-item:hover {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-tool-item.primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.action-tool-item.primary:hover {
  background: #007d40;
}

.action-tool-item i {
  font-size: 1.1rem;
  min-width: 20px;
  color: inherit;
}

/* Compact Insights */
.insights-list.compact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insight-item.compact {
  padding: 1rem;
  border-radius: 8px;
}

.insight-item.compact .insight-message {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.3;
}

.insight-btn.compact {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

/* Loan Actions Compact */
.loan-actions-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.loan-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.loan-action-btn:hover {
  border-color: var(--primary-color);
  background: rgba(0, 151, 64, 0.02);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.loan-action-btn.apply {
  border-left: 3px solid var(--primary-color);
}

.loan-action-btn.renew.urgent {
  border-left: 3px solid #ff6b35;
}

.loan-action-btn i {
  font-size: 1.25rem;
  color: var(--primary-color);
  min-width: 24px;
}

.loan-action-btn.renew.urgent i {
  color: #ff6b35;
}

.loan-action-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.action-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.action-subtitle {
  font-size: 0.8rem;
  color: #666;
}

/* Compact Messages */
.messages-list.compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.message-item.compact {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.message-avatar.small {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.message-item.compact .message-content {
  flex: 1;
  min-width: 0;
}

.message-item.compact .message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.message-item.compact .message-sender {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-color);
}

.message-item.compact .message-time {
  font-size: 0.7rem;
  color: #999;
}

.message-item.compact .message-text {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.view-all-messages-btn {
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-all-messages-btn:hover {
  background: rgba(0, 151, 64, 0.05);
  border-color: var(--primary-color);
}

/* Premium Banking Theme */
.dashboard-grid {
  gap: 2rem;
  align-items: start;
}

.communication-options {
  display: flex;
  gap: 0.5rem;
  margin-right: 1rem;
}

.comm-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 151, 64, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comm-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* Platform Access Section */
.platform-access-section {
  margin-bottom: 2rem;
}

.section-subtitle {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.platform-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.platform-card.primary {
  border-left: 4px solid var(--primary-color);
  background: rgba(0, 151, 64, 0.02);
}

.platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.platform-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 0.75rem;
}

.platform-header h4 {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.status-indicator {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-indicator.active {
  background: rgba(0, 151, 64, 0.1);
  color: var(--primary-color);
}

.status-indicator.available {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

.platform-description {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.platform-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-tag {
  padding: 0.25rem 0.5rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  font-size: 0.75rem;
  color: #666;
}

.platform-btn {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.platform-btn:hover {
  background: var(--primary-color);
  color: white;
}

.platform-btn.primary {
  background: var(--primary-color);
  color: white;
}

.platform-btn.primary:hover {
  background: #007d40;
}

/* Enhanced Alert Styles */
.alert-count {
  background: #dc3545;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.alert-item.automation {
  border-left: 4px solid #17a2b8;
}

.alert-item.automation .alert-icon {
  color: #17a2b8;
}

.alert-item.renewal {
  border-left: 4px solid #ffc107;
}

.alert-item.renewal .alert-icon {
  color: #ffc107;
}

.alert-item.proactive {
  border-left: 4px solid var(--primary-color);
}

.alert-item.proactive .alert-icon {
  color: var(--primary-color);
}

/* Getting Started Workflow Styles */
.getting-started-section {
  margin-bottom: 2rem;
}

.welcome-subtitle {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

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

.workflow-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.workflow-card.beginner {
  border-left: 4px solid #17a2b8;
}

.workflow-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 151, 64, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  font-size: 1.5rem;
}

.workflow-card.beginner .workflow-icon {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

.workflow-content h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.workflow-content p {
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.workflow-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.workflow-btn:hover {
  background: #007d40;
}

/* Communication Modal Styles */
.communication-options-full {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.member-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.member-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.25rem;
}

.member-details h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.member-details p {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: #666;
}

.availability {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
}

.availability.available {
  background: rgba(0, 151, 64, 0.1);
  color: var(--primary-color);
}

.availability.busy {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.contact-methods {
  display: flex;
  gap: 0.5rem;
}

.contact-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.contact-btn:hover {
  background: var(--primary-color);
  color: white;
}

.contact-btn.primary {
  background: var(--primary-color);
  color: white;
}

.contact-btn.emergency {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
}

.contact-btn.emergency:hover {
  background: #c82333;
}

.emergency-contact {
  text-align: center;
  padding: 1.5rem;
  background: rgba(220, 53, 69, 0.05);
  border: 1px solid rgba(220, 53, 69, 0.1);
  border-radius: 12px;
}

.emergency-contact h4 {
  margin: 0 0 0.5rem 0;
  color: #dc3545;
}

.emergency-contact p {
  margin: 0 0 1rem 0;
  color: #666;
}

/* Document Vault Styles */
.modal-content.large {
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.document-vault {
  max-height: 600px;
  overflow-y: auto;
}

.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 1.5rem;
}

.vault-stats {
  display: flex;
  gap: 2rem;
}

.vault-stats .stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
}

.upload-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-btn:hover {
  background: #007d40;
}

.document-categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.category {
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category:hover,
.category.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.document-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.document-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.document-item.pending-signature {
  border-left: 4px solid #ffc107;
  background: rgba(255, 193, 7, 0.02);
}

.doc-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 151, 64, 0.1);
  color: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.25rem;
}

.doc-info {
  flex: 1;
}

.doc-info h5 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.doc-info p {
  margin: 0 0 0.25rem 0;
  font-size: 0.85rem;
  color: #666;
}

.doc-meta {
  font-size: 0.75rem;
  color: #999;
}

.doc-actions {
  display: flex;
  gap: 0.5rem;
}

.doc-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.doc-btn:hover {
  background: var(--primary-color);
  color: white;
}

.doc-btn.primary {
  background: var(--primary-color);
  color: white;
}

/* New Feature Styles */

/* Loan Center Styles */
.loan-center-section {
  margin-bottom: 2rem;
}

.loan-center-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.loan-center-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.loan-center-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.loan-center-card.apply {
  border-left: 4px solid var(--primary-color);
}

.loan-center-card.renew {
  border-left: 4px solid #ff6b35;
}

.loan-center-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.loan-center-card.apply .loan-center-icon {
  background: rgba(0, 151, 64, 0.1);
  color: var(--primary-color);
}

.loan-center-card.renew .loan-center-icon {
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
}

.loan-center-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.loan-center-content p {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: #666;
}

.action-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
}

.action-text.urgent {
  color: #ff6b35;
}

/* Payroll Section Styles */
.payroll-section {
  margin-bottom: 2rem;
}

.payroll-cards {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.payroll-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payroll-card.active {
  border-left: 4px solid var(--primary-color);
}

.payroll-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.payroll-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 0.75rem;
}

.payroll-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.payroll-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.payroll-actions {
  display: flex;
  gap: 0.75rem;
}

.payroll-btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.payroll-btn.primary {
  background: var(--primary-color);
  color: white;
}

.payroll-btn.primary:hover {
  background: #007d40;
}

.payroll-btn.outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

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

.payroll-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-item .label {
  font-size: 0.9rem;
  color: #666;
}

.info-item .value {
  font-size: 0.9rem;
  font-weight: 600;
}

.value.due-soon {
  color: #ff6b35;
}

.value.current {
  color: var(--primary-color);
}

/* Insurance Section Styles */
.insurance-section {
  margin-bottom: 2rem;
}

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

.insurance-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.insurance-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.insurance-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 0.75rem;
}

.insurance-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.insurance-details {
  margin-bottom: 1.5rem;
}

.coverage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.coverage-label {
  font-size: 0.9rem;
  color: #666;
}

.coverage-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.coverage-value.renewal-due {
  color: #ff6b35;
}

.coverage-value.current {
  color: var(--primary-color);
}

.insurance-btn {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.insurance-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* Financial Tools Styles */
.financial-tools-section {
  margin-bottom: 2rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 151, 64, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.tool-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.tool-content p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

/* Enhanced Alerts Styles */
.alert-item.critical {
  border-left: 4px solid #dc3545;
}

.alert-item.critical .alert-icon {
  color: #dc3545;
}

.alert-action {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.5rem;
}

.alert-action:hover {
  text-decoration: underline;
}

/* Financial Calculator Styles */
.calculator-tabs {
  display: flex;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 2rem;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: max-content;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(0, 151, 64, 0.05);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: rgba(0, 151, 64, 0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  min-height: 400px;
  max-height: 70vh;
  overflow-y: auto;
}

.calculator-left {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.calculator-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calculator-left h4 {
  margin: 0 0 1.5rem 0;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.calculator-left h5 {
  margin: 1.5rem 0 1rem 0;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background: white;
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 151, 64, 0.1);
}

.calc-btn {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.calc-btn:hover {
  background: #006b3a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 151, 64, 0.3);
}

.print-email-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.action-btn {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--primary-color);
  color: white;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.result-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  text-align: center;
}

.result-card h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.chart-container {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-container canvas {
  max-width: 100%;
  max-height: 100%;
}

/* Amortization Table Styles */
.amortization-schedule h5 {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}

.schedule-table-container {
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.schedule-table th {
  background: #f8f9fa;
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1;
}

.schedule-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #f1f1f1;
  color: var(--text-color);
}

.schedule-table tbody tr:hover {
  background: #f8f9fa;
}

.schedule-table tbody tr:nth-child(even) {
  background: #fdfdfd;
}

/* DTI Status Indicators */
.dti-status {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.status-indicator {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-indicator.good {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-indicator.caution {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #faeeba;
}

.status-indicator.high-risk {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-indicator.active {
  box-shadow: 0 0 0 3px rgba(0, 151, 64, 0.2);
  border-width: 2px;
}

/* Mobile Responsive Styles for Calculator */
@media (max-width: 768px) {
  .calculator-tabs {
    padding: 0 1rem;
    margin: 0 -1rem 2rem -1rem;
  }
  
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  
  .calculator-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .calculator-left {
    padding: 1rem;
  }
  
  .results-summary {
    grid-template-columns: 1fr;
  }
  
  .print-email-actions {
    flex-direction: column;
  }
  
  .dti-status {
    flex-direction: column;
  }
  
  .schedule-table {
    font-size: 0.75rem;
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: 0.4rem 0.3rem;
  }
  
  .chart-container {
    min-height: 250px;
    padding: 0.5rem;
  }
}

/* Ensure modal content is properly sized */
.modal-content.large {
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-content.large .modal-body {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.modal-content.large .modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-content.large .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content.large .modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.modal-content.large .modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
  .modal-content.large {
    width: 95%;
    max-width: none;
    margin: 1rem;
    height: calc(100vh - 2rem);
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .calculator-tabs {
    border-bottom: 1px solid #e9ecef;
  }
  
  .tab-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .calculator-left {
    padding: 0.75rem;
  }
  
  .result-card {
    padding: 0.75rem;
  }
  
  .result-value {
    font-size: 1.1rem;
  }
}

/* Insights Section Styles */
.insights-section {
  margin-bottom: 2rem;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.insight-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.insight-icon.positive {
  background: rgba(0, 151, 64, 0.1);
  color: var(--primary-color);
}

.insight-icon.info {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

.insight-icon.warning {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.insight-content {
  flex: 1;
}

.insight-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.insight-message {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.insight-btn {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.insight-btn:hover {
  background: #007d40;
}

/* Modal Enhancements */
.application-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.app-card {
  padding: 1.25rem;
  background: #f8f9fa;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.app-card:hover {
  border-color: var(--primary-color);
  background: rgba(0, 151, 64, 0.05);
}

.app-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.app-card h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.app-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.pre-qualification ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.pre-qualification li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.renewal-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
}

.renewal-item.urgent {
  border-left: 4px solid #ff6b35;
}

.renewal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.renewal-status {
  background: #ff6b35;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.renewal-details p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.renewal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.renewal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.renewal-btn.primary {
  background: var(--primary-color);
  color: white;
}

.renewal-btn.primary:hover {
  background: #007d40;
}

.renewal-btn {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

/* Calculator Styles */
.calculator-form {
  max-width: 500px;
}

.calc-section {
  margin-bottom: 2rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.input-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
}

.calc-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calc-btn:hover {
  background: #007d40;
}

.calc-results {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.result-label {
  font-size: 0.9rem;
  color: #666;
}

.result-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Loan Modal Styles */
.loan-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.loan-activity-list .activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-date {
  font-size: 0.85rem;
  color: #666;
  min-width: 80px;
}

.activity-description {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-color);
  margin: 0 1rem;
}

.activity-amount {
  font-weight: 600;
  font-size: 0.9rem;
}

.activity-amount:contains('+') {
  color: #009740;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center;
  opacity: 1 !important;
  overflow-y: auto;
  padding-top: 50px;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: calc(100vh - 100px);
  overflow: hidden;
  position: relative;
  transform: translateY(0);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), #165761);
  color: white;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.close-modal:hover {
  opacity: 0.8;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Asset Details Styles */
.asset-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.asset-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.asset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.asset-name {
  font-weight: 500;
  color: var(--text-color);
}

.asset-value {
  font-weight: 600;
  color: var(--primary-color);
}

/* Deposits Modal Styles */
.deposits-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.deposit-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.5rem 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.deposit-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.1rem;
}

.deposit-value {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.2rem;
  text-align: right;
}

.deposit-type {
  font-size: 0.9rem;
  color: #666;
  grid-column: 1 / -1;
}

.deposit-summary {
  padding: 1.5rem;
  background: rgba(27, 104, 117, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(27, 104, 117, 0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(27, 104, 117, 0.1);
}

.summary-row:last-child {
  border-bottom: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.summary-label {
  color: var(--text-color);
  font-weight: 500;
}

.summary-value {
  color: var(--primary-color);
  font-weight: 600;
}

.summary-value.positive {
  color: #009740;
}

/* Transactions List Styles */
.transactions-list {
  max-height: none;
  overflow-y: visible;
}

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

.transaction-item:hover {
  background: #f8f9fa;
}

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

.transaction-details {
  flex: 1;
}

.transaction-description {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.transaction-date {
  font-size: 0.9rem;
  color: #666;
}

.transaction-amount {
  font-weight: 600;
  font-size: 1.1rem;
}

.transaction-amount.credit {
  color: #009740;
}

.transaction-amount.debit {
  color: var(--text-color);
}

/* Page Header Styles */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-header p {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

/* Form Styles */
.transfer-form, .search-form {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-control {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(27, 104, 117, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.action-btn.primary {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.action-btn.primary:hover {
  background: var(--hover-color);
  border-color: var(--hover-color);
}

.action-btn.full-width {
  width: 100%;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .page-header h1 {
    font-size: 1.5rem;
  }
}

/* Success Modal Styles */
.modal-header.success {
  background: linear-gradient(135deg, var(--primary-color), #165761);
}

.success-message {
  text-align: center;
  padding: 1.5rem 1rem;
}

.success-icon {
  font-size: 3rem;
  color: #4CAF50;
  margin-bottom: 0.5rem;
}

.success-message h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.deposit-summary {
  background: rgba(62, 149, 153, 0.1);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: left;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.summary-label {
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.95rem;
}

.summary-value {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.success-note {
  background: rgba(33, 150, 243, 0.1);
  border-left: 4px solid #2196F3;
  padding: 0.75rem;
  margin-top: 1rem;
  border-radius: 0 8px 8px 0;
  text-align: left;
  font-size: 0.9rem;
}

.success-note i {
  color: #2196F3;
  margin-right: 0.5rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  justify-content: center;
}

/* Image Capture States */
.image-upload-zone.captured {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4CAF50;
  color: #4CAF50;
}

.image-upload-zone.captured i {
  color: #4CAF50;
}

/* Account Actions (on subpages) */
.accounts-section .action-btn {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}

.accounts-section .action-btn:hover {
  background: var(--hover-color);
  border-color: var(--hover-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.accounts-section .action-btn i {
  font-size: 1.1rem;
  color: white;
}

/* Banking Services Styles */
.banking-services {
  margin-bottom: 2rem;
}

.banking-services h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 600;
}

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

.service-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-header {
  background: linear-gradient(135deg, var(--primary-color), #165761);
  color: white;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-header i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.service-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-body {
  padding: 1.25rem;
}

.service-body p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
}

.service-status.active {
  background: rgba(0, 151, 64, 0.1);
  color: #009740;
}

.service-status i {
  font-size: 0.9rem;
}

.service-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-label {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.detail-value {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.detail-value.positive {
  color: #009740;
}

.service-footer {
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-action {
  background: #ffffff;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  width: 100%;
}

.service-action:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(27, 104, 117, 0.2);
}

.service-action.primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.service-action.primary:hover {
  background: var(--hover-color);
  border-color: var(--hover-color);
}

@media (max-width: 768px) {
  .banking-services {
    margin-bottom: 1.5rem;
  }

  .banking-services h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    border-radius: 10px;
  }
  
  .service-header {
    padding: 1rem;
  }

  .service-header h4 {
    font-size: 1rem;
  }

  .service-header i {
    font-size: 1.1rem;
  }
  
  .service-body {
    padding: 1rem;
  }

  .service-body p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .service-status {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .service-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.5rem 0;
  }

  .detail-label,
  .detail-value {
    font-size: 0.85rem;
  }

  .service-footer {
    padding: 0.75rem 1rem;
  }

  .service-action {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Check Capture Styles */
.check-capture-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.capture-steps {
  display: flex;
  padding: 2rem;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  gap: 2rem;
  justify-content: center;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.step-item.active {
  opacity: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.step-item.active .step-number {
  background: var(--primary-color);
}

.step-content h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.step-content p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.capture-form {
  padding: 2rem;
}

.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

.form-section h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.image-capture-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.capture-side h5 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.1rem;
}

.image-upload-zone {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: #fafafa;
}

.image-upload-zone:hover {
  border-color: var(--primary-color);
  background: rgba(27, 104, 117, 0.05);
}

.image-upload-zone i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 1rem;
  display: block;
}

.image-upload-zone:hover i {
  color: var(--primary-color);
}

.image-upload-zone p {
  color: #666;
  margin: 0;
  font-size: 1rem;
}

.image-upload-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.capture-tips {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.capture-tips h5 {
  color: #856404;
  margin-bottom: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.capture-tips ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #856404;
}

.capture-tips li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.review-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.review-details h5,
.review-images h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.detail-label {
  font-weight: 500;
  color: #666;
}

.detail-value {
  font-weight: 600;
  color: var(--text-color);
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.preview-item {
  text-align: center;
}

.preview-item span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #666;
  font-size: 0.9rem;
}

.preview-placeholder {
  aspect-ratio: 3/2;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 2rem;
}

.terms-agreement {
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.checkbox-label a {
  color: var(--primary-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .capture-steps {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .step-item {
    justify-content: center;
  }
  
  .image-capture-area {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .image-upload-zone {
    padding: 2rem 1rem;
  }
  
  .review-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .image-preview {
    grid-template-columns: 1fr;
  }
}

/* Reconciliation Styles */
.status-pending {
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-cleared {
  background: rgba(0, 151, 64, 0.1);
  color: #009740;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.table-action {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.table-action:hover {
  background: var(--hover-color);
}

/* Liability Details Styles */
.liability-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.liability-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.liability-name {
  font-weight: 500;
  color: var(--text-color);
}

.liability-value {
  font-weight: 600;
  color: var(--accent-color);
}

.liability-due {
  font-size: 0.9rem;
  color: #666;
}

/* Credit Details Styles */
.credit-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.credit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.credit-name {
  font-weight: 500;
  color: var(--text-color);
}

.credit-value {
  font-weight: 600;
  color: #009740;
}

.credit-limit {
  font-size: 0.9rem;
  color: #666;
}

/* Account Details Styles */
.account-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detail-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.detail-label {
  color: #666;
  font-weight: 500;
}

.detail-value {
  font-weight: 600;
  color: var(--text-color);
}

/* Activity Details Styles */
.activity-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Make cards clickable */
.overview-card,
.account-card,
.activity-item {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover,
.account-card:hover,
.activity-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: 95vw;
    max-height: 90vh;
    margin: 5vh auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }

  .modal-header {
    padding: 1rem;
    flex-shrink: 0;
  }

  .modal-header h3 {
    font-size: 1.2rem;
  }

  /* Compact detail sections */
  .detail-section {
    margin-bottom: 1.5rem;
  }

  .detail-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .detail-item {
    padding: 0.5rem 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .detail-label {
    font-size: 0.9rem;
    font-weight: 500;
  }

  .detail-value {
    font-size: 0.9rem;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
  }

  /* Compact transaction list */
  .transactions-list {
    max-height: none;
  }

  .transaction-item {
    padding: 0.75rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .transaction-details {
    width: 100%;
  }

  .transaction-description {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .transaction-date {
    font-size: 0.8rem;
  }

  .transaction-amount {
    font-size: 1rem;
    align-self: flex-end;
    margin-top: 0.25rem;
  }

  /* Compact asset/liability/credit items */
  .asset-item,
  .liability-item,
  .credit-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem;
  }

  .asset-name,
  .liability-name,
  .credit-name {
    font-size: 0.9rem;
  }

  .asset-value,
  .liability-value,
  .credit-value {
    font-size: 1rem;
    align-self: flex-end;
  }

  /* Compact deposit details */
  .deposit-item {
    padding: 1rem;
    gap: 0.5rem;
  }

  .deposit-name {
    font-size: 1rem;
  }

  .deposit-value {
    font-size: 1.1rem;
  }

  .deposit-type {
    font-size: 0.85rem;
  }

  .deposit-summary {
    padding: 1rem;
  }

  .summary-row {
    padding: 0.5rem 0;
  }

  .summary-label,
  .summary-value {
    font-size: 0.9rem;
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    max-height: 95vh;
    margin: 2.5vh auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal-header {
    padding: 0.75rem;
    flex-shrink: 0;
  }

  .modal-header h3 {
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 0.75rem;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }

  .detail-section {
    margin-bottom: 1rem;
  }

  .detail-section h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .detail-item {
    padding: 0.4rem 0;
  }

  .detail-label,
  .detail-value {
    font-size: 0.85rem;
  }

  .transaction-item {
    padding: 0.5rem 0;
  }

  .transaction-description {
    font-size: 0.85rem;
  }

  .transaction-date {
    font-size: 0.75rem;
  }

  .transaction-amount {
    font-size: 0.9rem;
  }

  .close-modal {
    font-size: 1.5rem;
    padding: 0.25rem;
  }
}

.trend.positive {
  color: #009740;
}

/* AI Chat Support */
.ai-chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-toggle-container {
  position: relative;
  display: flex;
  align-items: center;
}

.chat-toggle {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.chat-toggle:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.chat-toggle i {
  font-size: 1.2rem;
}

.close-chat-toggle {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.close-chat-toggle:hover {
  background: #e63427;
  transform: scale(1.1);
}

.chat-window {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: 400px;
  max-height: 600px;
  background: #e8f4f8;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-window.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.chat-header {
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}

.chat-title i {
  font-size: 1.25rem;
}

.chat-actions {
  display: flex;
  gap: 0.5rem;
}

.chat-actions button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.chat-actions button:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.chat-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  max-height: 500px;
}

.welcome-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.welcome-message .message-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.welcome-message p {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

.expand-messages-container {
  margin-bottom: 1rem;
  text-align: center;
}

.expand-messages-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.expand-messages-btn:hover {
  background: var(--hover-color);
  transform: translateY(-1px);
}

.qa-sections {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qa-section {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qa-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.2s ease;
}

.qa-header:hover {
  background: #f8f9fa;
}

.qa-header.expanded {
  background: #f8f9fa;
}

.qa-header i {
  transition: transform 0.2s ease;
}

.qa-content {
  display: none;
  padding: 0 1rem 1rem;
}

.qa-item {
  margin-bottom: 0.75rem;
}

.qa-question {
  width: 100%;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
  transition: all 0.2s ease;
}

.qa-question:hover {
  background: #e9ecef;
  border-color: var(--primary-color);
}

.qa-question.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.qa-answer {
  display: none;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
}

.chat-messages-area {
  margin-top: 1rem;
  background: white;
  border-radius: 8px;
  padding: 1rem;
  max-height: 200px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .ai-chat-container {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-window {
    width: calc(100vw - 2rem);
    max-height: calc(100vh - 140px);
    bottom: 80px;
  }

  .chat-label {
    display: none;
  }

  .chat-toggle {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }

  .close-chat-toggle {
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .chat-content {
    max-height: calc(100vh - 240px);
  }
}

/* Main Content Container */
.main-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

@media screen and (max-width: 768px) {
  .main-content {
    padding: 1rem 0;
    margin: 0;
    width: 100vw;
  }

  .welcome-section,
  .stats-section,
  .quick-actions {
    margin: 0;
    border-radius: 0;
    width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .top-bar {
    padding: 0.5rem 1rem;
    width: 100%;
  }
}

/* Alert Banner */
.alert-banner {
  background-color: white;
  border: 2px solid #ff3b30;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  transition: all 0.3s ease;
  box-sizing: border-box;
  z-index: 10;
}

.alert-banner .alert-icon {
  color: #ff3b30;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-banner .alert-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.alert-banner .alert-message {
  margin: 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.4;
}

.alert-banner .alert-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.alert-banner .alert-close:hover {
  color: #333;
  transform: scale(1.1);
}

@media (min-width: 992px) {
  .alert-banner {
    max-width: 1200px;
    width: calc(100% - 4rem);
    margin: 2rem auto;
    border-radius: 12px;
  }

  .content {
    margin-top: 0;
  }

  .alert-banner.hidden + .content {
    margin-top: 2rem;
  }
}

@media (max-width: 991px) {
  .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .alert-banner {
    width: 100%;
    margin: 60px 0 0 0;
    padding: 0.75rem 1rem;
    border: 2px solid #ff3b30;
    border-left: none;
    border-right: none;
  }

  .alert-banner .alert-message {
    font-size: 0.95rem;
  }

  .alert-banner .alert-icon {
    font-size: 1.1rem;
  }

  .alert-banner .alert-close {
    padding: 0.5rem;
  }

  .content {
    margin-top: 0;
  }

  .alert-banner.hidden + .content {
    margin-top: 60px;
  }
}

.alert-banner.hidden {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  opacity: 0;
  border: none;
  pointer-events: none;
}

/* Transfer Simulation Styles */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.status-badge.pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-badge.scheduled {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status-badge.completed {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.balance-display {
  margin-top: 0.5rem;
}

.message-alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideIn 0.3s ease;
  transition: transform 0.2s ease;
  position: sticky;
  top: 10px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.message-alert.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.message-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.message-close:hover {
  opacity: 1;
}

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

/* Modal styles for transfer details */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

/* Transfer modal specific styles - override to match index modals */
.modal-content .modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), #165761);
  color: white;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.modal-content .modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-content .close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.modal-content .close-modal:hover {
  opacity: 0.8;
}

/* Modal content styling handled above */

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.detail-row {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Template card improvements */
.card-action.delete-template {
  color: #dc3545 !important;
  border-color: #dc3545;
}

.card-action.delete-template:hover {
  background-color: #dc3545;
  color: white !important;
}

/* Template card button adjustments for 3-button layout */
.account-card .card-footer {
  gap: 0.5rem;
}

.account-card .card-action {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.85rem;
  padding: 0.6rem 0.5rem;
}

/* For template cards with 3 buttons, make them smaller */
.account-card .card-footer:has(.delete-template) .card-action {
  flex: 1 1 calc(33.333% - 0.33rem);
  font-size: 0.8rem;
  padding: 0.5rem 0.4rem;
}

@supports not selector(:has(.delete-template)) {
  /* Fallback for browsers that don't support :has() */
  .account-card .card-footer .card-action {
    flex: 1 1 calc(33.333% - 0.33rem);
    font-size: 0.8rem;
    padding: 0.5rem 0.4rem;
  }
}

/* Mobile responsive adjustments for template cards */
@media (max-width: 768px) {
  .account-card .card-action {
    font-size: 0.8rem;
    padding: 0.5rem 0.3rem;
    gap: 0.3rem;
  }
  
  .account-card .card-footer:has(.delete-template) .card-action,
  .account-card .card-footer .card-action {
    flex: 1 1 calc(33.333% - 0.25rem);
    font-size: 0.75rem;
    padding: 0.4rem 0.2rem;
  }
  
  /* Mobile styles for new features */
  .loan-center-cards {
    grid-template-columns: 1fr;
  }
  
  .payroll-cards {
    grid-template-columns: 1fr;
  }
  
  .insurance-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .application-cards {
    grid-template-columns: 1fr;
  }
  
  .renewal-actions {
    flex-direction: column;
  }
  
  .renewal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .insight-item {
    flex-direction: column;
    text-align: center;
  }
  
  .insight-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  /* Compact mobile optimizations */
  .actions-tools-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .action-tool-item {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  
  .dashboard-right {
    gap: 1rem;
  }
  
  .compact {
    margin-bottom: 1rem !important;
  }
  
  .section-header h2 {
    font-size: 1.1rem;
  }
  
  .loan-actions-compact {
    gap: 0.5rem;
  }
  
  .loan-action-btn {
    padding: 0.6rem;
  }
  
  .action-title {
    font-size: 0.85rem;
  }
  
  .action-subtitle {
    font-size: 0.75rem;
  }
  
  .message-item.compact {
    padding: 0.6rem;
  }
  
  .message-avatar.small {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .account-card .card-action {
    font-size: 0.75rem;
    padding: 0.4rem 0.2rem;
  }
  
  .account-card .card-footer {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .account-card .card-footer .card-action {
    flex: 1;
    width: 100%;
  }
}

/* Form enhancements */
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(27, 104, 117, 0.2);
}

.form-control:invalid {
  border-color: #dc3545;
}

.form-control:invalid:focus {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* ====================================
   OMNI-CHANNEL CONTACT STYLES
   ==================================== */

/* Contact Footer */
.contact-footer {
  background: var(--white);
  border-top: 2px solid var(--primary-color);
  margin-top: 2rem;
  padding: 1.5rem 0 1rem 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.footer-section h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.contact-info .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.6rem;
  background: var(--bg-color);
  border-radius: 6px;
  border-left: 4px solid var(--primary-color);
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-right: 0.75rem;
  width: 18px;
  text-align: center;
}

.contact-item div {
  flex-grow: 1;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.15rem;
  line-height: 1.1;
}

.contact-value {
  display: block;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.2;
}

/* Quick Contact Methods */
.quick-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quick-contact-btn {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 100%;
  text-align: left;
}

.quick-contact-btn:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quick-contact-btn i {
  margin-right: 0.6rem;
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

/* Support Links */
.support-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-links li {
  margin-bottom: 0.6rem;
}

.support-links a {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.6rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.2;
}

.support-links a:hover {
  background: var(--bg-color);
  color: var(--primary-color);
  transform: translateX(5px);
}

.support-links a i {
  margin-right: 0.6rem;
  color: var(--primary-color);
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  text-align: center;
  background: var(--bg-color);
}

.footer-bottom p {
  margin: 0;
  color: #666;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-logo {
  height: 20px;
  vertical-align: middle;
}



/* Enhanced Communication Modal - Override styles for modal specifically */
#communicationModal .communication-options-full {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

/* Team Member Card Styling */
#communicationModal .team-member-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

#communicationModal .team-member-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(27, 104, 117, 0.08);
}

#communicationModal .member-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

#communicationModal .member-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

#communicationModal .member-info {
  flex: 1;
}

#communicationModal .member-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
}

#communicationModal .member-title {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: #666;
  font-weight: 400;
}

/* Availability Badge */
#communicationModal .availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
}

#communicationModal .availability-badge i {
  font-size: 0.5rem;
}

#communicationModal .availability-badge.available {
  background: #e8f5e9;
  color: #2e7d32;
}

#communicationModal .availability-badge.busy {
  background: #fff8e1;
  color: #f57c00;
}

/* Contact Action Buttons */
#communicationModal .contact-actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

#communicationModal .contact-btn {
  flex: 1;
  min-width: 110px;
  padding: 0.625rem 1rem;
  border: 1.5px solid #d0d0d0;
  background: #ffffff;
  color: #4a5568;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

#communicationModal .contact-btn:hover {
  background: #f8f9fa;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

#communicationModal .contact-btn.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

#communicationModal .contact-btn.primary:hover {
  background: var(--hover-color);
  border-color: var(--hover-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(27, 104, 117, 0.2);
}

#communicationModal .contact-btn.secondary {
  background: #ffffff;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

/* Emergency Contact Card */
#communicationModal .emergency-contact-card {
  background: #fff5f5;
  border: 2px solid #feb2b2;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 0.5rem;
}

#communicationModal .emergency-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

#communicationModal .emergency-header i {
  font-size: 1.25rem;
  color: #dc3545;
}

#communicationModal .emergency-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #dc3545;
}

#communicationModal .emergency-text {
  text-align: center;
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
  color: #4a5568;
  line-height: 1.5;
}

#communicationModal .emergency-text strong {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.0625rem;
}

#communicationModal .contact-btn.emergency {
  background: #dc3545;
  border: 2px solid #dc3545;
  color: white;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  display: flex;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

#communicationModal .contact-btn.emergency:hover {
  background: #c82333;
  border-color: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Top Navigation Contact Link */
.top-bar .desktop-only a[title="Contact Your Team"] {
  color: var(--primary-color);
  font-weight: 600;
}

.top-bar .desktop-only a[title="Contact Your Team"]:hover {
  color: var(--hover-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1.5rem;
  }
  
  .quick-contact-methods {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .quick-contact-btn {
    flex: 1;
    min-width: 140px;
  }
  
  .contact-methods {
    flex-direction: column;
  }
  
  .contact-btn {
    min-width: auto;
  }
  
  /* Modal responsive fixes */
  #communicationModal .team-member-card {
    padding: 1rem;
  }
  
  #communicationModal .member-header {
    flex-direction: row;
    gap: 0.875rem;
  }
  
  #communicationModal .member-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    font-size: 1.25rem;
  }
  
  #communicationModal .contact-actions {
    gap: 0.5rem;
  }
  
  #communicationModal .contact-btn {
    flex: 1;
    min-width: 90px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  #communicationModal .emergency-contact-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .contact-footer {
    padding: 1.5rem 0 1rem 0;
  }
  
  .footer-content {
    padding: 0 0.75rem;
  }
  
  .contact-item {
    padding: 0.5rem;
  }
  
  .quick-contact-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* ============================================
   DASHBOARD CUSTOMIZATION FEATURE
   ============================================ */

/* Floating Action Button for Dashboard Customization */
.dashboard-customize-fab {
  position: fixed;
  right: 2rem;
  top: 180px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(27, 104, 117, 0.4);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.dashboard-customize-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(27, 104, 117, 0.5);
}

.dashboard-customize-fab:active {
  transform: translateY(0) scale(0.98);
}

.dashboard-customize-fab .fab-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: 'Arial', sans-serif;
}

.dashboard-customize-fab:hover .fab-tooltip {
  opacity: 1;
}

.dashboard-customize-fab .fab-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid rgba(0, 0, 0, 0.85);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Dashboard Settings Modal */
.dashboard-settings-container {
  padding: 1rem;
}

.settings-intro {
  background: linear-gradient(135deg, rgba(27, 104, 117, 0.1), rgba(22, 87, 97, 0.1));
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.settings-intro p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

.settings-sections {
  margin-bottom: 1.5rem;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
  flex-wrap: wrap;
  gap: 1rem;
}

.settings-header h4 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-header h4 i {
  color: var(--primary-color);
}

.settings-actions {
  display: flex;
  gap: 0.75rem;
}

.settings-btn {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.settings-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  color: white;
}

.settings-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 104, 117, 0.3);
}

.settings-btn.secondary {
  background: #f5f5f5;
  color: var(--text-color);
  border: 1px solid #ddd;
}

.settings-btn.secondary:hover {
  background: #e8e8e8;
}

/* Sections List */
.sections-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-item {
  background: white;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex !important;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: move;
  min-height: 60px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.section-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(27, 104, 117, 0.15);
}

.section-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.section-item.drag-over {
  border-top: 3px solid var(--primary-color);
  margin-top: 0.5rem;
}

/* Column-based organizer for dashboard customization */
.column-organizer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.columns-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.sections-column {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  min-height: 200px;
}

.column-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.column-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.column-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.column-description {
  margin: 0;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.4;
}

.sections-drop-zone {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 150px;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sections-drop-zone.drag-over-zone {
  background: rgba(27, 104, 117, 0.1);
  border: 2px dashed var(--primary-color);
}

.sections-drop-zone:empty::before {
  content: 'Drag sections here';
  display: block;
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
}

.sections-drop-zone:empty.drag-over-zone::before {
  content: 'Drop section here';
  color: var(--primary-color);
  font-weight: 600;
}

.drag-handle {
  color: #999;
  font-size: 1.2rem;
  cursor: grab;
  transition: color 0.3s ease;
}

.drag-handle:hover {
  color: var(--primary-color);
}

.drag-handle:active {
  cursor: grabbing;
}

.section-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(27, 104, 117, 0.1), rgba(22, 87, 97, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.section-details {
  flex: 1;
}

.section-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.section-description {
  font-size: 0.85rem;
  color: #666;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 28px;
}

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

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
}

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

.toggle-slider:hover {
  box-shadow: 0 0 8px rgba(27, 104, 117, 0.3);
}

/* Settings Tips */
.settings-tips {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.settings-tips h5 {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-tips h5 i {
  color: #f59e0b;
}

.settings-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.settings-tips li {
  padding: 0.5rem 0;
  color: #555;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.settings-tips li i {
  color: var(--primary-color);
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

/* Dashboard Section Transitions */
.dashboard-section {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dashboard-section.section-hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-customize-fab {
    right: 1rem;
    top: 160px;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
  
  .dashboard-customize-fab .fab-tooltip {
    display: none;
  }
  
  .settings-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .settings-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .settings-btn {
    width: 100%;
    justify-content: center;
  }
  
  .section-item {
    padding: 0.875rem 1rem;
  }
  
  .section-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .section-name {
    font-size: 0.95rem;
  }
  
  .section-description {
    font-size: 0.8rem;
  }
  
  .columns-row {
    grid-template-columns: 1fr;
  }
  
  .column-description {
    font-size: 0.8rem;
  }
  
  .sections-drop-zone {
    min-height: 120px;
  }
}

@media (max-width: 480px) {
  .dashboard-customize-fab {
    right: 0.75rem;
    top: 150px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  
  .settings-intro {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .section-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .drag-handle {
    font-size: 1rem;
  }
  
  .column-header h5 {
    font-size: 0.9rem;
  }
  
  .sections-column {
    padding: 0.75rem;
  }
  
  .sections-drop-zone:empty::before {
    font-size: 0.85rem;
    padding: 1.5rem;
  }
}

/* Dashboard Settings Tabs */
.settings-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.settings-tab {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: -2px;
}

.settings-tab:hover {
  color: var(--primary-color);
  background: rgba(27, 104, 117, 0.05);
}

.settings-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.settings-tab i {
  font-size: 1.1rem;
}

.settings-tab-content {
  display: none;
}

.settings-tab-content.active {
  display: block;
}

/* Quick Actions Container */
.quick-actions-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Quick Actions Settings */
.quick-actions-count {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 8px;
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
  border: 2px solid var(--primary-color);
}

.quick-actions-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
  max-height: 60vh;
  overflow-y: auto;
}

.quick-actions-column {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
}

.quick-actions-column .column-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

.quick-actions-column .column-header h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-color);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-actions-column .column-header h4 i {
  color: var(--primary-color);
}

.quick-actions-column .column-description {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-action-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.quick-action-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(27, 104, 117, 0.1);
}

.quick-action-item[draggable="true"] {
  cursor: move;
}

.quick-action-item.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.quick-action-item.drag-over {
  border-color: var(--primary-color);
  border-style: dashed;
  background: rgba(27, 104, 117, 0.05);
}

.quick-action-item .drag-handle {
  color: #999;
  cursor: grab;
  font-size: 1rem;
  flex-shrink: 0;
  margin-right: -0.5rem;
}

.quick-action-item .drag-handle:active {
  cursor: grabbing;
}

.quick-action-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(27, 104, 117, 0.1), rgba(22, 87, 97, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-action-icon i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.quick-action-details {
  flex: 1;
}

.quick-action-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.quick-action-description {
  font-size: 0.85rem;
  color: #666;
}

.quick-action-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-btn,
.add-btn {
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.remove-btn:hover {
  background: #fee;
  border-color: #dc3545;
  color: #dc3545;
}

.add-btn {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  width: auto;
  gap: 0.5rem;
  font-weight: 500;
}

.add-btn:hover {
  background: var(--hover-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(27, 104, 117, 0.2);
}

/* Responsive Quick Actions Settings */
@media (max-width: 991px) {
  .quick-actions-columns {
    grid-template-columns: 1fr;
    max-height: 50vh;
  }
  
  .quick-actions-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .quick-actions-grid {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .settings-tabs {
    overflow-x: auto;
  }
  
  .settings-tab {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .quick-action-item {
    padding: 0.75rem;
  }
  
  .quick-action-icon {
    width: 36px;
    height: 36px;
  }
  
  .quick-action-label {
    font-size: 0.9rem;
  }
  
  .quick-action-description {
    font-size: 0.8rem;
  }
}



