 /* Prevent horizontal scroll on all screen sizes */
 html,
 body {
   width: 100%;
   min-width: 0;
   overflow-x: hidden;
 }

 body {
   margin: 0;
   font-family: "Poppins", sans-serif;
   background-color: #EDEDED;
 }

 .dashboard {
   display: flex;
   gap: 10px;
 }

 .sidebar {
   background: #2d2d2d;
   box-shadow: inset 0 0 20px 10px grey;
   color: white;
   width: 80px;
   min-width: 80px;
   height: 100vh;
   transition: width 0.3s;
   position: fixed;
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   align-items: stretch;
   /* border-radius: 16px; */
   top: 0;
   left: 0;
   z-index: 1001;
   /* overflow: hidden; */
 }

 .sidebar.expanded {
   width: 200px;
   min-width: 200px;
 }

 .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: opacity 0.3s ease-in-out;
   display: block;
 }

 /* Collapsed: show icon logo, hide full logo */
 .logo-container .logo-collapsed {
   display: block;
   margin-left: 20px;
 }

 .logo-container .logo-expanded {
   display: none;
   margin-left: 8px;
   height: 36px;
 }

 /* Expanded: hide icon logo, show full logo */
 .sidebar.expanded .logo-container .logo-collapsed {
   display: none;
 }

 .sidebar.expanded .logo-container .logo-expanded {
   display: block;
 }

 .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 6px;
   display: flex;
   flex-direction: column;
   gap: 1px;
   width: 100%;
   font-size: 20px;
   margin: 0;
 }

 .sidebar.expanded ul {
   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: 160px;
   position: relative;
   background: transparent;
   justify-content: left;
 }

 .sidebar ul li {
   width: 100%;
 }

 .sidebar ul li a {
   text-decoration: none;
   color: inherit;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   padding: 10px 10px;
   border-radius: 12px;
   transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
   position: relative;
   background: transparent;
 }

 .sidebar ul li a i {
   min-width: 24px;
   text-align: center;
   color: inherit;
   transition: color 0.25s ease;
 }

 /* Active nav card — NO padding override, keeps same size as all other links */
 .nav-active-group ul li a.active {
   border-radius: 12px !important;
   color: #ffffff !important;
   justify-content: center;
   width: auto;
 }

 .sidebar.expanded .nav-active-group ul li a.active {
   justify-content: flex-start;
   width: 160px;
   padding: 10px 0;
 }

 .nav-active-group ul li a.active i {
   color: #C62222 !important;
 }

 /* Hover state */
 /* .sidebar ul li a:hover {
   background: rgba(255, 255, 255, 0.1) !important;
   color: #ffffff !important;
 } */

 .sidebar ul li a:hover i {
   color: #C62222 !important;
 }

 .sidebar ul li .link-text {
   display: none;
 }

 .sidebar.expanded ul li .link-text {
   display: inline;
   /* text-wrap: nowrap; */
 }

 .toggle-btn {
   background: #2c2b2b;
   border: 2px solid #FFFFFF;
   color: #FFFFFF;
   font-size: 13px;
   cursor: pointer;
   border-radius: 50%;
   padding: 2px 7px;
   margin-bottom: 32px;
   align-self: flex-end;
   position: absolute;
   top: 20px;
   right: -15px;
   transition: background 0.2s;
   z-index: 2;
 }

 /* .toggle-btn:hover {
   background-color: #fff;
   color: #C62222;
   border-color: #C62222;
 } */
 .link-text {
   font-size: 15px;
 }

 .nav-hp {
   border-top: 1px solid white;
   margin-top: 10px !important;
 }

 .nav-hp a.active {
   border-radius: 12px !important;
   color: #ffffff !important;
 }

 .nav-hp a.active i {
   color: #C62222 !important;
 }

 /* ── Sidebar three-section nav groups ── */
 .sidebar-static-nav {
   display: flex;
   flex-direction: column;
   flex: 1;
   overflow: visible;
   min-height: 0;
 }

 .nav-group--above {
   background: #363636;
   border-bottom-left-radius: 16px;
   border-bottom-right-radius: 16px;
   flex-shrink: 0;
   padding-bottom: 10px;
 }

 .nav-active-group {
   background: transparent;
   padding: 8px 8px;
   flex-shrink: 0;
   display: flex;
   justify-content: center;
 }

 .sidebar.expanded .nav-active-group {
   justify-content: flex-start;
   padding: 8px 14px;
 }

 .nav-group--below {
   background: #363636;
   border-top-left-radius: 16px;
   border-top-right-radius: 16px;
   flex: 1;
   display: flex;
   flex-direction: column;
   padding-top: 10px;
   overflow: visible;
 }

 /* Logout button inside nav-group--below */
 .nav-logout>a,
 .nav-logout form>a {
   background: #E9E9E9 !important;
   color: #C62222 !important;
   border-radius: 10px !important;
   margin: 0 8px;
   width: auto !important;
 }

 .nav-logout>a i,
 .nav-logout form>a i {
   color: #C62222 !important;
 }

 .nav-logout>a:hover,
 .nav-logout form>a:hover {
   background: #fde8e8 !important;
 }


 /* Try-now dynamic sidebar: same dark group styling */
 #dynamicSidebarLinks {
   background: #363636;
   border-radius: 16px;
   flex: 1;
   overflow-y: auto;
   overflow-x: hidden;
   scrollbar-width: thin;
   scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
   padding-top: 30px;
   padding-bottom: 30px;
 }

 #dynamicSidebarLinks .api-link.active {
   background: rgb(255 255 255 / 31%) !important;
   border-radius: 12px !important;
   color: #ffffff !important;
 }

 #dynamicSidebarLinks .api-link.active i {
   color: #C62222 !important;
 }

 .navbar {
   position: fixed;
   right: 0;
   left: 90px;
   height: 64px;
   background: white;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 0 24px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
   z-index: 1000;
   gap: 12px;
   margin-top: 1px;
   border-radius: 56px;
 }

 .navbar-left {
   display: flex;
   align-items: center;
   gap: 12px;
 }

 .navbar-right {
   display: flex;
   align-items: center;
   gap: 12px;
 }

 .page-title {
   font-size: 16px;
   font-weight: 600;
   color: #1a1a2e;
 }

 .profile-wrapper {
   position: relative;
 }

 .profile-trigger {
   display: flex;
   align-items: center;
   gap: 8px;
   background: none;
   border: none;
   cursor: pointer;
   padding: 6px 10px;
   border-radius: 30px;
   transition: background 0.2s;
 }

 .profile-trigger:hover {
   background: #f0f0f0;
 }

 .profile-icon {
   font-size: 28px;
   color: #363636;
 }

 .profile-name {
   font-size: 14px;
   font-weight: 600;
   color: #1a1a2e;
 }

 .profile-chevron {
   font-size: 12px;
   color: #555;
 }

 .sidebar.expanded~.navbar {
   left: 220px;
 }

 .api-status {
   background: #363636;
 }

 .api-docs {
   background-color: #C43737;
 }

 .api-balance {
   background-color: #3B5691;
 }

 .btn-docs {
   /* background: #0b0736; */
   color: white;
   border: none;
   border-radius: 10px;
   padding: 8px 18px;
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 13px;
   font-weight: 500;
   cursor: pointer;
   text-decoration: none;
 }

 .btn-docs i {
   font-size: 14px;
   line-height: 1;
   display: inline-flex;
   align-items: center;
 }


 .profile-card ul {
   list-style: none;
   margin-top: 10px;
   padding: 0;
 }

 .profile-card ul li {
   display: block;
   border-radius: 6px;
   transition: background 0.2s;
 }

 .profile-card ul li:hover {
   background-color: #ebebeb;
 }

 .profile-card ul li a,
 .profile-card ul li form button {
   display: flex;
   align-items: center;
   gap: 10px;
   width: 100%;
   padding: 10px 15px;
   font-size: 14px;
   color: #1a1a2e;
   text-decoration: none;
   background: none;
   border: none;
   cursor: pointer;
   border-radius: 6px;
   box-sizing: border-box;
   transition: color 0.2s;
   white-space: nowrap;
 }

 .profile-card ul li form {
   display: block;
   margin: 0;
   padding: 0;
 }

 .profile-card ul li:hover a,
 .profile-card ul li:hover form button {
   color: #0A043C;
 }

 .profile-card ul li i {
   width: 16px;
   text-align: center;
   color: #6B7280;
   flex-shrink: 0;
   font-size: 14px;
 }

 .profile-card ul li:hover i {
   color: #0A043C;
 }

 .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;
   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 0px 20px 20px;
   width: calc(100% - 100px);
   max-width: 100vw;
   box-sizing: border-box;
   transition: margin-left 0.3s;
 }

 .sidebar.expanded~.main {
   width: calc(100% - 220px);
   margin-left: 210px;
   max-width: 100vw;
 }

 .main-header {
   margin-top: 24px;
   margin-bottom: 8px;
 }

 .main-header h2 {
   font-size: 1.5rem;
   font-weight: 700;
 }

 .categories {
   display: flex;
   flex-wrap: nowrap;
   overflow-x: auto;
   gap: 8px;
   padding: 20px 16px;
   background: #fff;
   border-radius: 14px;
   box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
   scrollbar-width: none;
 }

 .categories::-webkit-scrollbar {
   display: none;
 }

 .categories button {
   white-space: nowrap;
   font-size: 15px;
   padding: 14px 20px;
   border-radius: 10px;
   border: none;
   color: #C62222;
   font-weight: 500;
   cursor: pointer;
   background-color: #F2F2F2;
   transition: background 0.15s, color 0.15s;
 }

 .categories button:hover {
   background: #FEF2F2;
 }

 .categories button.active {
   background: #363636;
   color: #FFFFFF;
 }

 .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: none !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;
 }

 /* --- CARD --- */
 .card {
   background: #fff;
   border: 1px solid #f0f0f0;
   border-radius: 18px;
   padding: 20px;
   /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07); */
   /* transition: box-shadow 0.3s ease; */
   display: flex;
   flex-direction: column;
   justify-content: space-between;
 }

 /* .card:hover {
   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11);
 } */

 .card-top-row {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   margin-bottom: 14px;
 }

 .card-icon-circle {
   width: 48px;
   height: 48px;
   border-radius: 50%;
   background: #C4373733;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
 }

 .card-icon-circle i {
   font-size: 22px;
   color: #E53E3E;
 }

 /* 3-dot menu */
 .card-menu-wrap {
   position: relative;
 }

 .card-menu-btn {
   background: none;
   border: none;
   cursor: pointer;
   font-size: 18px;
   color: #363636;
   padding: 2px 6px;
   border-radius: 6px;
   line-height: 1;
   letter-spacing: 2px;
   font-weight: 700;
 }

 .card-menu-btn:hover {
   background: #f3f4f6;
   color: #374151;
 }

 .card-menu-dropdown {
   display: none;
   position: absolute;
   top: calc(100% + 4px);
   right: 0;
   background: #fff;
   border: 1px solid #e5e7eb;
   border-radius: 8px;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
   z-index: 200;
   min-width: 100px;
   overflow: hidden;
 }

 .card-menu-dropdown.open {
   display: block;
 }

 .card-menu-dropdown button {
   display: block;
   width: 100%;
   padding: 9px 14px;
   background: none;
   border: none;
   text-align: left;
   cursor: pointer;
   font-size: 13px;
   color: #374151;
   transition: background 0.15s;
 }

 .card-menu-dropdown button:hover {
   background: #f3f4f6;
 }

 /* Add New Card tile */
 .card-add-new {
   align-items: center;
   justify-content: center;
   cursor: pointer;
   border: 2px dashed #e5e7eb;
   background: #fafafa;
   text-align: center;
 }

 .card-add-new:hover {
   border-color: #E53E3E;
   background: #FFF5F5;
 }

 .card-add-circle {
   width: 80px;
   height: 80px;
   border-radius: 50%;
   background: #FEE2E2;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 14px;
 }

 .card-add-circle i {
   font-size: 30px;
   color: #E53E3E;
 }

 .card-add-new h3 {
   font-size: 16px;
   font-weight: 700;
   color: #1a1a2e;
   margin: 0 0 8px;
 }

 .card-add-new p {
   font-size: 12px;
   color: #9CA3AF;
   margin: 0;
   line-height: 1.5;
 }

 .card h3 {
   margin: 0 0 4px;
   font-size: 16px;
   font-weight: 700;
   color: #1a1a2e;
 }

 .card p {
   margin: 0 0 4px;
   color: #9CA3AF;
   font-size: 13px;
 }

 .card .price {
   font-weight: 700;
   color: #234CE3;
   margin-top: 10px;
   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: 13px;
 }

 .btn-view {
   background: #f3f4f6;
   color: #374151;
 }

 .btn-try {
   background: #363636;
   color: #ffffff;
   font-size: 14px;
   font-weight: 500;
 }

 .btn-view:hover {
   background: #e5e7eb;
 }

 .btn-try:hover {
   background: #363636;
 }

 /* 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: 20px !important;
   font-size: 22px;
 }

 /* info*/
 .tooltip {
   position: relative;
   display: inline-block;
   cursor: pointer;
   opacity: 1;
 }

 .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%;
   margin-left: 10px;
   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 --- */
 .card {
   background: #fff;
   border: 1px solid #8B8B8B;
   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: 21px;
   color: #C43737;
   /* margin-bottom: 12px; */
 }

 .card h3 {
   margin: 8px 0;
   font-size: 18px;
   font-weight: 500;
   color: #000000;
 }

 .card p {
   margin: 4px 0;
   color: #363636;
   font-size: 15px;
 }

 /* --- API Explorer Specific Card Layout --- */
 #cardsContainer {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 24px;
   margin-top: 46px;
 }

 #dashboardCardsContainer {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 20px;
 }

 .dashcardcontainer #dashboardCardsContainer .card {
   margin-top: 40px;
   padding: 30px;
   width: 620px;
   height: 400px;
   text-align: center;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
 }

 .dashcardcontainer .card h2,
 .dashcardcontainer .card h3 {
   font-size: 1rem;
   font-weight: 600;
 }

 /* 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;
 }

 /* .report-card h3{

} */
 .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 {
   display: flex;
   flex-wrap: nowrap;
   overflow-x: auto;
   gap: 8px;
   padding: 20px 16px;
   background-color: white;
   border-radius: 14px;
   box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
   scrollbar-width: none;
 }

 .account-tabs .tab-btn {
   padding: 14px 20px;
   margin: 0;
   border-radius: 10px;
   font-size: 15px;
   font-weight: 500;
 }

 .account-card h3,
 .report-card h3 {
   color: #000000;
   font-size: 20px;
   font-weight: 500;
 }

 .subtext {
   color: #8B8B8B;
   font-size: 14px;
   font-weight: 500;
   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;
 }

 .status-disabled {
   background-color: #fde8e8;
   color: #991b1b;
   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: #F2F2F2;
   font-weight: 600;
   font-size: 15px;
   padding: 15px 20px;
   margin: 10px;
   border-radius: 16px;
   cursor: pointer;
   color: #C62222;
   transition: 0.3s ease;
   border: 1px solid transparent;
 }

 .tab-btn.active {
   background-color: #363636;
   color: #FFFFFF;
   /* 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;
 }

 /* ── Hello Card (shared across pages) ──────────────────────────────────── */
 .hello-card {
   position: relative;
   background: linear-gradient(135deg, #9B1C1C 0%, #7F1D1D 100%);
   border-radius: 16px;
   /* padding: 22px 50px 22px 24px; */
   padding: 15px;
   color: #FFFFFF;
   margin-bottom: 16px;
   max-width: 380px;
 }

 .hello-card__title {
   font-size: 16px;
   font-weight: 500;
   margin: 0 0 10px 0;
   color: #fff;
 }

 .hello-card__subtitle {
   font-size: 14px;
   font-weight: 500;
   color: rgba(255, 255, 255, 0.88);
   line-height: 1.5;
   margin: 0;
 }

 .hello-card__info {
   position: absolute;
   top: 14px;
   right: 14px;
   color: #ffffff;
   font-size: 20px;
   cursor: pointer;
   z-index: 10;
   line-height: 1;
 }

 .hello-card__info .tooltiptext {
   left: 100% !important;
   right: auto !important;
   top: 0 !important;
   transform: none !important;
   margin-left: 10px !important;
   min-width: 260px;
   max-width: 340px;
   white-space: normal !important;
   z-index: 200;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
 }

 .hello-card {
   padding-right: 42px;
 }

 /* ── Category bar (Explorer) ────────────────────────────────────────────── */
 .cat-bar {
   display: flex;
   flex-direction: column;
   gap: 10px;
   background: #fff;
   border-radius: 14px;
   padding: 12px 16px;
   box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
   margin-bottom: 16px;
 }

 .cat-bar__top {
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 100%;
 }

 .cat-bar__left {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-shrink: 0;
 }

 .cat-bar__label {
   font-size: 13.5px;
   font-weight: 700;
   color: #111827;
   white-space: nowrap;
 }

 .cat-bar__pills {
   display: flex;
   flex-wrap: nowrap;
   overflow-x: auto;
   gap: 1px;
   width: 100%;
   align-items: center;
   scrollbar-width: none;
   box-shadow: none !important;
   transform: none !important;
   padding: 8px 10px 4px;
   margin: 0;
   border-radius: 0;
   overflow-y: visible;
 }

 .cat-bar__pills::-webkit-scrollbar {
   display: none;
 }

 .cat-bar__pills.expanded {
   flex-wrap: wrap;
 }

 /* Override generic .categories styles inside the bar */
 .cat-bar__pills.categories {
   box-shadow: none !important;
   transform: none !important;
 }

 .cat-bar__pills.categories:hover {
   box-shadow: none !important;
   transform: none !important;
 }

 /* Pills inside the bar */
 .cat-bar__pills .tab-btn {
   background: #F2F2F2;
   border: none;
   color: #C62222;
   border-radius: 10px;
   padding: 14px 20px;
   font-size: 15px;
   font-weight: 500;
   cursor: pointer;
   white-space: nowrap;
   transition: background 0.15s, color 0.15s;
   display: inline-flex;
   align-items: center;
   gap: 4px;
   position: relative;
 }

 .cat-bar__pills .tab-btn:hover {
   background: #FEF2F2;
 }

 .cat-bar__pills .tab-btn.active {
   background: #363636;
   color: #fff;
   border-color: #363636;
 }

 .cat-bar__right {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-shrink: 0;
 }

 .cat-filter-wrap {
   position: relative;
 }

 .cat-filter-btn {
   background: none;
   border: none;
   padding: 4px 6px;
   cursor: pointer;
   color: #6B7280;
   display: flex;
   align-items: center;
   border-radius: 6px;
   transition: background 0.15s, color 0.15s;
 }

 .cat-filter-btn:hover,
 .cat-filter-btn.active {
   background: #f3f4f6;
   color: #111827;
 }

 .cat-filter-btn i {
   color: #000000;
 }

 .cat-filter-dropdown {
   display: none;
   position: absolute;
   top: calc(100% + 6px);
   left: 0;
   background: #fff;
   border: 1px solid #e5e7eb;
   border-radius: 8px;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
   z-index: 300;
   min-width: 110px;
   overflow: hidden;
 }

 .cat-filter-dropdown.open {
   display: block;
 }

 .cat-filter-opt {
   display: flex;
   align-items: center;
   gap: 8px;
   width: 100%;
   padding: 9px 14px;
   background: none;
   border: none;
   cursor: pointer;
   font-size: 13px;
   color: #374151;
   text-align: left;
   transition: background 0.15s;
 }

 .cat-filter-opt:hover {
   background: #f3f4f6;
 }

 .cat-filter-opt.active {
   background: #FEF2F2;
   color: #9B1C1C;
   font-weight: 600;
 }

 .cat-action-icon {
   position: absolute;
   top: -8px;
   right: -8px;
   width: 20px;
   height: 20px;
   border-radius: 50%;
   background: #E53E3E;
   color: #ffffff;
   font-size: 12px;
   line-height: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
   transition: background 0.15s, transform 0.1s;
   z-index: 10;
   padding: 0;
 }

 .cat-action-icon {
   padding: 3px;
 }

 .cat-action-icon i {
   line-height: 1;
   display: block;
   margin: 0;
   padding: 0;
 }

 /* .cat-action-icon:hover { background: #9B1C1C; transform: scale(1.15); } */
 .cat-add-btn {
   background: #C43737;
   color: #ffffff;
   border: none;
   border-radius: 6px;
   padding: 6px 16px;
   font-size: 12.5px;
   font-weight: 600;
   cursor: pointer;
   white-space: nowrap;
   transition: background 0.2s;
 }

 .cat-add-btn:hover {
   background: #7F1D1D;
 }

 .cat-chevron-btn {
   background: none;
   border: none;
   padding: 4px 6px;
   cursor: pointer;
   color: #6B7280;
   border-radius: 6px;
   transition: background 0.15s;
 }

 .cat-chevron-btn:hover {
   background: #f3f4f6;
 }

 /* ── DataTable – global styles (matches dashboard design) ─────────────── */
 table.dataTable {
   border-collapse: collapse !important;
   width: 100% !important;
   font-family: "Poppins", sans-serif;
 }

 table.dataTable thead th {
   background-color: #9B1C1C !important;
   color: #ffffff !important;
   font-weight: 600 !important;
   font-size: 13px !important;
   padding: 14px 16px !important;
   border: none !important;
   white-space: nowrap;
 }

 /* hide default sort arrows */
 table.dataTable thead th.sorting::before,
 table.dataTable thead th.sorting::after,
 table.dataTable thead th.sorting_asc::before,
 table.dataTable thead th.sorting_asc::after,
 table.dataTable thead th.sorting_desc::before,
 table.dataTable thead th.sorting_desc::after {
   display: none !important;
 }

 table.dataTable tbody tr td {
   padding: 13px 16px !important;
   font-size: 13px !important;
   color: #111827;
   border-top: 1px solid #F3F4F6 !important;
   border-bottom: none !important;
   vertical-align: middle;
 }

 table.dataTable.no-footer {
   border-bottom: 1px solid #F3F4F6 !important;
 }

 table.dataTable tbody tr:hover td {
   background-color: #FFF5F5 !important;
 }

 /* Length / search controls */
 /* .dataTables_length {
  padding: 16px 16px 0;
} */

 .dataTables_wrapper .dataTables_length label,
 .dataTables_wrapper .dataTables_filter label {
   font-size: 13px;
   color: #374151;
   font-weight: 500;
   font-family: "Poppins", sans-serif;
   margin-bottom: 20px;
 }

 .dataTables_wrapper .dataTables_length select,
 .dataTables_wrapper .dataTables_filter input {
   border: 1.5px solid #D1D5DB !important;
   border-radius: 6px !important;
   padding: 5px 10px !important;
   font-size: 13px !important;
   font-family: "Poppins", sans-serif;
   outline: none;
   color: #374151;
   margin: 0 4px;
 }

 .dataTables_wrapper .dataTables_length select {
   /* padding: 5px 40px !important; */
   width: 200px !important;
   align-items: left !important;
 }

 .dataTables_wrapper .dataTables_filter input:focus {
   border-color: #9B1C1C !important;
   box-shadow: 0 0 0 3px rgba(155, 28, 28, 0.08);
 }

 /* Info text */
 .dataTables_wrapper .dataTables_info {
   font-size: 13px !important;
   color: #6B7280;
   padding-top: 14px !important;
   font-family: "Poppins", sans-serif;
 }

 /* Pagination */
 .dataTables_wrapper .dataTables_paginate {
   padding-top: 10px !important;
 }

 .dataTables_wrapper .dataTables_paginate .paginate_button {
   border-radius: 6px !important;
   padding: 4px 11px !important;
   font-size: 13px !important;
   border: 1px solid #D1D5DB !important;
   color: #374151 !important;
   margin: 0 2px;
   font-family: "Poppins", sans-serif;
 }

 .dataTables_wrapper .dataTables_paginate .paginate_button.current,
 .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
   background: #9B1C1C !important;
   border-color: #9B1C1C !important;
   color: #fff !important;
 }

 .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
   background: #FEF2F2 !important;
   border-color: #9B1C1C !important;
   color: #9B1C1C !important;
 }

 .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
 .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
   color: #D1D5DB !important;
   background: transparent !important;
   border-color: transparent !important;
 }

 .form-group.full-width {
   grid-column: span 2;
 }

 .btn-generate {
   background-color: #C43737;
   color: #FFFFFF;
   border: none;
   font-size: 16px;
   padding: 10px 20px;
   font-weight: 500;
   border-radius: 8px;
   cursor: pointer;
 }

 /* wallet */
 .wallet-container {
   margin-top: 20px;
   border-radius: 12px;
 }

 .wallet-container:hover {
   box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
 }

 .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;
 }

 .wallet-card h3 {
   color: #000000;
   font-size: 20px;
   font-weight: 500;
 }

 .balance-card {
   border-left: 6px solid #130A4D;
 }

 .form-grid {
   display: flex;
   flex-wrap: wrap;
   gap: 34px;
   max-width: 750px;
 }

 .form-group {
   flex: 1 1 300px;
   max-width: 310px;
 }

 .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;
 }

 .status-disabled {
   background-color: #fde8e8;
   color: #991b1b;
   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: #110e0e;
   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, visibility 0.2s ease-in-out;
   z-index: 9999;
   margin-left: 10px;
   pointer-events: none;
 }

 .sidebar:not(.expanded) ul li a:hover .tooltip-label {
   opacity: 1;
   visibility: visible;
 }

 .tooltip-label::after {
   content: '';
   position: absolute;
   top: 50%;
   left: -6px;
   transform: translateY(-50%);
   border-width: 6px;
   border-style: solid;
   border-color: transparent #110e0e transparent transparent;
 }

 /* ---------------- End Tooltip Styling ------------- */
 #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;
   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;
   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;
 }


 .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 15px rgba(118, 117, 117, 0.556);
   width: 100%;
   max-width: 420px;
   text-align: center;
 }

 .auth-logo {
   text-align: center;
   margin-left: 125px;
   margin-top: 22px;
 }

 .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: grid;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   min-height: 100%;
   width: 100%;
   padding: 40px;
   background: #f9f9f9;
   box-sizing: border-box;
 }

 .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;
 }

 .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;
 }

 .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;
 }

 .form-row {
   display: flex;
   gap: 12px;
 }

 .form-group.half {
   flex: 1;
 }

 @media (max-width: 768px) {
   .auth-box {
     padding: 24px;
     max-width: 90%;
   }

   .hello-card {
     margin: 20px auto;
     width: 98%;
   }
   
 }

 @media (max-width: 480px) {
   .auth-container {
     padding: 10px;
   }

   .auth-box {
     padding: 16px;
     border-radius: 8px;
     max-width: -webkit-fill-available;
   }

   .form-row {
     flex-direction: column;
     gap: 0;
   }

   .form-group.half {
     width: 100%;
   }

   .auth-form input {
     font-size: 14px;
     padding: 8px 10px;
   }

   .btn-auth {
     font-size: 15px;
     padding: 10px;
   }
 }

 .form-row {
   display: flex;
   gap: 12px;
   flex-wrap: wrap;
 }

 .form-group.half {
   flex: 1;
   min-width: 0;
 }

 @media (max-width: 480px) {
   .form-row {
     flex-direction: column;
     gap: 0;
   }

   .form-group.half {
     width: 100%;
   }
 }

 .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 {
   display: none;
   position: fixed;
   z-index: 999;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
 }

 .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-btn {
   float: right;
   font-size: 22px;
   cursor: pointer;
   color: #555;
 }

 .close-btn:hover {
   color: #000;
 }

 .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;
 }

 @keyframes fadeIn {
   from {
     opacity: 0;
     transform: scale(0.9);
   }

   to {
     opacity: 1;
     transform: scale(1);
   }
 }

 .card-icons {
   text-align: left;
   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;
   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: 70px 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: -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 page 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: 98% !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;
   }

   .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;
   }

   #cardsContainer {
     justify-items: left !important;
   }

   .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;
     word-wrap: break-word !important;
   }

   .card i {
     font-size: 1.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;
   }

   .dashboard-top-row {
     flex-direction: column;
     align-items: stretch;
     gap: 16px;
   }

 }

.dashboard-top-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

 @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 {
     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;
     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;
   }

   .transaction-table {
     min-width: 400px;
     width: max-content;
   }

   .pagination {
     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;

   }

   .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: 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 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;
   }

   .pagination {
     flex-direction: column;
     align-items: center;
     gap: 10px;
   }

   .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: -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%;
   }

 }

 @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: 96vw !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 (max-width: 400px) {
   body {
     text-align: center;
     width: 100vw !important;
     max-width: 100vw !important;
     box-sizing: border-box;
     margin: 0;
     padding: 0;

   }

   .auth-card {
     width: 85vw;
     max-width: 100vw;
     padding: 20px 15px;
     min-height: auto;
   }

   .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-card {
     width: 95vw !important;
     overflow-x: auto;
     padding: 16px;
     box-sizing: border-box;

   }

   .transaction-table {
     width: 100%;
     min-width: 400px;
     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 (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;
   }

   .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;
     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;
   }
 }

/* ===== Custom Dropdown ===== */
.custom-dropdown {
  position: relative;
  width: 220px;
  font-size: 14px;
  user-select: none;
}
.custom-dropdown__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #1F2937;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
 .custom-dropdown__trigger{
  border: 1px solid #ccc;
  border-radius: 8px;
}
.custom-dropdown__trigger:hover,
.custom-dropdown__trigger:focus {
  border-color: #0A043C;
  box-shadow: 0 2px 4px #a8a6a6;
  outline: none;
}
.custom-dropdown__selected {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-dropdown__arrow {
  font-size: 14px;
  color: #000000;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.custom-dropdown__arrow.rotated { transform: rotate(180deg); }
.custom-dropdown__panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 999;
  overflow: hidden;
  animation: dropFade 0.15s ease;
}
.custom-dropdown__panel.open { display: block; }
@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.custom-dropdown__search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #F3F4F6;
}
.custom-dropdown__search-icon { color: #9CA3AF; font-size: 13px; flex-shrink: 0; }
.custom-dropdown__search {
  border: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: #374151;
  background: transparent;
}
.custom-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #E5E7EB transparent;
}
.custom-dropdown__item {
  padding: 9px 14px;
  cursor: pointer;
  color: #374151;
  transition: background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-dropdown__item:hover { background: #F3F4F6; color: #0A043C; }
.custom-dropdown__item.active { background: #EEF2FF; color: #0A043C; font-weight: 600; }

/* ── SweetAlert2 Theme ──────────────────────────────────────────── */
.swal2-popup {
  font-family: 'Poppins', sans-serif !important;
  border-radius: 16px !important;
  padding: 32px 28px 24px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
}

.swal2-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #1a1a2e !important;
}

.swal2-html-container {
  font-size: 14px !important;
  color: #374151 !important;
  font-family: 'Poppins', sans-serif !important;
}

.swal2-actions {
  gap: 10px !important;
  margin-top: 20px !important;
}

.swal2-confirm {
  background-color: #9B1C1C !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 9px 24px !important;
  box-shadow: none !important;
}

.swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(155,28,28,0.25) !important;
}

.swal2-cancel {
  background-color: #f3f4f6 !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 9px 24px !important;
  box-shadow: none !important;
}

.swal2-deny {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 9px 24px !important;
  box-shadow: none !important;
}

.swal2-icon.swal2-error {
  border-color: #9B1C1C !important;
  color: #9B1C1C !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
  background-color: #9B1C1C !important;
}

.swal2-icon.swal2-warning {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
}

.swal2-timer-progress-bar {
  background: #9B1C1C !important;
}
.custom-dropdown__empty { padding: 10px 14px; font-size: 13px; color: #9CA3AF; text-align: center; }