:root {
  --mobile-max: 767px;
  --tablet-min: 768px;
  --tablet-max: 1024px;
  --desktop-min: 1025px;
  --max-content-width: 1400px;
  --sidebar-width: 280px;
}

/* 1. BASE LAYOUT & SCROLL FIX */
@media (min-width: 1025px) {
  body {
    display: flex !important;
    height: 100vh !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    /* Prevents double scrollbars */
    font-family: "Lato", sans-serif;
  }

  /* Fixed Sidebar */
  .sidebar-offcanvas {
    flex: 0 0 var(--sidebar-width) !important;
    height: 100vh !important;
    position: relative !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    z-index: 1060 !important;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Scrollable Main Area */
  main#main-content {
    flex: 1 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    /* Restores scrolling here */
    overflow-x: hidden;
    position: relative;
    background-color: #f8f9fa;
    padding-bottom: 50px;
  }

  .navbar-menu,
  .sidebar-btn,
  .panel-space {
    display: none !important;
  }
}

/* 2. MOBILE BOTTOM NAV BEHAVIOR */
@media (max-width: 1024px) {
  body {
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
  }

  .navbar-menu {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.3s ease-in-out;
  }
}

/* 3. CONTAINER SCALING */
.custom-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .custom-container {
    max-width: 720px;
  }
}

@media (min-width: 1025px) {
  .custom-container {
    max-width: 900px;
  }
}

@media (min-width: 1400px) {
  .custom-container {
    max-width: var(--max-content-width);
  }
}

/* 4. COMPONENT STYLING (Original Logic) */
.service-box {
  padding: 20px;
  transition: 0.3s;
}

@media (min-width: 1025px) {
  .service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .transaction-box:hover {
    background: #fff;
    transform: scale(1.02);
  }
}

/* 5. DESKTOP SCROLLBAR APPEARANCE */
@media (min-width: 1025px) {
  main#main-content::-webkit-scrollbar {
    width: 6px;
  }

  main#main-content::-webkit-scrollbar-track {
    background: transparent;
  }

  main#main-content::-webkit-scrollbar-thumb {
    background: #dbdbdb;
    border-radius: 10px;
  }
}

/* 6. FORM & AUTH RESPONSIVENESS */
@media (min-width: 768px) {

  .auth-form,
  .theme-form {
    max-width: 500px;
    margin: 0 auto;
  }

  .modal-dialog {
    max-width: 550px;
  }
}


.card-analytics-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-theme {
  color: #0d6efd;
  /* Or your specific brand color */
  text-decoration: none;
}

.icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transaction-list {
  list-style: none;
  padding: 0;
}

.transaction-box {
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.transaction-box:hover {
  background-color: #222 !important;
}