 /* Prevent horizontal scroll on all screen sizes */
 html,
 body {
   width: 100%;
   min-width: 0;
   overflow-x: hidden;
 }
  body {
   margin: 0;
   font-family: "Nunito Sans", sans-serif;
   background-color: rgb(235, 237, 241);
 }

 .dashboard {
   display: flex;
   gap: 10px;
 }

 .sidebar {
   background: #0b0736;
   color: white;
   width: 80px;
   min-width: 80px;
   height: -webkit-fill-available;
   transition: width 0.3s;
   position: fixed;
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   align-items: center;
   padding-top: 20px;
   border-radius: 16px;
   top: 0;
   left: 0;
   z-index: 1001;
 }

 .sidebar.expanded {
   width: 240px;
   min-width: 240px;
   align-items: flex-start;
   padding-left: 16px;
   left: 0;

 }

 .logo-container {
   width: 100%;
   height: 60px;
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 20 16px;
   transition: all 0.3s ease;
   left: 0;
 }

 .logo-container img {
   height: 40px;
   transition: all 0.4s ease-in-out;
   display: flex;
   align-items: center;
   margin-left: 20px;
 }

 .logo-container img {
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .logo-text {
   opacity: 0;
   white-space: nowrap;
   transition: opacity 0.3s ease-in-out;
   font-size: 26px;
   font-weight: 300;
 }

 .sidebar.expanded .logo-text {
   opacity: 1;
 }

 .sidebar ul {
   list-style: none;
   padding: 0;
   display: flex;
   flex-direction: column;
   gap: 24px;
   width: 100%;
   align-items: center;
   font-size: 20px;
   margin-top: 20px;
   margin-left: 20px;
 }

 .sidebar.expanded ul {
   align-items: flex-start;
   padding-left: 8px;
   font-size: 16px;
 }

 .sidebar.expanded ul a {
   text-decoration: none;
   color: inherit;
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px;
   border-radius: 12px;
   transition: background 0.2s, color 0.2s;
   width: 140px;
   position: relative;
   background: transparent;

 }

 .sidebar ul li {
   width: 100%;
 }

 .sidebar ul li a {
   text-decoration: none;
   color: inherit;
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px;
   border-radius: 12px;
   transition: background 0.2s, color 0.2s;
   width: 40px;
   position: relative;
   background: transparent;
 }

 .sidebar ul li a i {
   min-width: 24px;
   text-align: center;
   color: inherit;
   transition: color 0.2s;
 }

 .sidebar ul li a {
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .sidebar ul li a.active,
 .sidebar ul li a:hover {
   background: #fff !important;
   color: #0b0736 !important;
   z-index: 1;
 }

 .sidebar ul li a.active i,
 .sidebar ul li a:hover i {
   color: #0b0736 !important;
 }

 /* ...existing code... */

 .sidebar ul li span {
   display: none;
 }

 .sidebar.expanded ul li span {
   display: inline;
 }

 .toggle-btn {
   background: rgba(255, 255, 255, 0.5);
   border: 1px solid black;
   color: #0b0736;
   font-size: 20px;
   cursor: pointer;
   border-radius: 50%;
   padding: 8px 12px;
   margin-bottom: 32px;
   align-self: flex-end;
   position: absolute;
   bottom: 200px;
   right: -15px;
   transition: background 0.2s;
   z-index: 2;
 }

 .toggle-btn:hover {
   background: #fff;
 }

 .navbar {
   position: fixed;
   /* top: 0; */
   right: 0;
   left: 90px;
   height: 64px;
   background: white;
   display: flex;
   justify-content: flex-end;
   align-items: center;
   padding: 0 24px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
   z-index: 1000;
   border-radius: 0 0 20px 20px;
   gap: 12px;
   margin-top: 1px;
   border-radius: 16px;
 }

 .sidebar.expanded~.navbar {
   left: 250px;
 }

 .btn-docs {
   background: #0b0736;
   color: white;
   border: none;
   border-radius: 10px;
   padding: 8px 18px;
   display: flex;
   align-items: center;
   gap: 8px;
   font-weight: 500;
   cursor: pointer;
   text-decoration: none;
 }

 .ab1 {
   border: none;
   background: none;
   height: 60px;
   width: 60px;
   font-size: 26px;
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .profile-card ul {
   list-style: none;
   margin-top: 10px;
 }

 .profile-card ul li {
   display: block;
   /* Full width clickable area */
   padding: 10px 15px;
   /* Spacing for clean look */
   cursor: pointer;
   transition: background 0.3s;
   /* Smooth hover effect */
   border-radius: 6px;
   /* Rounded edges for professional design */
 }

 .profile-card ul li:hover {
   background-color: #cbcaca;
   color: #333;
   box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
 }

 .profile-card {
   position: absolute;
   top: 71px;
   right: 0;
   background: white;
   border-radius: 12px;
   width: 280px;
   box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
   display: none;
   flex-direction: column;
   overflow: hidden;
   z-index: 999;
 }

 .profile-header {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 16px;
   border-bottom: 1px solid #e0e0e0;
   background-color: rgb(235, 237, 241);
 }

 .avatar {
   width: 50px;
   height: 50px;
   background: #6c63ff;
   /* You can change the color */
   color: #fff;
   font-size: 22px;
   font-weight: 600;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
   flex-shrink: 0;
 }

 .user-info strong {
   font-size: 16px;
   color: #130A4D;
 }

 .user-info .email {
   font-size: 13px;
   color: #555;
 }

 .main {
   margin-left: 80px;
   padding: 90px 24px 24px 24px;
   width: calc(100% - 100px);
   max-width: 100vw;
   box-sizing: border-box;
   transition: margin-left 0.3s;
 }

 .sidebar.expanded~.main {
   width: calc(100% - 260px);
   margin-left: 240px;
   max-width: 100vw;
 }

 .main-header {
   margin-top: 24px;
   margin-bottom: 8px;
 }

 .categories {
   display: flex;
   flex-wrap: nowrap;
   overflow-x: auto;
   gap: 12px;
   padding: 16px 20px;
   background: #fff;
   border-radius: 16px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 6px 24px rgba(0, 0, 0, 0.08);
   scrollbar-width: none;
   transition: box-shadow 0.2s, transform 0.2s;
 }

 .categories:hover {
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
   transform: translateY(-4px);
 }

 .categories::-webkit-scrollbar {
   display: none;
 }

 .categories button {
   white-space: nowrap;
   font-size: 13px;
   padding: 8px;
   border-radius: 16px;
 }

 .categories button:hover {
   background: #e0e0f0;
 }

 .categories button.active {
   background: #130A4D;
   color: #fff;
 }

 .cardscontainer {
   background-color: #fff;
   padding: 24px;
   border-radius: 16px;
   box-shadow: 0px 4px 20px rgb(142, 137, 137, 0.5s), translatey(2);
   margin-top: 16px;
   height: auto;
 }

 /* clock */
 .filter-container {
   display: flex;
   gap: 40px;
   flex-wrap: wrap;
   align-items: flex-start;

 }

 .datetime-wrapper,
 .product-select-section {
   display: flex;
   flex-direction: column;
   gap: 10px;


 }

 .section-heading {
   font-weight: 600;
   font-size: 16px;
   color: #333;
   margin-left: 25px;
   margin-top: 20px;
 }

 #ddate {
   padding: 10px !important;
   border: 1px solid #ccc !important;
   border-radius: 10px !important;
   width: 220px !important;
   background-color: #fff;
   cursor: pointer;
 }

 .freq {

   border: 1px solid #ccc !important;
   border-radius: 10px !important;
   width: 220px !important;
   background-color: #fff;
 }

 select {
   padding: 10px;
   border-radius: 10px;
   border: 1px solid #ccc;
   width: 220px;
   background-color: #fff;
 }

 /* --- CARDS GRID --- */
 #cardsContainer {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 24px;
   margin-top: 46px;
   width: 100%;
   box-sizing: border-box;
 }

 .transaction-card {
   margin-top: 20px;
   /* border: 1px solid black; */
 }

 /* --- CARD --- */
 .card {
   background: #fff;
   border: 1px solid #f0f0f0;
   border-radius: 18px;
   padding: 20px;
   box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
   transition: box-shadow 0.3s ease;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
 }

 .card:hover {
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
 }

 .card i {
   font-size: 36px;
   color: #130A4D;
   margin-bottom: 12px;
 }

 .card h3 {
   margin: 8px 0;
   font-size: 20px;
   color: #130A4D;
 }

 .card p {
   margin: 4px 0;
   color: #333;
   font-size: 14px;
 }

 .card .price {
   font-weight: 600;
   color: #234CE3;
   margin-top: 8px;
   font-size: 15px;
 }

 .card .btns {
   display: flex;
   gap: 10px;
   margin-top: 16px;
 }

 .btn-view,
 .btn-try {
   flex: 1;
   border: none;
   border-radius: 8px;
   padding: 10px 0;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.2s ease-in-out;
   font-size: 14px;
 }

 .btn-view {
   background: #f0f0f5;
   color: #000;
 }

 .btn-try {
   background: #130A4D;
   color: #fff;
 }

 .btn-view:hover {
   background: #e0e0f0;
 }

 .btn-try:hover {
   background: #1f1a64;
   box-shadow: 0 6px 16px grey;
 }

 /* Category header inside cardscontainer */
 #cardsCategoryHeader h3 {
   margin: 0 0 4px 0;
   font-size: 22px;
   color: #130A4D;
 }

 #cardsCategoryHeader p {
   margin: 0 0 16px 0;
   color: #444;
   font-size: 15px;
 }

 .hp {
   margin-top: 75px !important;
   font-size: 22px;
 }

 /* info*/
 .tooltip {
   position: relative;
   display: inline-block;
   cursor: pointer;
 }

 .tooltip .tooltiptext {
   visibility: hidden;
   white-space: nowrap;
   background-color: white;
   color: #0b0736;
   text-align: left;
   border-radius: 18px;
   padding: 8px;
   position: absolute;
   z-index: 1;
   top: 50%;
   left: 100%;
   /* Position to the right of the icon */
   margin-left: 10px;
   /* 10px gap */
   transform: translateY(-50%);
   opacity: 0;
   transition: opacity 0.3s;
   font-size: 14px;
 }

 .tooltip:hover .tooltiptext {
   visibility: visible;
   opacity: 1;
 }

 /* --- GENERAL CARD STYLES (Apply to both API Explorer and Dashboard cards unless overridden) --- */
 .card {
   background: #fff;
   border: 1px solid #f0f0f0;
   border-radius: 18px;
   padding: 20px;
   box-shadow: 0 3px 4px rgba(131, 130, 130, 0.785);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
 }

 .card:hover {
   transform: translateY(-8px);
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.51);
 }


 .card i {
   font-size: 36px;
   color: #130A4D;
   margin-bottom: 12px;
 }

 .card h3 {
   margin: 8px 0;
   font-size: 20px;
   color: #130A4D;
 }

 .card p {
   margin: 4px 0;

   color: #333;
   font-size: 15px;
 }

 /* --- API Explorer Specific Card Layout (Already exists in your CSS, just for context) --- */
 #cardsContainer {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 24px;
   margin-top: 46px;
 }

 /* The container for the dashboard cards */
 #dashboardCardsContainer {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 20px;
 }

 /* Using .dashcardcontainer in the selector for higher specificity and clarity */
 .dashcardcontainer #dashboardCardsContainer .card {
   margin-top: 40px;
   padding: 30px;
   width: 620px;
   height: 400px;
   /* border: 1px solid black; */
   text-align: center;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
 }

 /* This ensures the red color and large size apply correctly */
 .dashcardcontainer #dashboardCardsContainer .card i.fa-regular.fa-chart-bar {
   color: #c13506;
   font-size: 170px;
 }

 /* Specific styling for the 'Not Found' *warning* icon if you use it */
 #dashboardCardsContainer .card i.fa-exclamation-triangle {
   color: red !important;
 }

 /* test */

 .transaction-card {
   background: white;
   border-radius: 16px;
   padding: 20px;
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
   width: 95vw !important;
   overflow-x: auto;
   max-width: 100%;
   box-sizing: border-box;
 }

 .transaction-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap: 10px;
   margin-bottom: 16px;
 }

 .transaction-header h3 {
   margin: 0;
   font-size: 20px;
   color: #1f1f1f;
   flex: 1;
   min-width: 200px;
 }

 .filter-btn {
   background: transparent;
   border: none;
   font-size: 18px;
   cursor: pointer;
   color: #555;
 }

 .transaction-table {
   width: 100%;
   border-collapse: collapse;
   background-color: #f8f9fc;
   border-radius: 10px;
   overflow: hidden;
   min-width: 600px;
 }

 .transaction-table th {
   background-color: #f1f3f6;
   color: #2b2b2b;
   text-align: left;
   padding: 14px;
   font-weight: 600;
   font-size: 14px;
   border-bottom: 1px solid #ddd;
   white-space: nowrap;
 }

 .transaction-table td {
   text-align: center;
   padding: 18px;
   background: white;
   font-size: 14px;
   white-space: nowrap;
 }

 .no-data {
   padding: 40px 0;
   text-align: center;
   color: #444;
 }

 .no-data h3 {
   margin: 15px 0 10px;
   font-size: 22px;
   color: #c13506;
 }

 .no-data p {
   font-size: 15px;
   color: #777;
   line-height: 1.6;
 }

 .pagination {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   align-items: center;
   padding: 16px 0 0;
   font-size: 14px;
   color: #333;
   gap: 10px;
 }

 .pagination .rows {
   display: flex;
   align-items: center;
   gap: 8px;
 }

 .pagination .rows select {
   padding: 6px;
   border-radius: 6px;
   border: 1px solid #ccc;
 }

 .pagination .range {
   font-weight: 500;
 }

 .pagination .nav-buttons {
   display: flex;
   gap: 8px;
 }

 .pagination .nav-buttons button {
   border: none;
   background: transparent;
   font-size: 16px;
   color: #999;
   cursor: not-allowed;
 }

 /* account page  */
 .account-card {
   background: white;
   border-radius: 16px;
   padding: 24px;
   margin-top: 20px;
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
   height: inherit;
   box-sizing: border-box;

 }

 .account-tabs {
   background-color: white;
   max-width: inherit;
   border-radius: 16px;
   box-shadow: 0 2px 4px solid grey;
 }

 .subtext {
   color: rgb(31, 29, 29);
   font-size: 14px;
   margin-bottom: 20px;
 }

 .table-wrapper {
   overflow-x: auto;
 }

 .api-table {
   width: 100%;
   border-collapse: collapse;
   font-size: 15px;
 }

 .api-table th,
 .api-table td {
   padding: 12px 16px;
   border-bottom: 1px solid #e5e7eb;
   text-align: left;
 }

 .api-secret {
   font-family: monospace;
   letter-spacing: 1px;
 }

 .status-enabled {
   background-color: #d1f7dc;
   color: #065f46;
   font-weight: 600;
   padding: 6px 12px;
   border-radius: 12px;
   font-size: 14px;
 }

 .info-list {
   list-style: none;
   padding: 0;
 }

 .info-list li {
   margin-bottom: 12px;
   font-size: 16px;
 }

 .empty-state {
   font-size: 15px;
   color: black;
   padding-top: 12px;
 }

 .tab-btn-group {
   display: flex;
   gap: 12px;
   margin-top: 20px;

 }

 .tab-btn {
   border: none;
   background: transparent;
   font-weight: 600;
   font-size: 15px;
   padding: 20px;
   margin: 10px;
   border-radius: 16px;
   cursor: pointer;
   color: #130A4D;
   transition: 0.3s ease;
   border: 1px solid transparent;
 }

 .tab-btn.active {
   background-color: #130A4D;
   color: white;
   border-color: #130A4D;
 }

 /* reports btn */
 .report-container {
   margin-top: 20px;
 }

 .report-card {
   background: white;
   padding: 24px;
   border-radius: 16px;
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
 }

 .form-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 16px;
   margin-bottom: 20px;
 }

 .form-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 20px;
   grid-template-columns: 1fr 1fr;
 }

 .form-group input {
   width: 100%;
   max-width: 100%;
   padding: 10px 12px;
   font-size: 14px;
   border: 1px solid #e5e7eb;
   border-radius: 10px;
 }


 .form-group {
   display: flex;
   flex-direction: column;
 }

 .form-group label {
   font-weight: 600;
   margin-bottom: 6px;
   justify-content: center;
   box-sizing: border-box;
 }

 .form-group input {
   padding: 10px;
   border: 1px solid #ccc;
   border-radius: 8px;
 }

 .form-group.full-width {
   grid-column: span 2;
 }

 .btn-generate {
   background-color: #130A4D;
   color: white;
   border: none;
   padding: 10px 20px;
   font-weight: bold;
   border-radius: 8px;
   cursor: pointer;
 }

 /* wallet */
 .wallet-container {
   margin-top: 20px;
 }

 .wallet-card {
   background: white;
   padding: 24px;
   border-radius: 16px;
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
   margin-top: 20px;
   /* width: 100%; */
   max-width: 100vw;
 }

 .balance-card {
   border-left: 6px solid #130A4D;
 }

 .form-grid {
   display: flex;
   flex-wrap: wrap;
   gap: 34px;
 }

 .form-group {
   flex: 1 1 300px;
   max-width: 300px;
 }

 .form-group input,
 .form-group select {
   width: 100%;
   padding: 10px 12px;
   font-size: 14px;
   border: 1px solid #e5e7eb;
   border-radius: 10px;
 }

 .subtext {
   color: #6b7280;
   font-size: 14px;
   margin-bottom: 20px;
 }

 .info-list {
   list-style: none;
   padding: 0;
 }

 .info-list li {
   margin-bottom: 8px;
   font-size: 16px;
 }

 .api-table {
   width: 100%;
   border-collapse: collapse;
 }

 .api-table th,
 .api-table td {
   padding: 12px 16px;
   border-bottom: 1px solid #e5e7eb;
   text-align: left;
 }

 .status-enabled {
   background-color: #d1f7dc;
   color: #065f46;
   font-weight: 600;
   padding: 6px 12px;
   border-radius: 12px;
   font-size: 14px;
 }

 .btn-generate {
   background-color: #130A4D;
   color: white;
   border: none;
   padding: 10px 20px;
   font-weight: bold;
   border-radius: 8px;
   cursor: pointer;
 }

 /* === Sidebar Tooltip Styling === */
 .tooltip-label {
   position: absolute;
   left: 100%;
   top: 50%;
   transform: translateY(-50%);
   /* background-color: #333; */
   color: #fff;
   padding: 6px 10px;
   border-radius: 6px;
   white-space: nowrap;
   font-size: 13px;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.2s ease-in-out;
   z-index: 999;
   margin-left: 8px;
 }

 .sidebar:not(.expanded) ul li a:hover .tooltip-label {
   opacity: 0.7;
   visibility: visible;
 }

 .tooltip-label::after {
   content: '';
   position: absolute;
   top: 50%;
   left: -6px;
   transform: translateY(-50%);
   border-width: 6px;
   border-style: solid;
   border-color: transparent #333 transparent transparent;
 }

 /* === End Tooltip Styling === */
 /* Button Group Placement */
 #backToTopBtn,
 #commentBtn {
   position: fixed;
   bottom: 30px;
   z-index: 999;
   font-size: 20px;
   border: none;
   border-radius: 50%;
   color: white;
   cursor: pointer;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
   transition: 0.3s ease;
 }

 #backToTopBtn {
   right: 90px;
   /* Push left beside commentBtn */
   background: #130A4D;
   padding: 10px 14px;
   display: none;
 }

 #backToTopBtn:hover {
   background-color: #1f0f85;
 }

 #commentBtn {
   right: 30px;
   background: #1f0f85;
   padding: 16px;
 }

 /* Comment Popup Container */
 .comment-container {
   position: fixed;
   bottom: 90px;
   /* Just above comment button */
   right: 20px;
   width: 300px;
   height: 450px;
   background: #fff;
   border-radius: 15px;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
   display: none;
   overflow: hidden;
   z-index: 9999;
 }

 .comment-container iframe {
   width: 100%;
   height: 100%;
   border: none;
   border-radius: 15px;
 }

 /* guest css */
 /*.auth-body {*/
 /*  background: #f5f7fa;*/
 /*  display: flex;*/
 /*  justify-content: center;*/
 /*  align-items: center;*/
 /*  height: 100vh;*/
 /*}*/
 .auth-body {
    background: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

 .auth-container {
   background: white;
   padding: 30px 40px;
   border-radius: 10px;
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
   width: 100%;
   max-width: 420px;
 }

 .auth-logo {
   text-align: center;
   margin-bottom: 20px;
 }

 .auth-logo h2 {
   font-size: 24px;
   color: #1f0f85;
 }

 .auth-content form label {
   display: block;
   margin-bottom: 6px;
   margin-top: 14px;
 }

 .auth-content form input {
   width: 100%;
   padding: 10px;
   border: 1px solid #ddd;
   border-radius: 6px;
 }

 .auth-content button {
   background: #1f0f85;
   color: #fff;
   padding: 10px 16px;
   margin-top: 20px;
   width: 100%;
   border: none;
   border-radius: 6px;
 }

 /* /* Container */
  .auth-container {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   min-height: 100%;
   /* fills viewport but scrolls if needed */
   width: 100%;
   padding: 20px;
   background: #f9f9f9;
   box-sizing: border-box;
 }

 /* Logo */
 .auth-logo {
   max-width: 70px;
   margin-bottom: 24px;
 }

 /* Auth card */
 .auth-box {
   background: #fff;
   border-radius: 10px;
    padding: 35px 10px;
   width: 100%;
   max-width: 420px;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
   text-align: center;
 }

 /* Form groups */
 .auth-form .form-group {
   margin-bottom: 16px;
   text-align: left;
 }

 .auth-form input {
   width: 100%;
   padding: 10px;
   border: 1px solid #130a4d;
   border-radius: 6px;
   font-size: 15px;
   box-sizing: border-box;
 }

 /* Button */
 .btn-auth {
   width: 100%;
   padding: 12px;
   background-color: #130a4d;
   color: #fff;
   border: none;
   border-radius: 6px;
   font-size: 16px;
   margin-top: 10px;
   cursor: pointer;
 }

 .auth-bottom-text {
   margin-top: 14px;
   font-size: 14px;
   text-align: center;
 }

 /* Signup form row with half fields */
 .form-row {
   display: flex;
   gap: 12px;
 }

 .form-group.half {
   flex: 1;
   /* equal width halves */
 }

 /* Tablet (≤768px) */
 @media (max-width: 768px) {
   .auth-box {
     padding: 24px;
     max-width: 90%;
   }
 }

 /* Mobile (≤480px) */
 @media (max-width: 480px) {
   .auth-container {
     padding: 10px;
   }

   .auth-box {
     padding: 16px;
     border-radius: 8px;
     /*max-width: 100%;*/
      max-width: -webkit-fill-available;
   }

   .form-row {
     flex-direction: column;
     /* stack fields */
     gap: 0;
   }

   .form-group.half {
     width: 100%;
   }

   .auth-form input {
     font-size: 14px;
     padding: 8px 10px;
   }

   .btn-auth {
     font-size: 15px;
     padding: 10px;
   }
 }

 /* 
.auth-container {
  overflow-y: auto;
} */

 /* Fix for signup form row */
 .form-row {
   display: flex;
   gap: 12px;
   flex-wrap: wrap;
   /* allow wrapping instead of overflow */
 }

 .form-group.half {
   flex: 1;
   min-width: 0;
   /* prevents overflowing on small screens */
 }

 /* Mobile fix: stack inputs vertically */
 @media (max-width: 480px) {
   .form-row {
     flex-direction: column;
     /* stack fields */
     gap: 0;
   }

   .form-group.half {
     width: 100%;
     /* take full width */
   }
 }

 /* account user details */
 .info-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 12px 30px;
   padding: 15px;
 }

 .info-item {
   background-color: #f9f9f9;
   padding: 10px 15px;
   border-radius: 8px;
   border: 1px solid #ddd;
 }

 /* report  page css*/
 .btn-open-card {
   background: linear-gradient(135deg, #6a5acd, #8a2be2);
   color: white;
   border: none;
   padding: 10px 18px;
   border-radius: 8px;
   cursor: pointer;
   font-size: 16px;
   transition: 0.3s;
 }

 .btn-open-card:hover {
   background: linear-gradient(135deg, #5b4fc4, #751fd9);
 }

 /* Modal Overlay */
 .modal {
   display: none;
   position: fixed;
   z-index: 999;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
 }

 /* Modal Box */
 .modal-content {
   background: white;
   margin: 8% auto;
   padding: 20px;
   border-radius: 12px;
   width: 400px;
   box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
   animation: fadeIn 0.3s ease-in-out;
 }

 /* Close Button */
 .close-btn {
   float: right;
   font-size: 22px;
   cursor: pointer;
   color: #555;
 }

 .close-btn:hover {
   color: #000;
 }

 /* Form Styling */
 .modal-content form {
   display: flex;
   flex-direction: column;
 }

 .modal-content input,
 .modal-content textarea {
   margin-bottom: 15px;
   padding: 8px 10px;
   border: 1px solid #ddd;
   border-radius: 6px;
   outline: none;
 }

 .modal-content textarea {
   resize: none;
 }

 .btn-submit {
   background: #6a5acd;
   color: white;
   border: none;
   padding: 10px;
   border-radius: 6px;
   cursor: pointer;
 }

 .btn-submit:hover {
   background: #5b4fc4;
 }

 /* Animation */
 @keyframes fadeIn {
   from {
     opacity: 0;
     transform: scale(0.9);
   }

   to {
     opacity: 1;
     transform: scale(1);
   }
 }

 .card-icons {
   text-align: left;
   /* all three icons centered above title */
   margin-bottom: 10px;
 }

 .card-icons i {
   cursor: pointer;
   transition: color 0.2s ease;
 }

 .card-icons i:hover {
   color: #130A4D;
 }

 .card-icons .edit-icon,
 .card-icons .delete-icon {
   font-size: 16px;
   margin-left: 5px;
 }

 .card-icons .fa-solid:first-child {
   font-size: 40px;
   /* main card icon bigger */
   margin-right: 8px;
 }

 .modal {
   display: none;
   position: fixed;
   z-index: 999;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
 }

 .modal-content {
   background: #fff;
   margin: 60px auto;
   padding: 20px;
   border-radius: 8px;
   max-width: 700px;
   box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
 }

 .close-btn {
   position: absolute;
   right: 12px;
   top: 12px;
   background: transparent;
   border: none;
   font-size: 18px;
   cursor: pointer;
 }

 .card-icons i {
   cursor: pointer;
   transition: color 0.2s;
 }

 .card-icons .edit-icon,
 .card-icons .delete-icon {
   font-size: 16px;
   margin-left: 5px;
 }

 .card-icons .fa-solid:first-child {
   font-size: 40px;
   margin-right: 8px;
 }

 /* Complete media query */

 @media (max-width: 768px) {
   .navbar {
     left: 0 !important;
     padding: 0 16px;
     height: 64px;
     border-radius: 0;
     justify-content: space-between;
     display: flex;
     align-items: center;
     gap: 0;
   }

   .hamburger {
     display: block;
     font-size: 24px;
     color: #0b0736;
     cursor: pointer;
     margin-right: auto;
   }

   .btn-docs {
     display: none !important;
   }

   .ab1 {
     margin-left: auto;
   }

   .profile-card {
     right: 16px;
     width: fit-content;
     background-color: #555;
   }

   .sidebar {
     top: 64px;
     left: -240px;
     width: 240px;
     /* height: calc(100vh - 64px); */
   height: -webkit-fill-available;

     border-radius: 0 16px 16px 0;
     z-index: 999;
     transition: left 0.3s ease-in-out;
   }

   .sidebar.expanded {
     left: 0;
   }

   .sidebar.expanded~.main {
     margin-left: 0;
     width: 100%;
   }

   .main {
     margin-left: 0;
     width: 100%;
     padding: 90px 16px 24px;
   }
 }

 @media (min-width: 768px) {
   .hamburger {
     display: none;
   }

 }

 /* dashboard media */

 @media (max-width: 768px) {
   .main {
     margin-left: 0 !important;
     padding: 90px 16px 24px 16px;
     width: fit-content;
     display: flex;
     flex-direction: column !important;
     align-items: left !important;
     justify-content: center;
     text-align: center;
   }

   .wallet-card {
     width: 95% !important;
     max-width: 100vw;
     margin: 0px auto;
     box-sizing: border-box;
     align-items: center;
   }

   .categories button {
     width: fit-content;
   }

   .modal-content {
     width: 95% !important;
     max-width: 100vw;
     margin: 0px auto;
     box-sizing: border-box;
     align-items: center;
     margin-top: 70px;
   }

   .report-card {
     width: 95% !important;
     max-width: 100vw;
     margin: 0px auto;
     box-sizing: border-box;
     align-items: center;

   }

   .form-group input,
   .form-group select {
     width: 91%;
     padding: 10px 12px;
     font-size: 14px;
     border: 1px solid #e5e7eb;
     border-radius: 10px;
   }

   .dataTables_wrapper {
     overflow-x: auto;
   }

   table.dataTable {
     width: 100% !important;
   }

   .account-card {
     width: 100% !important;
     box-sizing: border-box;
     margin-right: 100px !important;
   }

   .main-header {
     width: 100%;
   }

   .categories {
     width: 95% !important;
   }

   .cardscontainer {
     width: 80%;
     max-width: 480px;
     justify-items: left !important;
     /* Optional: limit content width */
   }

   #cardsContainer {
     justify-items: left !important;
     /* ✅ Center cards in the grid */
   }

   .card {
     width: 100% !important;
     max-width: 100% !important;
     padding: 16px !important;
     margin: 10px auto !important;
     border: 1px solid #e0e0e0 !important;
     border-radius: 12px !important;
     background: #fff !important;
     box-sizing: border-box !important;
     text-align: center !important;
     overflow: hidden !important;
     /* prevents content from overflowing */
     word-wrap: break-word !important;
   }

   .card i {
     font-size: 2.2rem !important;
     margin-bottom: 10px !important;
   }

   .card h2 {
     font-size: 1.1rem !important;
     margin: 6px 0 !important;
     line-height: 1.4 !important;
   }

   .card h3 {
     font-size: 1rem !important;
     margin: 4px 0 !important;
   }

   .card-body {
     width: 100% !important;
     max-width: 100% !important;
     display: flex !important;
     justify-content: center !important;
     align-items: center !important;
     overflow: hidden !important;
   }

   .card-body canvas {
     width: 100% !important;
     max-width: 150px !important;
     height: auto !important;
   }

 }

 @media (max-width: 768px) {
   .info-grid {
     grid-template-columns: 1fr;
   }
 }

 @media (max-width: 768px) {
   #cardsContainer {
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 24px;
     padding: 0 16px;
     box-sizing: border-box;
   }

   .card {
     width: 90%;
     box-sizing: border-box;
   }
 }

 @media (max-width: 768px) {

   /* ✅ API Key Card */
   .api-key-card {
     max-height: 300px;
     padding: 16px;
     text-align: center;
     width: 100% !important;
     box-sizing: border-box;
     background-color: #fff;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
   }

   .account-card {
     width: 95% !important;
     box-sizing: border-box;
     margin: 20px 2px 0 10px !important;

   }

   .api-key {
     word-break: break-all;
     font-size: 14px;
     margin: 12px 0;
     padding: 10px;
     border: 1px solid #ccc;
     border-radius: 8px;
     background: #f9f9f9;
     /* width: 100%; */
     box-sizing: border-box;
     text-align: center;
     font-family: monospace;
     letter-spacing: 1px;
     overflow-x: auto;
     max-width: 100%;
     height: auto;
     white-space: nowrap;
   }

   .copy-btn {
     padding: 8px 12px;
     font-size: 14px;
   }

   /* ✅ Transaction Card with horizontal scroll */
   .transaction-card {
     overflow-x: auto;
     width: 100%;
     height: auto;
     padding: 16px;
     box-sizing: border-box;
     background: #fff;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
     margin-top: 20px;
     margin-bottom: 20px;
     border: 1px solid #e0e0e0;
     /* border: 1px solid black; */
   }

   .transaction-table {
     min-width: 400px;
     width: max-content;
   }

   /* Ensure bottom pagination or elements stay visible */
   .pagination {
     /* margin-top: 16px; */
     display: flex;
     flex-direction: row;
     align-items: center;
     gap: 10px;
     background: #fff;
     padding: 8px;
     border-radius: 8px;
     position: sticky;
     margin-bottom: 50px;
   }

   .pagination select {
     font-size: 14px;
     padding: 4px 8px;
   }

   .pagination .rows,
   .pagination .range,
   .pagination .nav-buttons {
     font-size: 14px;
   }
 }

 /* dashboard content cards  */
 @media (max-width: 768px) {
   .main-header h2 {
     font-size: 20px;
   }

   .tooltiptext {
     left: 40%;
     transform: translateX(-50%);
     width: 90%;
   }

   .categories {
     flex-direction: column;
     align-items: center !important;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;

   }

   .filter-container {
     flex-direction: column;
     align-items: center;
     gap: 20px;

   }

   .datetime-wrapper,
   .product-select-section {
     width: 100%;
     align-items: center;
     text-align: center;

   }

   #flatpickrInput,
   select {
     width: 90%;
     max-width: 300px;
     margin: 0 auto;
     text-align: center;
     font-size: 14px;
     padding: 8px 12px;
     border-radius: 8px;
     border: 1px solid #ccc;
     box-sizing: border-box;
     background: white;
     color: #333;

   }

   /*  work here to fix dashboard */
   .dashcardcontainer {
     width: 95vw !important;
     max-width: 100vw !important;
     grid-template-columns: 1fr !important;
     padding: 0 !important;
     box-sizing: border-box;
     margin-top: 20px;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center !important;
     text-align: center;
     /* margin-left: 255px !important; */
     margin: 20px auto;

     gap: 20px;
   }

   #dashboardCardsContainer {
     display: grid;
     grid-template-columns: 1fr !important;
     gap: 20px;
     justify-items: center !important;
     width: 95% !important;
     max-width: 100vw !important;
     box-sizing: border-box !important;
     /* margin: 0; */
     margin: 0 auto;
     padding: 0;
   }

   .card {
     width: 95% !important;
     max-width: 380px;
   }

   .transaction-card {
     width: 100%;
     overflow-x: auto;
     padding: 16px;
     box-sizing: border-box;
   }

   .transaction-table {
     width: 700px;
     /* allow horizontal scroll */
   }

   .pagination {
     flex-direction: column;
     align-items: center;
     gap: 10px;
   }

   .tooltip .tooltiptext {
     background: none;
     visibility: hidden;
   }

   .account-card {
     width: 95% !important;
     box-sizing: border-box;
     margin: 20px 2px 0 10px !important;
   }
 }

 /* Responsive Sidebar Behavior */
 @media (max-width: 768px) {
   .dashboard {
     flex-direction: column;
   }

   .sidebar {
     position: fixed;
     top: 64px;
     left: -240px;
     width: 240px;
     /* height: calc(100vh - 64px); */
   height: -webkit-fill-available;

     background: #0b0736;
     transition: left 0.3s ease;
     z-index: 999;
     border-radius: 0 16px 16px 0;
     padding-top: 20px;
   }

   .sidebar.expanded {
     left: 0;
   }

   .toggle-btn {
     display: none;
   }

   .hamburger {
     display: flex;
     align-items: center;
     justify-content: start;
     font-size: 22px;
     cursor: pointer;
     color: #0b0736;
     margin-right: auto;
   }

   .navbar {
     left: 0 !important;
     justify-content: space-between;
     padding-left: 16px;
     padding-right: 16px;
   }

   .sidebar.expanded~.main {
     margin-left: 0;
     width: 100%;
   }

   .tooltip .tooltiptext {
     background: none;
     visibility: hidden;
   }

 }

 @media (max-width: 768px) {
   .btn-docs {
     display: none !important;
   }
 }

 @media (max-width: 768px) {
   #cardsContainer {
     grid-template-columns: 1fr !important;
     gap: 16px;
     margin-top: 24px;
   }

   .main {
     margin-left: 0 !important;
     padding: 90px 8px 24px 8px;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
   }

   .cardscontainer {
     width: 100vw !important;
     max-width: 100vw !important;
     padding: 12px;
     box-sizing: border-box;
   }

   .main-header {
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
   }

   .categories {
     flex-direction: column;
     align-items: stretch;
     width: 95vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
   }

   .sidebar {
     position: fixed;
     top: 64px;
     left: -240px;
     width: 240px;
     min-width: 240px;
     height: calc(100vh - 64px);
     border-radius: 0 16px 16px 0;
     z-index: 999;
     transition: left 0.3s ease-in-out;
   }

   .sidebar.expanded ul a {

     padding: 5px !important;

   }

   .sidebar.expanded {
     left: 0;
   }

   .toggle-btn {
     display: none;
   }

   .navbar {
     left: 0 !important;
     padding: 0 8px;
     height: 64px;
     border-radius: 0;
     justify-content: space-between;
     display: flex;
     align-items: center;
     gap: 0;
   }

   .profile-card {
     right: 16px;
     width: 240px;
   }

   .sidebar.expanded~.main {
     margin-left: 0;
     width: 100vw !important;
     max-width: 100vw !important;
   }
 }

 /* media for 600px */
 @media (max-width: 600px) {
   #dashboardCardsContainer {
     grid-template-columns: 1fr !important;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
     margin: 0 auto;
     padding: 0 4px;
     gap: 12px;

   }

   .dashcardcontainer #dashboardCardsContainer .card {
     width: auto;
     grid-template-columns: 1fr !important;
   }

   #cardsContainer {
     grid-template-columns: 1fr !important;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
   }
 }

 /* media query for screen size >400 */
 @media (max-width: 400px) {
   body {
     text-align: center;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
     margin: auto;
   }

   .auth-card {
     padding: 20px;
     width: 100vw !important;
     height: 80vh;
     max-width: 95vw;
     justify-content: center;
     box-sizing: border-box;
   }

   .report-card {
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
     border-radius: 8px;
     padding: 20px;
     background: #fff;
     margin-bottom: 30px;
   }

   .queriesTable {
     width: 100% !important;

   }

   .main {
     display: flex;
     flex-direction: column;
     align-items: center;
     padding: 60px 2px 12px;
     margin-left: 0 !important;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
   }

   .main-header,
   .cardscontainer,
   .filter-container,
   .navbar,
   .profile-card {
     width: 100vw !important;
     max-width: 100vw !important;
     text-align: center;
     margin: 0 auto;
     box-sizing: border-box;
   }

   .main-header h2 {
     font-size: 18px;
     text-align: center;
   }

   .card h3,
   .card p {
     font-size: 16px !important;
     text-align: center;
   }

   .categories {
     flex-direction: column;
     align-items: stretch;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
   }

   #cardsContainer {
     grid-template-columns: 1fr !important;
     justify-items: center;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
     margin: 0 auto;
     padding: 0 4px;
   }

   .sidebar {
     border-radius: 0;
   }

   .logo-container,
   .sidebar ul,
   .sidebar ul li,
   .sidebar ul li a,
   .profile-header,
   .profile-card ul {
     align-items: left !important;
     justify-content: center !important;
     text-align: center !important;
     box-sizing: border-box;
     font-size: small;
   }

   .btn-docs {
     display: none !important;
   }

   .hamburger {
     margin-right: auto;
   }

   .ab1 {
     margin-left: auto;
   }

   /* Transaction Section */
   .transaction-card {
     width: 95vw !important;
     overflow-x: auto;
     padding: 16px;
     box-sizing: border-box;

   }

   .transaction-table {
     width: 100%;
     min-width: 400px;
     /* keeps columns readable */
     border-collapse: collapse;
   }

   .transaction-card h3 {
     font-size: 18px;
     text-align: center;
     margin-bottom: 12px;
   }

   .transaction-table th,
   .transaction-table td {
     font-size: 12px;
     padding: 8px 10px;
     text-align: center;
   }

   .categories button {
     width: fit-content;
   }

   .pagination {
     flex-direction: column;
     align-items: center;
     gap: 10px;
   }

   .pagination .rows,
   .pagination .range,
   .pagination .nav-buttons {
     font-size: 12px;
     text-align: center;
   }

   .account-card {
     width: 95% !important;
     box-sizing: border-box;
     margin: 20px 2px 0 10px !important;
   }

 }

 /* media 480px */
 @media (max-width: 480px) {
   #cardsContainer {
     grid-template-columns: 1fr;
     gap: 8px;
     margin-top: 12px;
     margin-bottom: 12px;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
     padding: 0 4px;

   }

   .main {
     margin-left: 0 !important;
     padding: 60px 4px 12px 4px;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;

   }

   .cardscontainer {
     width: 100vw !important;
     max-width: 100vw !important;
     padding: 4px;
     box-sizing: border-box;

   }

   .main-header {
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
   }

   .categories {
     flex-direction: column;
     align-items: stretch;
     width: 95vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
   }

   .sidebar {
     position: fixed;
     top: 64px;
     left: -240px;
     width: 240px;
     min-width: 240px;
     height: calc(100vh - 64px);
     border-radius: 0 16px 16px 0;
     z-index: 999;
     transition: left 0.3s ease-in-out;
   }

   .sidebar.expanded {
     left: 0;
   }

   .toggle-btn {
     display: none;
   }

   .navbar {
     left: 0 !important;
     padding: 0 20px;
     height: 64px;
     border-radius: 0;
     justify-content: space-between;
     display: flex;
     align-items: center;
     gap: 0;
   }

   .profile-card {
     right: 8px;
     width: 280px !important;
     background-color: #929dd4;
   }

   /* .profile-card:hover{
  width: auto;
} */
   .sidebar.expanded~.main {
     margin-left: 0;
     width: 100vw !important;
     max-width: 100vw !important;
   }

   .account-card {
     width: 100%;
     max-width: 100vw;
     box-sizing: border-box;
     margin: 20px auto;
     padding: 15px;
     overflow-x: auto;
   }

 }

 @media (max-width: 480px) {
   #cardsContainer {
     grid-template-columns: 1fr;
     gap: 16px;
     margin-top: 16px;
     margin-bottom: 16px;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
     padding: 0 8px;
   }

   .card {
     width: 94% !important;
     max-width: 100% !important;
     padding: 16px !important;
     margin: 10px auto !important;
     border: 1px solid #e0e0e0 !important;
     border-radius: 12px !important;
     background: #fff !important;
     box-sizing: border-box !important;
     text-align: center !important;
     overflow: hidden !important;
     /* prevents content from overflowing */
     word-wrap: break-word !important;
   }
 }


 @media (max-width: 1200px) {
   #cardsContainer {
     grid-template-columns: repeat(3, 1fr);

   }
 }

 @media (max-width: 1300px) {
   #dashboardCardsContainer {
     grid-template-columns: 1fr;
   }

   .dashcardcontainer #dashboardCardsContainer .card {
     width: auto;
     max-width: 620px;
     margin-left: auto;
     margin-right: auto;
   }
 }