
/* Custom Styles for QR Wallet */
:root {
    --blue: #0d6efd;
    --lightblue: #2da1ee;

    --green: #198754;
    --lightgreen: #a4ee95;

    --yellow: #ffc107;
    --lightyellow: #faef88;

    --orange: #ff4d07;
    --lightorange: #fc8353;

    --red: #ff0000;
    --lightred: #ff4949;

    --gray: #7e7e7e ;
    --lightgray: #cccccc ;
    --darkgray: #4b4b4b ;

    --bgthemes: #15c7b8;
    --lightbgthemes: #65d4cb;
 
    --dark:  #202020; 
    --puredark:  #000;
    --white: #fff; 
    --darkwhite: #e9ecef; 

    --hover:#e4fffd;
}


small.currency{
    font-size: 14px;
    color: var(--orange);
    font-weight: 600;
    padding: 0;
    margin: 0;
}
strong.currency{
    font-size: 20px;
    color: var(--orange);
    font-weight: 600;
    padding: 0;
    margin: 0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: none;

}

.screen-debug{
    display: flex;
    justify-content: center;
    background-color: #fff;
    z-index: 9000;
    position: relative;
    font-size: 16px;
    padding: 5px;
    color: red;
    width:300px;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color:var(--dark);   
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
.bg-theme{
    background-color: var(--bgthemes) ;
}
.bg-lights{
    background-color: var(--lightblue) ;
}
.text-theme{
    a{
      color: var(--white);    
    }
    .dropdown-menu a{
      color:var(--dark);   
    }
}
.bg-blue {
    background-color:var(--blue);
}
.bg-redorange, .bg-voucher{
    background: linear-gradient(45deg, var(--orange),var(--yellow));
}

.logo-title{
    color: var(--white);
}
.text-orange{
    color: var(--orange);
}
.success {
    background: #e6f4ea; 
    color: var(--green);
}

.reject{
    background: #fda399;
    color: var(--red);
}

.process {
    background: #fff3cd;
    color: var(--orange);
}

.pending{
    background: #e9ecef;
    color: var(--darkgray);
}
.hidden{
    display: none;
}
.w100{
    width: 100px;
}
.badge-status {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    text-transform: capitalize;
}
.badge-default {
    border-radius: 15px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    text-transform: capitalize;
    padding: 5px 10px;
}

.badge-active{
    color: var(--white);
    background-color: var(--green);
}
.badge-used {
    color: var(--white);
    background-color: var(--darkgray);
}
.badge-expired {
    color: var(--white);
    background-color: var(--red);
}
/* Make sure toast appears above everything */
.swal2-container {
    z-index: 9999 !important;
}

/* Optional: custom color for success toast text */
.swal2-success-toast .swal2-title {
    color: #15c7b8; /* your green/teal */
}

/* Margin from top if needed */
.swal2-toast {
    margin-top: 60px !important;
}
.swal-toast-success-top {
    margin-top: 60px !important;
    color: var(--green);

}
/* =========================
   MAIN LAYOUT
========================= */
.main-body {
    background: var(--darkwhite, #f5f5f5);
    font-family: 'Segoe UI', sans-serif;
    border: none;
    height: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray) transparent;

}

.main-container {
    padding: 30px 20px;
    max-width: 1200px;
    margin: auto;
    height: 100vh;
    border: none;   
}

/* Scrollbar */
.main-body::-webkit-scrollbar {
    width: 2px;
}

.main-body::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 20px;
}

.main-body::-webkit-scrollbar-track {
    background: transparent;
}

/* ----------------------------- */
/*  COMING SOON */
/* ----------------------------- */

.coming-soon {
    text-align: center;
    color: #15c7b8;
    font-size: 2rem;
    font-weight: bold;
    padding: 40px 20px;
    margin: 50px auto;
    border: 2px dashed #15c7b8;
    border-radius: 12px;
    max-width: 300px;
}

/* =========================
   NAVBAR BASE
========================= */

.navbar{
    padding:12px 25px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
    position:sticky;
    top:0;
    z-index:9900;
    height: 60px;
    opacity: 1;

}
/* wrapper */
.navbar-wrap{
    display:flex;
    justify-content: center;
    align-items:center;

    left: 0;
    width: 1200px;
    margin: 0 auto;
    padding:0;
    gap: 0;

}
.navbar-dropdown{
    display:flex;
    left: 0;
    margin: 0;
    padding:0;
    position: absolute;
}
/* =========================
   BRAND AREA
========================= */
.navbar-header{
    display:flex;
    justify-content: flex-start;
    align-items:center;
    gap:5px;
    width: 35%;
}

.navbar-brand{
    display:flex;
    justify-content: center;
    align-items:center;
    gap:0;
    font-size:20px;
    font-weight:700;
    color:var(--white);
}

.navbar-brand img{
    display: block;
    height:80px;
    width:auto;
    object-fit:contain;
}

/* tagline */
.navbar-tagline h5{
    margin:0;
    font-size:18px;
    opacity:.8;
    color:var(--white);
    left: 0;
    margin-left: -25px;
}
/* tagline */
.no-tagline h5{
    margin:0;
    left: 0;
    padding: 0;
    position: absolute;
}
/* /* =========================
   NAV LINKS
========================= */

/* menu button area */
.navbar-menu{
    display:flex;
    align-items:center;
    justify-content: flex-end;
    gap: 5px !important;
}
.nav-item{
    list-style: none;
    text-decoration: none;
    align-items: center;
}
.nav-link{
    font-size:15px;
    font-weight:500;
    padding:8px 12px !important;
    border-radius:8px;
    transition:.25s;
    display:flex;
    align-items:center;
    width: 100%;
    margin-left: 2px;
    cursor: pointer;
}


/* hover */
 .nav-link:hover{
    background:rgba(255,255,255,0.12);
    color:var(--white) !important;
    cursor: pointer;
}

/* active */
 .nav-link.active{
    background:rgba(255,255,255,0.18);
    color:var(--white) !important;
}

.sidebar-link.active {
    width: 250px;
}

.navbar .active {
    display: block;
}
/* =========================
   CART BADGE
========================= */
.cart-link{
    position: relative;
    display: inline-block;
    align-items: center;
}

.cart-badge{
    position: absolute;
    top: -12px;
    right: -10px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}


/* =========================
   SEARCH INPUT
========================= */
/* SECTION */

/* Default search bar */
.section-search {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    padding: 0px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* WRAPPER */
.search-wrapper {
    position: relative;
    min-width: 350px;
}

/* INPUT */
.search-input {
    width: 100%;
    height: 38px;
    padding: 8px 40px 8px 35px; 
    border-radius: 10px;
    border: 1px solid var(--darkwhite);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-size: 14px;
    outline: none;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* SEARCH ICON (LEFT) */
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--gray);
    pointer-events: none;
}

/* CLEAR BUTTON (RIGHT) */
.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--gray);
    cursor: pointer;
    display: none;
    z-index: 2;
}

/* SHOW CLEAR BUTTON */
.search-wrapper:hover .clear-search,
.search-input:focus + .clear-search {
    display: inline-block;
}

/* HOVER EFFECT */
.clear-search:hover {
    color: red;
}

/* ERROR MESSAGE */
.error-wrapper {
    width: 100%;
    text-align: center;
    margin-top:100px;
    position: absolute;
}

.no-result-error {
    color: red;
    font-size: 14px;
    display: none;
}

/* =========================
   CART BADGE
========================= */

.cart-link{
    position: relative;
}
.cart-badge{
    background:var(--red);
    color: var(--white);
    padding:2px 7px;
    border-radius:50px;
    font-size:12px;
    position: relative;
    margin-left:-8px;
    margin-top: -20px;
}

/* =========================
   TOGGLER
========================= */
.navbar-toggler{
    border:none;
    outline:none;
    box-shadow:none !important;
}

.btn{
    padding:8px 18px;
    font-weight: 600;
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
   
    border: none;
    border-radius: 6px;

    transition: all 0.3s ease;
    text-decoration: none;

    display:inline-block;
    align-items: center; 
    justify-content: center;
    line-height: 1; 
}

.btn-small{
    padding:5px 15px;
    font-weight: 600;
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
   
    border: none;
    border-radius: 6px;

    transition: all 0.3s ease;
    text-decoration: none;

    display:inline-block;
    align-items: center; 
    justify-content: center;
    line-height: 1; 
}
.btn-defaults {
    height: 35px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 5px;
    padding: 0 8px;

    display: flex;
    align-items: center; 
    justify-content: center;
    line-height: 1; 
}
.btn-primary {
    background: var(--blue);
    padding: 8px 18px;
}

.btn-primary:hover {
    background: var(--lightblue);
}

.btn-continue{
    display:block;
    text-align:center;
    padding:10px;
    margin-bottom:10px;
    border-radius:8px;
    background: var(--blue);
    color: var(--white);
    text-decoration:none;
}

.btn-checkout{
    display:block;
    text-align:center;
    padding:10px;
    border-radius:8px;
    font-weight:600;
    text-decoration:none;
    background: var(--blue);
    color: var(--white);
}  
.btn-checkout:hover {
    background: var(--lightblue);
}
.btn-shopping {
    background: var(--yellow);
    padding:8px 18px;
}

.btn-shopping:hover {
    background: var(--lightyellow);

}


.button-actions{
    display: grid;
    gap: 10px;
}
.btn-danger {
    background: var(--red);
    padding:8px 18px;
}

.btn-danger:hover {
    background: var(--lightred);
}

.btn-dark {
    background: var(--puredark);
    padding:8px 18px;
}
.btn-dark:hover {
    background: var(--gray);
}

.btn-remove{
    padding:8px 18px;
    background: var(--red);
}
.btn-remove:hover{
    background: var(--lightred);
}

.btn-delete{
    color: var(--red);
}
.btn-delete:hover{
    color: var(--lightred);
}

.btn-save{
    background: var(--bgthemes);
    padding: 8px 18px;
}
.btn-save:hover {
    background:var(--lightbgthemes);
}
.btn-add{
    background: var(--blue);
    padding: 8px 18px;
}
.btn-add:hover {
    background:var(--lightblue);
}

.btn-update {
    background: var(--orange);
    padding:8px 18px;
}
.btn-update:hover {
    background: var(--lightorange);
} 


/* ----------------------------- */
/* MOBILE HEADER */
/* ----------------------------- */
.mobile-header{
    display:none;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
    border-bottom:1px solid #eee;
    padding:8px 5px;
    border-radius:0;
    background:var(--lightbgthemes);
    position:sticky;
    top:0;
    z-index:10;
}

.mobile-header button{
    border:none;
    background:none;
    font-size:18px;
    cursor:pointer;
    color: var(--orange);

}

.mobile-header span{
    font-weight:600;
}

.edit-input,.verify-input{
   position: relative;
    flex: 1 1 auto;
    width: auto;
    border-radius: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

.edit-input:focus,
.verify-input:focus {
  z-index: 3;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}
.btn-change{
    padding:8px 18px;
    color: var(--blue);
}
.btn-change:hover{
    color:var(--lightblue);
}

.btn-cancel{
    padding:8px 18px;
    background-color: var(--darkgray);
}
.btn-cancel:hover{
    background-color:var(--lightgray);
}






button:disabled {
    background: var(--darkgray) !important;
    color: var(--darkwhite)!important;
    cursor: not-allowed; 
    opacity: 0.8;    
    pointer-events: none;   
    border-radius: 6px;  
    border: .5px solid var(--darkgray); 
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.success-message {
    position: fixed;
    top: 80px;
    right: 50px;
    /* background: #d4edda;
    color: #155724; */
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.5s ease;
}

.errorMob{
    font-size: 12px;
    margin-top: 3px;
}

.disabled-link,
.disabled-btn {
    pointer-events: none;  /* disable click */
    opacity: 0.5;          /* faded look */
    cursor: not-allowed;
    background-color: var(--dark);
}

.btn-activate{
    text-align: end;
    justify-items: end;
    width: auto;
    padding: 5px 8px;
    border-radius: 5px;
    text-decoration: none;
    list-style: none;
    
}

.float-left{
    display: flex;
    left:0;
    float: inline-start;
}
.float-left{
    display: flex;
    right: 0;
    float: inline-end;
}

/* =========================
   BOTTOM NAVBAR
========================= */
/* Bottom Navbar */
.bottom-navbar{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%; /* FIXED */
    height: 60px;
    background: var(--bgthemes);
    border-top: 1px solid #e5e5e5;
    z-index: 999;

    display: none;
    align-items: center;
    justify-content: center;
}

/* Nav container */
.bottom-nav{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around; /* better spacing */
    margin: 0;
    padding: 5px 0;
}

/* Each item */
.bottom-nav .nav-item{
    text-align: center;
    color: var(--white);
    list-style: none;
    flex: 1; /* equal width */
}

.bottom-nav .nav-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    font-size: 12px;

    line-height: 1; 
    gap: 0;   
}

/* ICON */
.bottom-nav .nav-link i{
    font-size: 18px;
    margin: 0;
    line-height: .7; 
    display: block;
}

/* TEXT */
.bottom-nav .nav-item small{
    font-size: 10px;
    margin: 0; 
    line-height: .7; 
    display: block;
}

/* Hover & active */
.bottom-nav .nav-link:hover{
    color: #000;
}

.bottom-nav .nav-link.active{
    color: #0d6efd;
}
/* =========================
   PAGE HEADER
========================= */
.page-header{
    margin-bottom:25px;
}

.page-header h1{
    font-size:28px;
    font-weight:700;
    margin-bottom:5px;
}

.page-header p{
    color:#777;
}

/* ===============================
   TAB CONTENT SYSTEM
================================*/
/* ===== TABS ===== */

.tabs-menu {
    display: flex;
    background: var(--darkwhite);
    border-radius: 8px;
    padding: 5px;
    gap: 5px;
    list-style: none;
    margin: 20px 0;
    box-shadow: 0 8px 12px rgba(0,0,0,0.12);

}

.tabs-menu li {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #777;
    cursor: pointer;
    transition: 0.25s;
    width: 100%;
}

.tabs-menu li.active {
    background: var(--blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.tab-pane {
    display: none;
    animation: fadeIn .25s ease;
}

.tab-pane.active {
    display: block;
}

.tab-header{
    padding: 5px 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    align-items: center;
}
.tab-header h5{
    margin-top: 8px;
    font-size: 16px;
}

.tab-header p {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.85;
}
.tab-card{
    border: 1px solid #e6e6e6;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background-color: var(--white);
}
.tab-content {
    display: none;
}
.tab-body{
    border-radius: 16px;
    padding: 18px;

}
.tab-content.active {
    display: block;
}

.tab-nav{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.tab-button {
    display: flex;
    justify-content: flex-end;
    top: 0;
    margin-top: -30px;
    position: relative;
    
}
.tab-button .dropdown-list{
    z-index: 999;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer-container {
    width: 100%;
    justify-content: center;
    align-items: center;
    bottom: 0;
    margin: 0;
}
.footer-content {
    width: 100%;
    padding: 15px 20px;
    display: grid;
    margin: auto;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    height: 120px;
}
.footer-column h3{
    font-size: 1rem;
    color:var(--white);
}

.footer-column p,
.footer-column a {
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 10px;
    font-size: .9rem;
    color: var(--white);
}

.footer-column a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--darkwhite);
    font-size: 1rem;
    color: var(--white);
}


/*==== Notification Bell===*/
.notif-wrapper {
    position: relative;
}

.notif-bell {
    position: relative;
    font-size: 18.5px;
    background: none;
    border: none;
    cursor: pointer;
}

.notif-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: red;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    display: none;

    /* Add smooth transform for pulse animation */
    transform-origin: center;
}

/* Bell shake animation now works on notif-count */
@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  50% { transform: rotate(-15deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

/* Badge pulse animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Apply animations to notif-count dynamically */
.notif-count.shake {
  animation: shake 0.5s;
}

.notif-count.pulse {
  animation: pulse 0.6s;
}

/* Toast popup container */
.notify-container {
  position: fixed;
  top: 80px;
  right: 20px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Individual toast */
.notify {
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 1;
  transform: translateY(-20px);
  animation: slideIn 0.5s forwards;
z-index: 1000000;
}
.notify.show {
  opacity: 1;
  transform: translateY(0);
}
/* Slide in animation for toast */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/*==== Scroll UP an DOWN ===*/
.scroll-btn {
    position: fixed;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    background: var(--dark, #333);
    color: var(--white, #fff);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    touch-action: manipulation;
}

.scroll-btn.up { bottom: 100px; }
.scroll-btn.down { bottom: 60px; }

.scroll-btn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 495px) {
    .scroll-btn.up { bottom: 100px; }
    .scroll-btn.down { bottom: 65px; }
    .scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
/* Navbar hide class */
.hide-nav {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.profile-badge{
    display: grid;
    align-items: center;
    justify-content: center;
}

.profile-status{
    border-radius: 50%;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-left: 15px;
}
.profile-status i{
    font-size: 20px;
}
.profile-badge p{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.setting-collapse{
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;

}
.setting-card{
    background:var(--white); 
    height: 50vh;
    opacity: .9;
    padding: 5px 50px;

}
.setting-card .card{
    background:var(--puredark); 
    opacity: 5 !important;
    gap: 30px;
    opacity: 1;
    padding: 30px 0px;
    z-index: 999;
} 
.setting-card .card-body{
    opacity:1;
    padding: 10px 40px;
}
.setting-card .card-body .menu-item{
    list-style: none;    
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.2rem;
}  

.setting-card .nav-link:hover{
    background-color: var(--lightred); 
} 
.hr-divider{
    color: var(--white);
    padding: 0;
}

.custom-dropdown {
  display: flex;
  position: relative;
  justify-content: flex-end;
  width: 200px;
  font-family: Arial, sans-serif;

}

.custom-dropdown .dropdown-btn {
  padding: 5px;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  justify-content: flex-end;
  border: none;
}

.custom-dropdown .dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  overflow-y: auto;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.custom-dropdown .dropdown-list li {
    padding: 10px;
    cursor: pointer;
    gap:5px;
    line-height: 1;
    margin: 0;
}

.custom-dropdown .dropdown-list li:hover {
  background-color: #f0f0f0;
}
.icon-mobile{
    display:none;
}

/* ===== FORM STYLE ===== */
/* ===== OVERLAY ===== */
.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:9000;
}

.modal-overlay.active{
    opacity:1;
    visibility:visible;
}

/* ===== MODAL ===== */
.custom-modal{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-60%) scale(.9);
    opacity:0;
    visibility:hidden;
    transition:.35s ease;
    z-index:1000;
}

.custom-modal.active{
    opacity:1;
    visibility:visible;
    transform:translate(-50%,-50%) scale(1);
}
.cs-form{
    width:380px;
    max-width:92vw;
    background:#fff;
    border-radius:14px;
    padding:0px;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
    font-family:system-ui;
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.cs-form-img{
    display:flex;
    justify-content:center;
    align-items:center;
    margin:10px 0;
}
.cs-form-header{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:15px;
}

.cs-form-header h2{
    margin:0;
    font-size:20px;
    left: 0;
}

.modal-close{
    position: absolute;
    cursor:pointer;
    font-size:22px;
    top:0;
    right: 0;
    padding: 10px;
    margin-right: 10px;
}
.cs-form-body{
    width:300px;
    position:relative;
    justify-content: space-between;
}
.cs-form-status{
    display:flex;
    justify-content:center;
    align-items:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    
    background:#e8f7ee;
    color:#1f9d55;

    padding:6px 14px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;

    margin:10px auto 20px;
    width:fit-content;
   width:fit-content;
}
/* amount */
.cs-form-amount{
    text-align:center;
}

.cs-form-amount span{
    color:#777;
    font-size:13px;
}

.cs-form-amount h1{
    margin:5px 0 15px;
    font-size:32px;
    color:#111;
}

.cs-form-row{
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    font-size:14px;
}

.cs-form-row span{
    color:#777;
}

.cs-form-divider{
    height:1px;
    background:#eee;
    margin:15px 0;
}

.cs-form-divider.dashed{
    border-top:1px dashed #ddd;
    background:none;
}

/* download button */
.cs-form-download{
    display:block;
    width:fit-content;
    margin:15px auto 0;

    text-align:center;
    background:#0d6efd;
    color:#fff;
    padding:6px 18px;
    border-radius:8px;
    text-decoration:none;

    transition:.2s;
}

.cs-form-download:hover{
    background:#0b5ed7;
}

.cs-form-footer{
    text-align:center;
    margin-top:15px;
    font-size:12px;
    color:#999;
    padding-bottom: 20px;
}
#formContent{
    box-shadow:none !important;
}

.page-loader{
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    display: none;
}

.spinner{
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin{
    to{ transform: rotate(360deg); }
}

/* ===== Tooltip Design ===== */

.tooltip-inner {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: .3px;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    backdrop-filter: blur(6px);
}

/* Arrow colors */
.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #111827 !important;
}

.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #111827 !important;
}

.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #111827 !important;
}

.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #111827 !important;
}

/* Smooth fade only */
.tooltip {
    transition: opacity .15s ease;
}

/* Updated Input Password (based on Bootstrap 5 input-group) */
.input-password {
  position: relative;
  display: flex;
  flex-wrap: nowrap; /* keep input and button in one line */
  align-items: stretch;
  width: 100%;
}

.input-password > .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  margin-bottom: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-password > .form-password {
  position: relative;
  flex: 1 1 auto;
  margin-bottom: 0;
  border-radius: 0;
  width: 1%;
  border: 1px solid #ced4da;
  height: 40px;
  padding: 10px;
}
.input-password > .btn-eyes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto; 
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0 0.75rem;
  cursor: pointer;
  border: 1px solid #ced4da;
  border-left: 0;
  background-color: #fff;
  color: #000;
}
.input-password > .input-group-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  padding: 0 0.75rem;
  cursor: pointer;
  border: 1px solid #ced4da;
  background-color: #fff;
  color: #000;
}
.input-password > .form-password:focus,
.input-password > .form-control:focus,
.input-password > .btn-eyes:focus {
  z-index: 3;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.input-password > .form-control:not(:first-child) {
  margin-left: -1px; /* overlap borders */
}

.input-password > .btn-eyes:hover {
  background-color: #f8f9fa;
}




.footer-content {
    width: 100%;
    padding: 15px 30px;
    display: grid;
    margin: auto;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    height: 120px;
}



@media (max-width: 991px){
    .section-search {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        top: 0;
    }  
    .search-input {
        margin-top: -5px;
        width: 100%;
        height: 30px;
        padding: 8px 30px 8px 35px; 
        border-radius: 10px;
        border: 1px solid var(--darkwhite);
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        font-size: 14px;
        outline: none;
        background: white;
        transition: border-color 0.2s, box-shadow 0.2s;
    }      
    /* NAVBAR */
    .navbar{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px;
        padding: 0 5px;
        margin: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        z-index: 999;
    }

    /* WRAPPER */
    .navbar-wrap {
        width: 100%;
        max-width: 1200px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        margin: 0;
        padding: 0;
    }

    /* LEFT SIDE */
    .navbar-header {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* RIGHT SIDE */
    .navbar-collapse{
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
    }

    /* NAV ITEMS */
    .navbar-nav{
        display: flex !important;
        flex-direction: row;
        align-items: center;  
        margin: 0;
        padding: 0;
        gap: 8px;
    }

    /* NAV LINKS */
    .navbar-nav .nav-link{
        display: flex;
        align-items: center;
        justify-content: center;

        height: 100%; 
        padding: 0 8px;
        border-radius: 6px;
    }

    /* ICON */
    .navbar-nav .nav-link i{
        font-size: 16px;
        line-height: 1;
    }

    /* REMOVE EXTRA TEXT (optional) */
    .navbar-wrap .nav-link label{
        display: none;
    }

    /* LOGO */
    .navbar-brand img{
        height: 45px; 
        width: auto;
    }

    /* USER ICON */
    .user-toggler{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .navbar-toggler{
        display: none;
    }
    /* show mobile icon */
    .icon-mobile{
        display:inline-block;
    }

    /* hide username text */
    .username{
        display:none;
    }
    .cart-link{
        position: relative;
    }
    .cart-badge{
        background:var(--red);
        color: var(--white);
        padding:2px 7px;
        border-radius:50px;
        font-size:12px;
        position: relative;
        margin-left:-18px;
        margin-top: -20px;
    }
    .setting-card{
        background:var(--white); 
        height: 50vh;
        opacity: 1;
        padding: 5px;
        margin: 5px;

    }

    footer{
        display: none;
    }

    .navbar-nav .navbar-collapse{
        margin-right: -30px;
    }
        /* prevent navbar expansion */
    .nav-item.dropdown{
        position: relative;
        flex: 0 0 auto;
    }

    /* keep toggle stable */
    .nav-item.dropdown .nav-link{
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    /* floating dropdown */
    .dropdown-menu{
        position: absolute !important;
        top: 100%;
        right: 0;
        left: auto;
        min-width: 220px;
    }

    /* prevent long username expansion */
    .username{
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }

    /* prevent bootstrap width jump */
    .nav-item.dropdown.show,
    .nav-item.dropdown .nav-link.show{
        width: auto !important;
    }

    .tooltip {
        transition: opacity .2s ease, transform .2s ease;
        display: none;
    }
}
@media( max-width: 768px){
    /* WRAPPER */
    .search-wrapper {
        position: relative;
        min-width: 350px;
    }

    body {
        padding-top: 70px; 
    }

    /* hide desktop icon */
    .icon-desktop{
        display:none;
    }

    .bottom-navbar{
        display: flex;
        height: 50px;
    }
    /* ICON */
    .bottom-nav .nav-link i{
        font-size: 16px;

    }

    /* TEXT */
    .bottom-nav .nav-item small{
        font-size: 10px;
    }
}

@media (max-width: 495px){
    .hide-nav{
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s ease;
    }
    /* WRAPPER */
    .search-wrapper {
        position: relative;
        min-width: 250px;
    }
}
@media (max-width: 420px){
    /* WRAPPER */
    .search-wrapper {
        position: relative;
        min-width: 180px;
        margin-left: -20px;
    }

}
@media (max-width: 360px){
    /* WRAPPER */
    .search-wrapper {
        position: relative;
        min-width: 150px;
        margin-left: -20px;
    }

}

