
      * {
        box-sizing: border-box;
      }
      body {
        background: #121212;
        color: #e0e0e0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          sans-serif;
        margin: 0;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
      }
      
      /* Pull-to-refresh indicator */
      .pull-refresh-indicator {
        position: fixed;
        top: -60px;
        left: 0;
        right: 0;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(30, 30, 30, 0.95);
        z-index: 99;
        opacity: 0;
        border-bottom: 1px solid #434343;
      }
      
      .pull-refresh-text {
        color: #ff9200;
        font-size: 13px;
        font-weight: 600;
      }
/* --- NARROW SCROLLBARS --- */
      ::-webkit-scrollbar {
        width: 4px;  /* Changed from 8px to 4px */
        height: 4px; /* Changed from 8px to 4px */
      }
      ::-webkit-scrollbar-track {
        background: transparent;
      }
      ::-webkit-scrollbar-thumb {
        background: #ff9200;
        border-radius: 10px;
      }
      /* Optional: Hover effect for better visibility when interacting */
      ::-webkit-scrollbar-thumb:hover {
        background: #ffaa33;
      }

      #appContainer {
        max-width: 1400px;
        margin: 0 auto;
      }
      .app-header {
        background: #1e1e1e;
        border-bottom: 1px solid #434343;
        position: sticky;
        top: 0;
        z-index: 100;
      }
      .action-btn {
        background: #ff9200;
        color: #000;
        font-weight: bold;
        border-radius: 12px;
        padding: 10px 20px;
        border: none;
        box-shadow: 0 4px 15px rgba(255, 146, 0, 0.3);
        transition: 0.2s;
        cursor: pointer;
      }
      .action-btn:hover {
        background: #ffaa33;
      }
      .action-btn:active {
        transform: scale(0.95);
      }
      .action-btn:disabled {
        background: #666;
        cursor: not-allowed;
        box-shadow: none;
      }

      .list-card {
        background: #222222;
        border: 1px solid #434343;
        border-radius: 16px;
        padding: 15px;
        margin-bottom: 10px;
        transition: 0.2s;
        cursor: pointer;
      }
      .list-card:hover {
        border-color: #ff9200;
        background: #2a2a2a;
      }
      .list-card:active {
        transform: scale(0.98);
      }
      .list-card.expiring-soon {
        border: 2px solid #ff5252;
        background: rgba(255, 82, 82, 0.1);
      }

/* --- PAGE TRANSITION ANIMATIONS --- */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* This class controls the animation */
.animate-entry {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Ensure smooth page transitions */
.view-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem; /* Re-add the padding we removed from mainContent */
  padding-top: 1.5rem; /* Add top padding so content doesn't go behind header */
  padding-bottom: 6rem; /* Extra space for bottom lists */
  overflow-y: auto; /* Scroll INSIDE the view, not the body */
  -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
  background-color: #121212; /* Ensure background is opaque */
  overscroll-behavior-y: contain;
  
  /* THE ANIMATION MAGIC */
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
  z-index: 0;
}

/* 3. Hidden State (Slide to right) */
.view-section.hidden-page {
  opacity: 0;
  transform: translateX(50px); /* Matches aminCashBook slide */
  pointer-events: none;
  z-index: 0;
  /* Note: We DO NOT use display:none anymore */
}
.view-section.active-page {
  opacity: 1;
  transform: translateX(0);
  z-index: 10;
  pointer-events: auto;
}
/* 5. Header Transition (Optional smoothness) */
#pageTitle {
  transition: opacity 0.2s ease;
}
      .animate-enter {
        animation: fadeInUp 0.4s forwards;
        opacity: 0;
      }

      /* --- SIDEBAR STYLES START --- */
      .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 900;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(4px);
      }
      .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
      }
      .sidebar-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        background: #1e1e1e;
        z-index: 901;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid #434343;
        display: flex;
        flex-direction: column;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
      }
      .sidebar-menu.active {
        transform: translateX(0);
      }
      .nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        color: #9e9e9e;
        transition: 0.2s;
        border-radius: 0 25px 25px 0;
        margin-right: 10px;
        cursor: pointer;
        font-weight: 500;
        font-size: 14px;
      }
      .nav-item:hover {
        background: rgba(255, 146, 0, 0.1);
        color: #ff9200;
      }
      .nav-item.active {
        background: rgba(255, 146, 0, 0.2);
        color: #ff9200;
        font-weight: bold;
        border-left: 3px solid #ff9200;
      }
      .nav-item i {
        width: 20px;
        text-align: center;
      }
      /* --- SIDEBAR STYLES END --- */

      .bottom-sheet-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(4px);
      }
      .bottom-sheet-overlay.active {
        opacity: 1;
        pointer-events: auto;
      }
      .bottom-sheet {
        background: #1e1e1e;
        width: 100%;
        max-width: 900px;
        border-radius: 20px;
        padding: 30px;
        transform: scale(0.9);
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        overflow-y: auto;
      }
      .bottom-sheet-overlay.active .bottom-sheet {
        transform: scale(1);
      }
      .bs-handle {
        width: 50px;
        height: 5px;
        background: #444;
        border-radius: 3px;
        margin: 0 auto 20px auto;
      }

      .custom-input {
        background: #383838;
        border: 1px solid #434343;
        color: white;
        border-radius: 12px;
        padding: 15px;
        width: 100%;
        outline: none;
        transition: 0.2s;
        font-size: 14px;
      }
      .custom-input:focus {
        border-color: #ff9200;
        background: #444;
      }

      .grid-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
      }
      .menu-card {
        background: #222222;
        border-radius: 16px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 1px solid #434343;
        aspect-ratio: 1;
        transition: 0.2s;
        cursor: pointer;
      }
      .menu-card:hover {
        border-color: #ff9200;
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(255, 146, 0, 0.2);
      }
      .menu-card:active {
        transform: scale(0.95);
      }
      .menu-icon {
        font-size: 2em;
        color: #9e9e9e;
        margin-bottom: 10px;
        transition: 0.2s;
      }
      .menu-card:hover .menu-icon {
        color: #ff9200;
      }

      .hidden-page {
        display: none !important;
      }
      .active-page {
        display: block !important;
        animation: fadeIn 0.3s ease;
      }
      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }

      .badge {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: bold;
        display: inline-block;
      }
      .badge-success {
        background: rgba(76, 175, 80, 0.2);
        color: #4caf50;
      }
      .badge-warning {
        background: rgba(245, 158, 11, 0.2);
        color: #f59e0b;
      }
      .badge-danger {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
      }
      .badge-info {
        background: rgba(59, 130, 246, 0.2);
        color: #3b82f6;
      }

      .leaflet-layer,
      .leaflet-control-zoom-in,
      .leaflet-control-zoom-out,
      .leaflet-control-attribution {
        filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
      }
      .custom-pin {
        filter: invert(0) !important;
      }

      @media (min-width: 768px) {
        .grid-menu {
          grid-template-columns: repeat(3, 1fr);
          gap: 20px;
        }
        .menu-card {
          padding: 30px;
        }
        .menu-icon {
          font-size: 2.5em;
        }
   #mainContent {
  position: relative;
  width: 100%;
  height: calc(100vh - 65px); /* Full height minus header */
  overflow: hidden; /* Hide scrollbars appearing during animation */
  overscroll-behavior-y: contain;
}
        .list-card {
          padding: 20px;
        }
      }

      @media (min-width: 1024px) {
        .grid-menu {
          grid-template-columns: repeat(4, 1fr);
          gap: 25px;
        }
        .stats-grid {
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          gap: 20px;
        }
      }

      @media (max-width: 767px) {
        .bottom-sheet-overlay {
          align-items: flex-end;
        }
        .bottom-sheet {
          border-radius: 25px 25px 0 0;
          max-width: 100%;
          transform: translateY(100%);
        }
        .bottom-sheet-overlay.active .bottom-sheet {
          transform: translateY(0);
        }
      }

      .tab-btn {
        padding: 10px 20px;
        background: transparent;
        border: none;
        color: #9e9e9e;
        font-weight: bold;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        transition: 0.2s;
      }
      .tab-btn.active {
        color: #ff9200;
        border-bottom-color: #ff9200;
      }

      .empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #9e9e9e;
      }
      .empty-state i {
        font-size: 4em;
        margin-bottom: 20px;
        opacity: 0.3;
      }

      .leaflet-top {
        top: 70px !important; /* Pushes standard map controls below the 64px header */
      }
      
      /* --- ADDITION: HEADER BUTTON HOVERS --- */
      .h-btn-gray { transition: all 0.2s ease; cursor: pointer; }
      .h-btn-gray:hover { 
        background: #505050 !important; 
        color: #ffffff !important; 
        border-color: #666 !important; 
      }

      .h-btn-orange { transition: all 0.2s ease; cursor: pointer; }
      .h-btn-orange:hover { 
        background: #ffaa33 !important; 
        transform: scale(1.05); 
        box-shadow: 0 0 15px rgba(255, 146, 0, 0.4);
      }
      /* --- PAGE TRANSITION ANIMATIONS --- */



      