html {
  font-size: 12px; /* Reduced from 14px */
}

@media (min-width: 768px) {
  html {
    font-size: 13px; /* Reduced from 16px */
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 14px; /* Slightly larger for desktop */
  }
}

/* Professional Font Size Adjustments */
body {
  font-size: 0.875rem; /* 14px equivalent */
  line-height: 1.4;
}

h1 { font-size: 1.75rem; } /* Reduced from 2.5rem */
h2 { font-size: 1.5rem; }  /* Reduced from 2rem */
h3 { font-size: 1.25rem; } /* Reduced from 1.75rem */
h4 { font-size: 1.125rem; } /* Reduced from 1.5rem */
h5 { font-size: 1rem; }    /* Reduced from 1.25rem */
h6 { font-size: 0.875rem; } /* Reduced from 1rem */

/* Card headers */
.card-header h4, .card-header h5, .card-header h6 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* Navbar adjustments */
.navbar-brand {
  font-size: 1rem; /* Further reduced */
}

.navbar-brand .brand-main {
  font-size: 1rem; /* Further reduced */
}

.navbar-brand .brand-sub {
  font-size: 0.875rem; /* Further reduced */
}

.nav-link {
  font-size: 0.875rem; /* Reduced from 1rem */
}

/* Button adjustments */
.btn {
  font-size: 0.8rem; /* Reduced from 0.875rem */
  padding: 0.375rem 0.75rem; /* Slightly reduced padding */
}

.btn-sm {
  font-size: 0.75rem; /* Reduced from 0.8rem */
  padding: 0.25rem 0.5rem;
}

/* Form controls */
.form-control {
  font-size: 0.8rem; /* Reduced from 0.875rem */
  padding: 0.375rem 0.75rem;
}

.form-label {
  font-size: 0.8rem; /* Reduced from 0.875rem */
  font-weight: 500;
}

/* Table adjustments */
.table {
  font-size: 0.8rem; /* Reduced from 0.875rem */
}

.table th {
  font-size: 0.75rem; /* Reduced from 0.8rem */
  font-weight: 600;
}

/* Badge adjustments */
.badge {
  font-size: 0.7rem; /* Reduced from 0.75rem */
  padding: 0.25rem 0.5rem;
}

/* Alert adjustments */
.alert {
  font-size: 0.8rem; /* Reduced from 0.875rem */
  padding: 0.5rem 0.75rem;
}

/* Dropdown adjustments */
.dropdown-menu {
  font-size: 0.8rem; /* Reduced from 0.875rem */
}

.dropdown-item {
  font-size: 0.8rem; /* Reduced from 0.875rem */
  padding: 0.375rem 1rem;
}

/* Modal adjustments */
.modal-title {
  font-size: 1.125rem; /* Reduced from 1.25rem */
}

.modal-body {
  font-size: 0.8rem; /* Reduced from 0.875rem */
}

/* Toast adjustments */
.toast {
  font-size: 0.8rem; /* Reduced from 0.875rem */
}

/* List group adjustments */
.list-group-item {
  font-size: 0.8rem; /* Reduced from 0.875rem */
  padding: 0.5rem 0.75rem;
}

/* User dropdown styling removed - using Bootstrap dropdowns */

/* PWA Mobile Optimizations */
@media (max-width: 768px) {
  html {
    font-size: 16px; /* Increased for better mobile readability, prevents zoom on iOS */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  body {
    font-size: 1rem; /* 16px - increased for better mobile readability */
    line-height: 1.5;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Increase heading sizes on mobile */
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.75rem !important; }
  h3 { font-size: 1.5rem !important; }
  h4 { font-size: 1.25rem !important; }
  h5 { font-size: 1.125rem !important; }
  h6 { font-size: 1rem !important; }
  
  /* Increase text sizes on mobile */
  p, span, div, a, label {
    font-size: 1rem !important;
  }
  
  /* Increase form control sizes on mobile */
  .form-control, .form-select, .form-control-solid, .form-select-solid {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 0.5rem 0.75rem !important;
  }
  
  .form-label, label {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
  }
  
  /* Increase button sizes on mobile */
  .btn {
    font-size: 1rem !important;
    padding: 0.625rem 1.25rem !important;
  }
  
  .btn-sm {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
  }
  
  /* Increase table font sizes on mobile */
  .table {
    font-size: 0.95rem !important;
  }
  
  .table th {
    font-size: 0.85rem !important;
  }
  
  .table td {
    font-size: 0.95rem !important;
  }
  
  /* Increase card text sizes on mobile */
  .card-title, .card-header h3, .card-header h4, .card-header h5 {
    font-size: 1.25rem !important;
  }
  
  .card-body {
    font-size: 1rem !important;
  }
  
  /* Increase badge sizes on mobile */
  .badge {
    font-size: 0.85rem !important;
    padding: 0.375rem 0.625rem !important;
  }
  
  /* Increase alert sizes on mobile */
  .alert {
    font-size: 0.95rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  /* Increase dropdown sizes on mobile */
  .dropdown-menu {
    font-size: 0.95rem !important;
  }
  
  .dropdown-item {
    font-size: 0.95rem !important;
    padding: 0.625rem 1.25rem !important;
  }
  
  /* Increase modal sizes on mobile */
  .modal-title {
    font-size: 1.25rem !important;
  }
  
  .modal-body {
    font-size: 1rem !important;
  }
  
  /* Increase list group sizes on mobile */
  .list-group-item {
    font-size: 0.95rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  /* Increase nav link sizes on mobile */
  .nav-link {
    font-size: 0.95rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  /* Increase Metronic specific classes */
  .fw-semibold, .fw-bold {
    font-size: inherit !important;
  }
  
  .fs-6 {
    font-size: 1rem !important;
  }
  
  .fs-7 {
    font-size: 0.95rem !important;
  }
  
  .fs-8 {
    font-size: 0.9rem !important;
  }
  
  /* Increase small text */
  small, .text-muted {
    font-size: 0.9rem !important;
  }
  
  /* Increase form text */
  .form-text {
    font-size: 0.9rem !important;
  }
  
  /* Improve touch targets */
  .btn, .nav-link, .form-control, .form-check-input {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better spacing for mobile */
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile-friendly cards */
  .card {
    margin-bottom: 1rem;
    border-radius: 12px;
  }
  
  /* Enhanced responsive tables */
  .table-responsive {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 0.875rem;
  }
  
  /* Mobile table optimizations */
  .table th, .table td {
    padding: 0.5rem 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Mobile table card layout */
  .table-mobile-cards {
    display: none;
  }
  
  .table-mobile-cards .card {
    margin-bottom: 0.75rem;
    border: 1px solid #dee2e6;
  }
  
  .table-mobile-cards .card-body {
    padding: 0.75rem;
  }
  
  .mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .mobile-card-row:last-child {
    margin-bottom: 0;
  }
  
  .mobile-card-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .mobile-card-value {
    color: #495057;
    font-size: 0.9rem;
  }
  
  /* Mobile navigation improvements */
  .navbar-toggler {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  /* Mobile-friendly modals */
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .modal-lg {
    max-width: calc(100% - 1rem);
  }
  
  .modal-xl {
    max-width: calc(100% - 1rem);
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-header {
    padding: 0.75rem 1rem;
  }
  
  .modal-footer {
    padding: 0.75rem 1rem;
  }
  
  /* Better mobile forms */
  .form-floating > .form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
  }
  
  /* Mobile form improvements */
  .row.g-3 > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  .form-control, .form-select {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
  
  /* Mobile charts */
  .chart-container {
    height: 250px;
    margin-bottom: 1rem;
  }
  
  .chart-container canvas {
    max-height: 250px !important;
    width: 100% !important;
  }
  
  /* Mobile button improvements */
  .btn-group-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-group-mobile .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Mobile card improvements */
  .card-body {
    padding: 1rem;
  }
  
  .card-header {
    padding: 0.75rem 1rem;
  }
  
  /* Mobile text improvements */
  .display-1 { font-size: 2.5rem; }
  .display-2 { font-size: 2rem; }
  .display-3 { font-size: 1.75rem; }
  .display-4 { font-size: 1.5rem; }
  .display-5 { font-size: 1.25rem; }
  .display-6 { font-size: 1rem; }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.875rem; }
  
  /* Mobile spacing improvements */
  .p-5 { padding: 2rem !important; }
  .p-4 { padding: 1.5rem !important; }
  .p-3 { padding: 1rem !important; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  
  .m-5 { margin: 2rem !important; }
  .m-4 { margin: 1.5rem !important; }
  .m-3 { margin: 1rem !important; }
  .my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
  .my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
  .my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
  
  /* PWA safe area for notched devices */
  .pwa-safe-area {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  
  /* Mobile toast improvements */
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .toast {
    margin-bottom: 8px;
    min-width: auto;
    max-width: none;
  }
  
  /* Mobile notification improvements */
  .notification-container {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  /* Mobile quick add buttons */
  .quick-add-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .quick-add-btn {
    width: 100%;
    max-width: none;
    justify-content: center;
  }
  
  /* Mobile balance display */
  .net-balance-display {
    padding: 0.75rem;
    font-size: 1.1rem;
  }
  
  /* Mobile dashboard improvements */
  .dashboard-header {
    padding: 0.4rem 0.6rem; /* Further reduced */
    text-align: center;
  }
  
  .dashboard-title {
    font-size: 1rem; /* Further reduced */
  }
  
  .dashboard-subtitle {
    font-size: 0.7rem; /* Further reduced */
  }
  
  /* Mobile metric cards */
  .metric-card-body {
    padding: 1rem;
  }
  
  .metric-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .metric-value {
    font-size: 1.25rem;
  }
  
  /* Mobile loan management */
  .loan-section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .loan-section-actions {
    justify-content: center;
  }
  
  .loan-card-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .loan-actions {
    flex-direction: column;
  }
  
  .chart-metric-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  /* Mobile profile improvements */
  .profile-header {
    padding: 1.5rem;
  }
  
  .profile-info-section {
    padding: 1.5rem;
  }
  
  /* Mobile troubleshooting improvements */
  .troubleshooting-grid,
  .contact-support-grid {
    grid-template-columns: 1fr;
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
  }
  
  .help-action-buttons {
    position: static;
    transform: none;
    margin-top: 2rem;
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
  html {
    font-size: 16px !important; /* Keep readable on small devices */
  }
  
  body {
    font-size: 1rem !important;
  }
  
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .card-body {
    padding: 0.75rem;
    font-size: 1rem !important;
  }
  
  .card-header {
    padding: 0.5rem 0.75rem;
  }
  
  .modal-dialog {
    margin: 0.25rem;
    max-width: calc(100% - 0.5rem);
  }
  
  .modal-body {
    padding: 0.75rem;
    font-size: 1rem !important;
  }
  
  .modal-header {
    padding: 0.5rem 0.75rem;
  }
  
  .modal-footer {
    padding: 0.5rem 0.75rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem !important;
    font-size: 1rem !important;
  }
  
  .form-control, .form-select {
    padding: 0.5rem 0.75rem !important;
    font-size: 16px !important;
  }
  
  .table th, .table td {
    padding: 0.5rem 0.25rem !important;
    font-size: 0.95rem !important;
  }
  
  .chart-container {
    height: 200px;
  }
  
  .chart-container canvas {
    max-height: 200px !important;
  }
  
  .dashboard-title {
    font-size: 1rem; /* Further reduced */
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .metric-value {
    font-size: 1.1rem;
  }
  
  .quick-add-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .net-balance-display {
    padding: 0.5rem;
    font-size: 1rem;
  }
}

/* Extra Small Mobile Devices - Navbar */
@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1rem;
  }
  
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .navbar-brand-icon {
    width: 20px;
    height: 20px;
  }
  
  .navbar-toggler {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }
  
  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.625rem 0.75rem !important;
    font-size: 0.9rem;
  }
  
  .navbar-nav .dropdown-item {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }
  
  .user-avatar {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
  
  .user-name {
    font-size: 0.85rem;
  }
  
  .navbar-nav .btn {
    padding: 0.625rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* Mobile Device Specific Styles */
.mobile-device {
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
}

.mobile-device .table-responsive {
  -webkit-overflow-scrolling: touch;
}

.mobile-device .modal {
  -webkit-overflow-scrolling: touch;
}

.mobile-device .btn {
  -webkit-tap-highlight-color: transparent;
}

/* PWA Mobile Optimizations */
@media (display-mode: standalone) {
  .pwa-installed {
    padding-top: env(safe-area-inset-top);
  }
  
  .pwa-installed .navbar {
    padding-top: calc(env(safe-area-inset-top) + 0.5rem);
  }
  
  .pwa-installed .main-content {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Mobile Form Improvements */
@media (max-width: 768px) {
  .form-floating > .form-control:focus ~ label,
  .form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  }
  
  .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
  
  .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  
  /* Mobile navbar brand improvements */
  .brand-text {
    display: none;
  }
  
  .brand-icon {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .navbar-brand-icon {
    width: 22px;
    height: 22px;
  }
  
  /* Mobile navbar toggler improvements */
  .navbar-toggler {
    padding: 0.5rem 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
  }
  
  /* Mobile navbar collapse improvements */
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Mobile nav links improvements */
  .navbar-nav .nav-link {
    color: #374151 !important;
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: #f3f4f6;
    color: #1f2937 !important;
    transform: translateX(4px);
  }
  
  .navbar-nav .nav-link.active {
    background-color: #e5e7eb;
    color: #1f2937 !important;
  }
  
  /* Mobile dropdown improvements */
  .navbar-nav .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin: 0.5rem 0;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    display: none !important;
  }
  
  .navbar-nav .dropdown-menu.show {
    display: block !important;
    animation: slideDown 0.3s ease;
  }
  
  .navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    margin: 0.125rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #374151;
  }
  
  .navbar-nav .dropdown-item:hover {
    background-color: #e5e7eb;
    transform: translateX(8px);
    color: #1f2937;
  }
  
  /* Mobile dropdown toggle improvements */
  .navbar-nav .dropdown-toggle::after {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
  }
  
  .navbar-nav .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
  }
  
  .navbar-nav .dropdown-toggle:hover::after {
    transform: rotate(90deg);
  }
  
  .navbar-nav .dropdown.show .dropdown-toggle:hover::after {
    transform: rotate(180deg);
  }
  
  .user-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .user-name {
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  /* Mobile user menu dropdown */
  .navbar-nav .dropdown-menu.user-menu {
    width: 100% !important;
    margin-top: 0.5rem !important;
    position: static !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    display: none !important;
    z-index: 1050 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: unset !important;
    max-width: none !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  
  .navbar-nav .dropdown-menu.user-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: slideDown 0.3s ease;
    max-height: 70vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  
  .user-menu .dropdown-header {
    margin: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 8px;
  }
  
  .user-menu .dropdown-item {
    padding: 0.75rem 1.5rem;
    margin: 0.125rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #374151;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }
  
  .user-menu .dropdown-item:hover {
    background-color: #e5e7eb;
    transform: translateX(8px);
    color: #1f2937;
  }
  
  .user-menu .dropdown-item.text-danger:hover {
    background-color: #fef2f2;
    color: #dc2626;
  }
  
  .user-menu .dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: #d1d5db;
  }
  
  /* Mobile user menu scrolling improvements */
  .navbar-nav .dropdown-menu.user-menu {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
  }
  
  .navbar-nav .dropdown-menu.user-menu::-webkit-scrollbar {
    width: 6px;
  }
  
  .navbar-nav .dropdown-menu.user-menu::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
  }
  
  .navbar-nav .dropdown-menu.user-menu::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
  }
  
  .navbar-nav .dropdown-menu.user-menu::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
  }
  
  /* Mobile Finance Dropdown */
  .navbar-nav .dropdown-menu[aria-labelledby="financeDropdown"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
  }
  
  .navbar-nav .dropdown-menu[aria-labelledby="financeDropdown"] .dropdown-item {
    color: #374151;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .dropdown-menu[aria-labelledby="financeDropdown"] .dropdown-item:hover {
    background-color: #e2e8f0;
    transform: translateX(8px);
    color: #1f2937;
  }
  
  /* Mobile Reports Dropdown */
  .navbar-nav .dropdown-menu[aria-labelledby="reportsDropdown"] {
    background: #fefce8 !important;
    border: 1px solid #fde047 !important;
  }
  
  .navbar-nav .dropdown-menu[aria-labelledby="reportsDropdown"] .dropdown-item {
    color: #374151;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .dropdown-menu[aria-labelledby="reportsDropdown"] .dropdown-item:hover {
    background-color: #fef3c7;
    transform: translateX(8px);
    color: #1f2937;
  }
  
  /* Mobile Family Health Dropdown */
  .navbar-nav .dropdown-menu[aria-labelledby="familyHealthDropdown"] {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
  }
  
  .navbar-nav .dropdown-menu[aria-labelledby="familyHealthDropdown"] .dropdown-item {
    color: #374151;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .dropdown-menu[aria-labelledby="familyHealthDropdown"] .dropdown-item:hover {
    background-color: #fee2e2;
    transform: translateX(8px);
    color: #1f2937;
  }
  
  /* Mobile Admin Dropdown */
  .navbar-nav .dropdown-menu[aria-labelledby="adminDropdown"] {
    background: #f3e8ff !important;
    border: 1px solid #d8b4fe !important;
  }
  
  .navbar-nav .dropdown-menu[aria-labelledby="adminDropdown"] .dropdown-item {
    color: #374151;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .dropdown-menu[aria-labelledby="adminDropdown"] .dropdown-item:hover {
    background-color: #e9d5ff;
    transform: translateX(8px);
    color: #1f2937;
  }
  
  /* Mobile notification dropdown improvements */
  .navbar-nav .dropdown-menu[aria-labelledby="notifDropdown"] {
    min-width: 100%;
    max-height: 400px;
    background: #f9fafb;
  }
  
  /* Mobile button improvements */
  .navbar-nav .btn {
    width: 100%;
    margin: 0.25rem 0;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
  
  .navbar-nav .btn-outline-light {
    background: transparent;
    border-color: #d1d5db;
    color: #374151;
  }
  
  .navbar-nav .btn-outline-light:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #1f2937;
  }
  
  .navbar-nav .btn-light {
    background: #667eea;
    border-color: #667eea;
    color: white;
  }
  
  .navbar-nav .btn-light:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    color: white;
  }
}

/* Mobile Card Improvements */
@media (max-width: 768px) {
  .card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
  }
  
  .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
  }
  
  .card-body {
    background: #fff;
  }
}

/* Mobile Button Improvements */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .btn-sm {
    min-height: 36px;
    min-width: 36px;
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }
  
  .btn-group .btn {
    border-radius: 0;
  }
  
  .btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
  }
  
  .btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
  }
}

/* Mobile Table Improvements */
@media (max-width: 768px) {
  .table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.25rem;
  }
  
  .table td {
    font-size: 0.85rem;
    padding: 0.5rem 0.25rem;
  }
  
  .table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Mobile Modal Improvements */
@media (max-width: 768px) {
  .modal-content {
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  
  .modal-header {
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
  }
  
  .modal-footer {
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
  }
  
  .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Mobile Chart Improvements */
@media (max-width: 768px) {
  .chart-container {
    position: relative;
    height: 250px;
    width: 100%;
  }
  
  .chart-container canvas {
    max-height: 250px !important;
    width: 100% !important;
    height: 250px !important;
  }
  
  .chartjs-size-monitor {
    display: none;
  }
}

/* Mobile Toast Improvements */
@media (max-width: 768px) {
  .toast-container {
    position: fixed;
    top: 10px;
    right: 10px;
    left: 10px;
    z-index: 1055;
  }
  
  .toast {
    margin-bottom: 8px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  .toast-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
  }
  
  .toast-body {
    background: #fff;
    padding: 0.75rem;
  }
}

/* Mobile PWA Install Button */
@media (max-width: 768px) {
  #pwa-install-btn {
    bottom: 20px;
    right: 20px;
    left: 20px;
    width: auto;
    border-radius: 25px;
    font-size: 0.9rem;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  
  #hero-install-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 12px 20px;
    font-size: 0.9rem;
    cursor: pointer !important;
    pointer-events: auto !important;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Enhanced Chart Styles */
.enhanced-chart {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.enhanced-chart:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0 1.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  margin-bottom: 1rem;
}

.chart-title {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.chart-title i {
  margin-right: 0.5rem;
  color: #3b82f6;
  font-size: 1.25rem;
}

.chart-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.chart-controls .form-select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.chart-controls .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chart-controls .btn {
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  transition: all 0.2s ease;
}

.chart-controls .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.chart-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  position: relative;
}

.chart-body canvas {
  border-radius: 8px;
}

/* Chart Loading Animation */
.chart-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #6b7280;
}

.chart-loading .spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* System Health Styles */
.health-stats {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.trend-item {
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  transition: all 0.2s ease;
}

.trend-item:last-child {
  border-bottom: none;
}

.trend-item:hover {
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
}

.trend-month {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.trend-value {
  color: #1f2937;
  font-size: 1rem;
}

.health-indicator {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  text-align: center;
}

.health-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.health-badge.health-excellent {
  background-color: #d1fae5;
  color: #065f46;
}

.health-badge.health-good {
  background-color: #dbeafe;
  color: #1e40af;
}

.health-badge.health-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.health-badge.health-critical {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Modern Navbar Styles */
.modern-navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.modern-navbar.scrolled {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Brand Styling */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: #f8fafc !important;
  transform: translateY(-1px);
}

.brand-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.brand-icon i {
  font-size: 1.2rem;
  color: white;
}

.navbar-brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-brand-icon {
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation Links */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  border-radius: 8px;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link i {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Modern Dropdown Styles */
.modern-dropdown {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.dropdown-menu {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
}

.modern-dropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: #374151;
  border-radius: 8px;
  margin: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.modern-dropdown .dropdown-item:hover {
  background-color: #f3f4f6;
  color: #1f2937;
  transform: translateX(4px);
}

.modern-dropdown .dropdown-item i {
  width: 20px;
  text-align: center;
}

.modern-dropdown .dropdown-divider {
  margin: 0.5rem 1rem;
  border-color: #e5e7eb;
}

/* User and Notification Dropdowns - Use Bootstrap defaults */
#userDropdown, #notificationsDropdown {
  cursor: pointer !important;
  pointer-events: auto !important;
  text-decoration: none !important;
}

#userDropdown:hover, #notificationsDropdown:hover {
  text-decoration: none !important;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: white;
  box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Desktop user menu */
@media (min-width: 769px) {
  .user-menu {
    min-width: 280px;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    position: absolute !important;
    top: 100% !important;
    z-index: 1050 !important;
  }
}

/* Ensure user dropdown positioning is consistent */
.nav-item.dropdown .user-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  margin-top: 0.5rem !important;
  z-index: 1050 !important;
}

/* Desktop user menu styles */
@media (min-width: 769px) {
  .user-menu .dropdown-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    margin: 0.5rem;
  }
}

.user-info {
  text-align: center;
}

.user-avatar-large {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.user-details strong {
  font-size: 1rem;
  color: #1f2937;
}

.user-details small {
  font-size: 0.8rem;
}

/* Login/Register Buttons */
.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-light {
  background-color: #ffffff;
  color: #667eea;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
  background-color: #f8fafc;
  color: #5a67d8;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Mobile Navbar Toggle */
.navbar-toggler {
  padding: 0.5rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content Padding for Fixed Navbar */
.main-content {
  padding-top: 100px;
  min-height: calc(100vh - 100px);
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 991.98px) {
  .modern-navbar {
    padding: 0.5rem 0;
  }
  
  .brand-text {
    display: none;
  }
  
  .brand-icon {
    width: 40px;
    height: 40px;
  }
  
  .navbar-brand-icon {
    width: 24px;
    height: 24px;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .navbar-nav .nav-link {
    color: #374151 !important;
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: #f3f4f6;
    color: #1f2937 !important;
    transform: translateX(4px);
  }
  
  .user-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  /* Mobile Dropdown Enhancements */
  .navbar-nav .dropdown {
    position: static;
  }
  
  .navbar-nav .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin: 0.5rem 0;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: slideDown 0.3s ease;
  }
  
  /* Force show on mobile when parent has show class */
  .navbar-nav .dropdown.show .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    margin: 0.125rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .dropdown-item:hover {
    background-color: #e5e7eb;
    transform: translateX(8px);
  }
  
  .navbar-nav .dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: #d1d5db;
  }
  
  /* Mobile User Menu */
  .user-menu {
    width: 100%;
    margin-top: 0.5rem;
    max-height: 60vh !important;
  }
  
  .user-menu .dropdown-header {
    margin: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  }
  
  /* Mobile Notification Dropdown */
  .navbar-nav .dropdown-menu[aria-labelledby="notifDropdown"] {
    min-width: 100%;
    max-height: 400px;
  }
  
  /* Mobile Toggle Button */
  .navbar-toggler {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
  }
  
  .navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
  }
  
  /* Mobile Navbar Animation */
  .navbar-collapse.collapsing {
    transition: height 0.35s ease;
  }
  
  .navbar-collapse.show {
    animation: slideDown 0.3s ease;
  }
  
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PWA Install Button Improvements */
.pwa-install-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid #e5e7eb;
  padding: 16px;
  animation: slideInUp 0.3s ease;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.pwa-install-container .btn {
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none;
}

/* Ensure all install buttons are clickable */
#hero-install-btn,
#pwa-install-btn .btn,
button[onclick*="installApp"],
button[data-install] {
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Notification dropdown improvements */
#notifDropdown {
  cursor: pointer !important;
  pointer-events: auto !important;
}

#notifDropdown:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

/* Ensure notification dropdown container has proper positioning */
.nav-item .dropdown {
  position: relative !important;
}

.nav-item .dropdown .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  z-index: 1050 !important;
}

/* Ensure notification dropdown menu is clickable and properly positioned */
#notifDropdown + .dropdown-menu {
  pointer-events: auto !important;
  z-index: 1050 !important;
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  margin-top: 0.5rem !important;
  min-width: 360px !important;
  max-width: 90vw !important;
  max-height: 500px !important;
  overflow-y: auto !important;
  top: 100% !important;
  /* Force positioning to stay next to bell icon */
  margin-right: 0 !important;
  margin-left: auto !important;
}

#notifDropdown + .dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mobile notification dropdown positioning */
@media (max-width: 768px) {
  #notifDropdown + .dropdown-menu {
    right: 10px !important;
    left: 10px !important;
    min-width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  #notifDropdown + .dropdown-menu {
    right: 5px !important;
    left: 5px !important;
    min-width: calc(100vw - 10px) !important;
    max-width: calc(100vw - 10px) !important;
  }
}

.pwa-install-container.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile PWA Install Button */
@media (max-width: 768px) {
  .pwa-install-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    margin: 0;
  }
  
  .pwa-install-container .btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* Roboto Font Import */
@font-face {
  font-family: 'Roboto';
  src: url('../Roboto/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Global Button Font */
.btn, .btn-primary, .btn-secondary, .btn-outline-light, .btn-light, .btn-google, 
.btn-cta, .btn-cta-primary, .btn-cta-secondary, .btn-nav, .btn-nav-primary, .btn-nav-secondary {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Global Text Font */
body, h1, h2, h3, h4, h5, h6, p, span, div, a, input, textarea, select, label {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Google Sign-In Button Styles */
.hero-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.hero-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.hero-divider span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.hero-google-signin {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  text-align: center;
  width: 100%;
}

.google-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}


/* Login and Register page Google button styling */
.login-google-signin,
.register-google-signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.login-google-signin .g_id_signin,
.register-google-signin .g_id_signin {
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-google-signin .g_id_signin > div,
.register-google-signin .g_id_signin > div {
  width: 100% !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  transition: all 0.3s ease !important;
  margin: 0 auto !important;
  display: block !important;
}

.login-google-signin .g_id_signin > div:hover,
.register-google-signin .g_id_signin > div:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

/* Google Privacy Policy Link Styling */
.google-privacy-link {
  text-align: center;
  margin-top: 0.75rem;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.google-privacy-link small {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.4;
  display: block;
}

.privacy-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.privacy-link:hover {
  color: #5a67d8;
  text-decoration: none;
  border-bottom-color: #5a67d8;
}

.privacy-link:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
  border-radius: 2px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #4285F4;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.2);
  color: #333;
  text-decoration: none;
}

.btn-google:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-google:focus {
  outline: none;
  border-color: #4285F4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-google:disabled:hover {
  transform: none;
  background: white;
  border-color: #e0e0e0;
}

/* Google Sign-In Button Loading State */
.btn-google.loading {
  position: relative;
  color: transparent;
}

.btn-google.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #4285F4;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.google-icon {
  flex-shrink: 0;
}

/* Mobile responsive Google button */
@media (max-width: 768px) {
  .btn-google {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: 180px;
  }
  
  .hero-divider {
    margin: 1rem 0;
  }
}

/* Privacy Policy Section */
.privacy-policy-section {
  background: #f8fafc;
  padding: 5rem 0;
  position: relative;
}

.privacy-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.privacy-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.privacy-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.privacy-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.privacy-item h3 i {
  color: #667eea;
  font-size: 1.1rem;
}

.privacy-item p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.privacy-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-item ul li {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.privacy-item ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.privacy-contact {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
  text-align: center;
}

.privacy-contact h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.privacy-contact p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #374151;
  font-weight: 500;
}

.contact-info i {
  color: #667eea;
  width: 20px;
}

.privacy-update {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.privacy-update p {
  margin: 0.5rem 0;
  opacity: 0.9;
}

.privacy-update strong {
  font-weight: 600;
}

/* Mobile responsive privacy policy */
@media (max-width: 768px) {
  .privacy-policy-section {
    padding: 3rem 0;
  }
  
  .privacy-sections {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .privacy-item {
    padding: 1.5rem;
  }
  
  .privacy-item h3 {
    font-size: 1.1rem;
  }
  
  .privacy-contact {
    padding: 2rem 1.5rem;
  }
  
  .contact-info {
    align-items: flex-start;
  }
  
  .contact-info p {
    justify-content: flex-start;
  }
  
  /* Mobile privacy policy link */
  .google-privacy-link {
    margin-top: 0.5rem;
    padding: 0 0.5rem;
  }
  
  .google-privacy-link small {
    font-size: 0.7rem;
  }
}

/* PWA Install Instructions Modal */
#installInstructionsModal .modal-content {
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  border: none !important;
}

#installInstructionsModal .modal-backdrop {
  background-color: rgba(0,0,0,0.5) !important;
  opacity: 1 !important;
}

#installInstructionsModal .modal-header {
  background: #f8f9fa !important;
  border-bottom: 1px solid #dee2e6 !important;
  border-radius: 12px 12px 0 0 !important;
}

#installInstructionsModal .modal-footer {
  background: #f8f9fa !important;
  border-top: 1px solid #dee2e6 !important;
  border-radius: 0 0 12px 12px !important;
}

#installInstructionsModal .modal-body {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #212529 !important;
}

#installInstructionsModal .modal-title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #212529 !important;
}

#installInstructionsModal .btn {
  font-size: 0.95rem !important;
  padding: 0.5rem 1.5rem !important;
}

#installInstructionsModal .btn-close {
  background: none !important;
  border: none !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  color: #6c757d !important;
  opacity: 1 !important;
  padding: 0.5rem !important;
  line-height: 1 !important;
}

#installInstructionsModal .btn-close:hover {
  color: #000 !important;
  opacity: 0.75 !important;
}

#installInstructionsModal .btn-close:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* PWA Install Popup Button Improvements - Using Bootstrap classes */
.pwa-install-container .btn {
  transition: all 0.3s ease;
}

.pwa-install-container .btn:hover {
  transform: translateY(-1px);
}

.pwa-install-container .btn:active {
  transform: translateY(0);
}

/* Modal Button Improvements - Using Bootstrap classes */
#installInstructionsModal .btn {
  transition: all 0.3s ease;
}

#installInstructionsModal .btn:hover {
  transform: translateY(-1px);
}

#installInstructionsModal .btn:active {
  transform: translateY(0);
}

/* Ensure modal backdrop is properly removed */
.modal-backdrop {
  z-index: 1040 !important;
}

.modal-backdrop.show {
  opacity: 0.5 !important;
}

/* Force remove any lingering backdrop effects */
body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* Ensure clean state after modal is closed */
body:not(.modal-open) {
  overflow: auto !important;
  padding-right: 0 !important;
}

/* Additional cleanup for any remaining backdrop */
.modal-backdrop.fade {
  opacity: 0 !important;
}

.modal-backdrop.fade.show {
  opacity: 0.5 !important;
}
  
  /* Mobile Dropdown Arrow Animation */
  .navbar-nav .dropdown-toggle::after {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
  }
  
  .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }
  
  /* Mobile Button Groups */
  .navbar-nav .btn {
    margin: 0.25rem 0;
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile Spacing */
  .navbar-nav .nav-item {
    margin: 0.125rem 0;
  }
  
  /* Mobile Text Sizing */
  .navbar-nav .nav-link {
    font-size: 0.95rem;
  }
  
  .navbar-nav .dropdown-item {
    font-size: 0.9rem;
  }
  
  .main-content {
    padding-top: 80px;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 575.98px) {
  .modern-navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.625rem 0.875rem !important;
    font-size: 0.9rem;
  }
  
  .navbar-nav .dropdown-item {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .brand-icon {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  
  .navbar-brand-icon {
    width: 22px;
    height: 22px;
  }
  
  .navbar-toggler {
    padding: 0.375rem 0.625rem;
  }
  
  .brand-main {
    font-size: 1rem;
  }
  
  .user-menu .dropdown-header {
    padding: 0.75rem;
  }
  
  .navbar-nav .dropdown-menu {
    margin: 0.375rem 0;
  }
  
  .main-content {
    padding-top: 70px;
  }
}

/* Modern Dashboard Styles */
.dashboard-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem; /* Further reduced */
  border-radius: 8px; /* Further reduced */
  margin-bottom: 1rem; /* Further reduced */
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2); /* Further reduced */
}

.dashboard-title {
  font-size: 1.1rem; /* Further reduced */
  font-weight: 600;
  margin-bottom: 0.1rem; /* Further reduced */
}

.dashboard-subtitle {
  font-size: 0.75rem; /* Further reduced */
  opacity: 0.9;
  margin-bottom: 0;
}

.dashboard-actions .btn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: none;
}

/* Modern Alerts */
.modern-alert {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

/* Metric Cards */
.metric-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.metric-card-body {
  padding: 1.5rem;
  display: flex;
  align-items: center;
}

.metric-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
  color: white;
}

.income-card .metric-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.expense-card .metric-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.savings-card .metric-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.debt-card .metric-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.metric-content {
  flex: 1;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1f2937;
}

.metric-label {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.metric-change {
  font-size: 0.8rem;
  font-weight: 500;
}

.metric-change.positive {
  color: #10b981;
}

.metric-change.negative {
  color: #ef4444;
}

/* Chart Cards */
.chart-card, .health-card, .stats-card, .summary-card, .activity-card, .payments-card, .goals-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.chart-card-header, .health-card-header, .stats-card-header, .summary-card-header, 
.activity-card-header, .payments-card-header, .goals-card-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1.5rem;
}

.chart-card-header h5, .health-card-header h5, .stats-card-header h5, .summary-card-header h5,
.activity-card-header h5, .payments-card-header h5, .goals-card-header h5 {
  margin: 0;
  color: #1f2937;
  font-weight: 600;
}

.chart-card-body, .health-card-body, .stats-card-body, .summary-card-body,
.activity-card-body, .payments-card-body, .goals-card-body {
  padding: 0 1.5rem 1.5rem;
}

.view-all-link {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.view-all-link:hover {
  color: #5a67d8;
}

/* Health Score */
.health-score {
  text-align: center;
  margin-bottom: 2rem;
}

.score-circle {
  position: relative;
  display: inline-block;
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  display: block;
}

.score-label {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.health-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.metric-name {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
  flex: 1;
}

.progress {
  flex: 2;
  height: 8px;
  margin: 0 1rem;
  border-radius: 4px;
}

.metric-value {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

/* Stats Items */
.stat-item, .summary-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.stat-item:last-child, .summary-item:last-child {
  border-bottom: none;
}

.stat-icon, .summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 1rem;
}

.stat-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.summary-icon.credit-cards {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.summary-icon.loans {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.summary-icon.savings {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-content h4, .summary-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1f2937;
}

.stat-content p, .summary-content p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0;
}

.summary-content small {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Activity Items */
.activity-item, .payment-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.activity-item:last-child, .payment-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1rem;
}

.activity-content, .payment-content {
  flex: 1;
}

.activity-content h6, .payment-content h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #1f2937;
}

.activity-content p, .payment-content p {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0;
}

.activity-amount, .payment-amount {
  text-align: right;
  font-weight: 600;
}

.payment-amount small {
  display: block;
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 400;
}

/* Payment Urgency */
.payment-urgency {
  width: 12px;
  height: 12px;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.urgency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.payment-urgency.high .urgency-dot {
  background-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.payment-urgency.medium .urgency-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.payment-urgency.low .urgency-dot {
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Goals */
.goal-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.goal-header h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.goal-percentage {
  font-size: 0.9rem;
  font-weight: 600;
  color: #10b981;
}

.goal-progress {
  margin-bottom: 1rem;
}

.goal-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6b7280;
}

.goal-deadline {
  color: #f59e0b;
  font-weight: 500;
}

/* No Data Messages */
.no-data-message {
  text-align: center;
  padding: 2rem;
}

.no-data-message i {
  opacity: 0.5;
}

/* Welcome Page */
.welcome-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-section {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  margin-bottom: 4rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.hero-actions .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.features-section {
  padding: 2rem 0;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.feature-icon.income {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feature-icon.finance {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.feature-icon.savings {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.feature-card h5 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Modern Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1055;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(100%) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.toast.hide {
  opacity: 0;
  transform: translateX(100%) scale(0.95);
}

.toast-header {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px 12px 0 0;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.toast-body {
  padding: 0.75rem 1rem 1rem;
  word-wrap: break-word;
  line-height: 1.5;
  font-size: 0.95rem;
}

.toast-success {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.toast-success .toast-header {
  color: #065f46;
}

.toast-error {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.toast-error .toast-header {
  color: #991b1b;
}

.toast-warning {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.toast-warning .toast-header {
  color: #92400e;
}

.toast-info {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.toast-info .toast-header {
  color: #1e40af;
}

.toast-icon {
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  padding: 4px;
  border-radius: 4px;
  color: #6b7280;
}

.toast-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.05);
  color: #374151;
}

/* Password visibility toggle button styling */
.password-toggle-btn {
  border-left: 1px solid #ced4da;
  border-radius: 0 0.375rem 0.375rem 0;
  transition: all 0.2s ease;
}

.password-toggle-btn:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.password-toggle-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  border-color: #80bdff;
}

.password-toggle-btn i {
  transition: color 0.2s ease;
}

.password-toggle-btn:hover i {
  color: #495057;
}

/* Help & Support Styles */
.help-hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.help-hero-content {
  text-align: center;
}

.help-hero-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.help-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.help-hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.quick-actions-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
}

.quick-actions-title {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  color: #374151;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.quick-action-item:hover {
  background: #e9ecef;
  color: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.quick-action-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #667eea;
}

.help-sidebar {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
}

.sidebar-title {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.help-sidebar .nav-link {
  color: #6b7280;
  padding: 0.75rem 0;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.help-sidebar .nav-link:hover {
  color: #667eea;
  background: #f3f4f6;
  padding-left: 0.5rem;
}

.help-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
}

.help-section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.help-section-header h3 {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.help-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h5 {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.feature-content {
  padding: 1rem 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.feature-tip {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem;
  color: #92400e;
}

.troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.troubleshooting-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #e5e7eb;
}

.troubleshooting-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.troubleshooting-content h6 {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.troubleshooting-content p {
  color: #6b7280;
  margin: 0;
}

.contact-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.contact-card h6 {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #5a67d8;
  transform: translateY(-2px);
}

.help-action-buttons {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 1000;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .toast {
    margin-bottom: 8px;
  }

  .help-hero-title {
    font-size: 2rem;
  }

  .help-hero-subtitle {
    font-size: 1rem;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-item {
    flex-direction: column;
    text-align: center;
  }

  .troubleshooting-grid,
  .contact-support-grid {
    grid-template-columns: 1fr;
  }

  .help-action-buttons {
    position: static;
    transform: none;
    margin-top: 2rem;
    justify-content: center;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}

/* Profile Page Styles */
.profile-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.profile-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 8px 8px 0 0;
  color: #6b7280;
  font-weight: 500;
  padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
  background-color: white;
  color: #667eea;
  border-bottom: 2px solid #667eea;
}

.profile-info-section {
  padding: 2rem;
}

.readonly-field {
  background-color: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-title {
    font-size: 1rem; /* Further reduced */
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .metric-card-body {
    padding: 1rem;
  }
  
  .metric-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .metric-value {
    font-size: 1.4rem;
  }
}

/* Modern Loan Management Styles */
.loan-section-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.loan-section-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loan-section-header h4 {
  margin: 0;
  font-weight: 600;
}

.loan-section-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.loan-section-body {
  padding: 1.5rem;
}

/* Loan Overview Card */
.loan-overview-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.loan-overview-header h5 {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.loan-total-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.loan-overview-chart {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Individual Loans */
.individual-loans {
  height: 100%;
}

.loans-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.loans-header h6 {
  margin: 0;
  color: #1f2937;
  font-weight: 600;
}

.loans-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Modern Loan Cards */
.modern-loan-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.modern-loan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.loan-card-header {
  padding: 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.loan-info {
  flex: 1;
}

.loan-name {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.loan-type {
  font-size: 0.75rem;
  font-weight: 500;
}

.loan-amount {
  text-align: right;
}

.remaining-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ef4444;
}

.total-amount {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.loan-card-body {
  padding: 1rem;
}

.loan-progress {
  margin-bottom: 1rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.loan-progress-bar {
  height: 6px;
  border-radius: 3px;
  background-color: #f3f4f6;
}

.loan-progress-bar .progress-bar {
  border-radius: 3px;
}

.loan-actions {
  display: flex;
  gap: 0.5rem;
}

.loan-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
}

/* Modern Modal Styles */
.modern-modal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modern-modal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem;
  border-bottom: none;
}

.modern-modal .modal-title {
  font-weight: 600;
  font-size: 1.2rem;
}

.modern-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.modern-modal .btn-close:hover {
  opacity: 1;
}

.modern-modal .modal-body {
  padding: 2rem;
}

.modern-modal .modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

/* Loan Payment Form */
.loan-summary-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.loan-summary-card .summary-item {
  margin-bottom: 1rem;
}

.loan-summary-card .summary-item:last-child {
  margin-bottom: 0;
}

.loan-summary-card label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  display: block;
}

.loan-summary-card .summary-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.payment-impact-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #bae6fd;
}

.payment-impact-card h6 {
  margin-bottom: 1rem;
  color: #0369a1;
  font-weight: 600;
}

.impact-item {
  text-align: center;
}

.impact-item label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  display: block;
}

.impact-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
}

/* Chart Metric Cards */
.chart-metric-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.chart-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-metric-card .metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.chart-metric-card .metric-info {
  flex: 1;
}

.chart-metric-card .metric-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.chart-metric-card .metric-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

/* Chart Controls */
.chart-controls {
  display: flex;
  gap: 0.5rem;
}

.chart-controls .btn {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chart-controls .btn.active {
  background-color: #667eea;
  border-color: #667eea;
  color: white;
}

/* Payment Schedule */
.payment-schedule-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  height: fit-content;
}

.payment-schedule-card h6 {
  margin-bottom: 1rem;
  color: #1f2937;
  font-weight: 600;
}

.payment-schedule-list {
  max-height: 200px;
  overflow-y: auto;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-date {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.schedule-amount {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
}

/* Responsive Loan Styles */
@media (max-width: 992px) {
  .loan-section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .loan-section-actions {
    justify-content: center;
  }
  
  .loan-overview-card {
    margin-bottom: 1.5rem;
  }
  
  .chart-metric-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .loan-card-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .loan-amount {
    text-align: center;
  }
  
  .loan-actions {
    flex-direction: column;
  }
  
  .modern-modal .modal-body {
    padding: 1.5rem;
  }
  
  .modern-modal .modal-footer {
    padding: 1rem 1.5rem;
  }
  
  .chart-metric-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .payment-schedule-card {
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .loan-section-body {
    padding: 1rem;
  }
  
  .loan-overview-card {
    padding: 1rem;
  }
  
  .loan-total-amount {
    font-size: 1.5rem;
  }
  
  .modern-loan-card {
    margin-bottom: 0.75rem;
  }
  
  .loan-card-header,
  .loan-card-body {
    padding: 0.75rem;
  }
  
  .loan-actions .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
}