

/* ========================================
   Velzon Theme Customization: https://themesbrand.com/velzon/docs/html/index.html
   ======================================== */


/* ######### Sidebar Docs: https://themesbrand.com/velzon/docs/html/sidebar.html #########
/* ##### Modify the Background Color of the Sidebar ##### *
/* You can make changes in the src/assets/css/app.css or src/assets/css/app.min.css file.

// Light Sidebar
:root[data-sidebar=light] {
    --vz-vertical-menu-bg:                            #fff;
    --vz-vertical-menu-border:                        #fff;
}

// Dark Sidebar
:root[data-sidebar=dark] {
    --vz-vertical-menu-bg:                            #405189;
    --vz-vertical-menu-border:                        #405189;
}

// gradient Sidebar
:root[data-sidebar=gradient] {
    --vz-vertical-menu-bg:                            linear-gradient(to right, var(--vz-primary), var(--vz-success));
    --vz-vertical-menu-border:                        var(--vz-success);
    --vz-twocolumn-menu-iconview-bg:                  var(--vz-primary);
} */


/* ######### Sidebar: https://themesbrand.com/velzon/docs/html/scss.html #########
/* ##### Modify the layout size of the Sidebar ##### *
/* You can make changes in the src/assets/scss/config/default/_variables-custom.scss file.

:root {
  --vz-vertical-menu-width:                       250px; // sidebar-size = lg
  --vz-vertical-menu-width-md:                    180px; // sidebar-size = md
  --vz-vertical-menu-width-sm:                    70px; // sidebar-size = sm
} */


/*  Quick customization of layout using scss.
    You can make changes in the src/assets/scss/_variables.scss file.

    Variables	Description
    $primary:       $indigo;
    $secondary:     $blue;
    $success:       $green;
    $info:          $cyan;
    $warning:       $yellow;
    $danger:        $red;
    $light:         $gray-100;
    $dark:          $gray-900;
    You can manage those colors to update the color theme.
    $font-family-primary:                             'Poppins', sans-serif;
    $font-family-secondary:                           'hkgrotesk', sans-serif;
    You can set the default font in these variables.                              */


/* ========================================
   TokFi css: START
   ======================================== */

@font-face {
    font-family: tokfi;
    src: url(fonts/tokfi.ttf);
}

.font-tokfi {
    font-family: tokfi;
}

.login-page-socials-link-icon {
    font-size: 24px;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.login-page-socials-link-icon:hover {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
}

.color-tokfi {
    color: rgb(67, 173, 255) !important;
}

.bg-tokfi {
    background-color: rgb(67, 173, 255) !important;;
}

.button-tokfi {
    color: rgb(67, 173, 255) !important;
}

.button-tokfi:hover {
    cursor: pointer;
    color: rgb(67, 173, 255, 0.7) !important;
}

.dropdown-item:hover {
    cursor: pointer;
}


/* Toastr CSS - Velzon-aligned Styling */
#toast-container > div {
    opacity: 1 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
    border-radius: 0.375rem !important;
    padding: 0.75rem 1rem !important;
    background-image: none !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #fff !important;
}

/* Hide toastr default icons */
#toast-container .toast-success:before,
#toast-container .toast-error:before,
#toast-container .toast-info:before,
#toast-container .toast-warning:before {
    display: none !important;
}

#toast-container > div:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Success Toast */
#toast-container > .toast-success {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(25, 135, 84, 0.15)) !important;
    border-left: 3px solid #198754 !important;
    border-top: 1px solid rgba(25, 135, 84, 0.3) !important;
    border-right: 1px solid rgba(25, 135, 84, 0.3) !important;
    border-bottom: 1px solid rgba(25, 135, 84, 0.3) !important;
}

/* Error Toast */
#toast-container > .toast-error {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(220, 53, 69, 0.15)) !important;
    border-left: 3px solid #dc3545 !important;
    border-top: 1px solid rgba(220, 53, 69, 0.3) !important;
    border-right: 1px solid rgba(220, 53, 69, 0.3) !important;
    border-bottom: 1px solid rgba(220, 53, 69, 0.3) !important;
}

/* Warning Toast */
#toast-container > .toast-warning {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(255, 193, 7, 0.15)) !important;
    border-left: 3px solid #ffc107 !important;
    border-top: 1px solid rgba(255, 193, 7, 0.3) !important;
    border-right: 1px solid rgba(255, 193, 7, 0.3) !important;
    border-bottom: 1px solid rgba(255, 193, 7, 0.3) !important;
}

/* Info Toast */
#toast-container > .toast-info {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(13, 202, 240, 0.15)) !important;
    border-left: 3px solid #0dcaf0 !important;
    border-top: 1px solid rgba(13, 202, 240, 0.3) !important;
    border-right: 1px solid rgba(13, 202, 240, 0.3) !important;
    border-bottom: 1px solid rgba(13, 202, 240, 0.3) !important;
}

/* Secondary Toast */
#toast-container > .toast-secondary {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(108, 117, 125, 0.15)) !important;
    border-left: 3px solid #6c757d !important;
    border-top: 1px solid rgba(108, 117, 125, 0.3) !important;
    border-right: 1px solid rgba(108, 117, 125, 0.3) !important;
    border-bottom: 1px solid rgba(108, 117, 125, 0.3) !important;
}

/* Toast Title */
#toast-container > div .toast-title {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.25rem !important;
    color: #fff !important;
}

/* Toast Message */
#toast-container > div .toast-message {
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Hide close button */
#toast-container > div .toast-close-button {
    display: none !important;
}

/* Progress Bar */
#toast-container > div .toast-progress {
    opacity: 0.4 !important;
    background-color: currentColor !important;
    height: 3px !important;
    bottom: 0 !important;
}

/* Toast Container Position */
#toast-container {
    pointer-events: none;
}

#toast-container > div {
    pointer-events: auto;
}

#toast-container > div.toast {
    background-image: none !important;
}

/* Animation improvements */
.toast {
    animation: toastSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


a.nav-buy-tab.nav-link {
    color: rgb(69, 203, 133) !important;
    font-weight: 200;
    /* border-bottom: 8px solid rgba(255, 255, 255, 0.03) !important; */
    border-bottom: 8px solid rgba(0, 0, 0, 0.08) !important;

}
a.nav-sell-tab.nav-link {
    color: rgb(240, 101, 72) !important;
    font-weight: 200;
    /* border-bottom: 8px solid rgba(255, 255, 255, 0.03) !important; */
    border-bottom: 8px solid rgba(0, 0, 0, 0.08) !important;
}

a.nav-buy-tab.nav-link.active {
    border-bottom-color: rgb(69, 203, 133) !important;
    outline-color: rgb(69, 203, 133) !important;
    color: rgb(69, 203, 133) !important;
    border-bottom: 8px solid rgb(69, 203, 133) !important;
    /* border-bottom-left-radius: 8px !important; */
    /* border-bottom-right-radius: 8px !important; */
    filter:contrast(102%);
    /* font-weight: 900; */
}


a.nav-sell-tab.nav-link.active {
    border-bottom-color: rgb(240, 101, 72) !important;
    outline-color: rgb(240, 101, 72) !important;
    color: rgb(240, 101, 72) !important;
    border-bottom: 8px solid rgb(240, 101, 72) !important;
    /* border-bottom-left-radius: 8px; */
    /* border-bottom-right-radius: 8px; */
    filter:contrast(102%);
    /* font-weight: 900; */
}

button.disabled {
    filter: contrast(15%);
}

.blockUI.blockElement {
    background-color: transparent !important;
    border: none !important;
    color: white !important;
}


.blockOverlay {
    border-radius: 4px;
    opacity: 0.7 !important;
}

.display-none {
    display: none !important;
}

.fs-6 {
    font-size: 6px !important;
}

.fs-7 {
    font-size: 7px !important;
}

.fs-8 {
    font-size: 8px !important;
}

.fs-9 {
    font-size: 9px !important;
}

.fs-10 {
    font-size: 10px !important;
}

.fs-11 {
    font-size: 11px !important;
}

.icon-button {
    border-radius: 8px;
    /* border: 1px solid rgb(50, 56, 62); */
}
.icon-button:hover {
    /* filter: brightness(130%); */
    opacity: 0.6;
    cursor: pointer;
    /* box-shadow: 0 0 2px rgba(0, 0, 0, 1); */
    /* border: 1px solid rgba(255, 255, 255, 0.162); */
}

.button-bright:hover,
.button-brightness:hover {
    filter: brightness(130%);
    cursor: pointer;
}


.button-opacity:hover {
    opacity: 0.7;
    cursor: pointer;
}

.mr-1 {
    margin-right: 1px;
}

.mr-2 {
    margin-right: 2px;
}

.mr-3 {
    margin-right: 3px;
}

.mr-4 {
    margin-right: 4px;
}

/* .checkmark-after {
        position: absolute;
} */


.copied-wrapper {
  position: relative; /* needed for absolute ::after */
  cursor: pointer;
}

/* When the wrapper has class .copied, show message */
.copied-wrapper.copied::after {
  content: "✓︎ Copied to clipboard";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px); /* appears 4px below element */
  transform: translateX(-50%);

  background: rgb(27, 27, 27);
  color: #10b981;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 0 2px rgba(0,0,0,0.6);
  z-index: 999;
  filter: none;

  animation: fadeInOut 1.8s forwards;
}

/* Smooth fade-in then fade-out */
@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateX(-50%) translateY(5px); }
  15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  85%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-3px); }
}

/* Coin Price Display - Fixed Bottom Right */
#coinPriceDisplay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(83, 142, 218, 0.3);
    border-radius: 12px;
    padding: 8px 14px;
    display: none;
    flex-direction: row;
    gap: 12px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#coinPriceDisplay:hover {
    background: rgba(40, 40, 40, 0.98);
    border-color: rgba(83, 142, 218, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.coin-price-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.coin-price-icon {
    font-size: 16px;
}

.coin-price-value {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile responsiveness for Coin Price Display */
@media (max-width: 768px) {
    #coinPriceDisplay {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        gap: 4px;
        border-radius: 8px;
    }

    .coin-price-item {
        font-size: 11px;
        gap: 5px;
    }

    .coin-price-icon {
        font-size: 13px;
    }
}

/* Follow Button Styling */
.follow-btn {
    transition: all 0.2s ease;
}

.follow-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.follow-btn i {
    transition: all 0.2s ease;
}

/* Follow button in swap.html header */
#btn_followToken,
#btn_followToken_mobile {
    transition: all 0.2s ease;
}

#btn_followToken:hover,
#btn_followToken_mobile:hover {
    transform: scale(1.2);
    opacity: 1 !important;
    filter: brightness(1.3);
}

.tokfiLoader-disabled {
    pointer-events: none !important;
}

.tokfiLoader-disabled:hover {
    cursor: default !important;
}

/* ========================================
   Sidebar: Align icons and text to left
   ======================================== */

/* Make nav links flex row (icon + text side by side) */
:is([data-layout=vertical], [data-layout=semibox])[data-sidebar-size="md"] .navbar-menu .navbar-nav .nav-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 20px !important;
}

/* Make icon inline (not block) */
:is([data-layout=vertical], [data-layout=semibox])[data-sidebar-size="md"] .navbar-menu .navbar-nav .nav-link i {
    display: inline-block !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Show the text spans */
:is([data-layout=vertical], [data-layout=semibox])[data-sidebar-size="md"] .navbar-menu .navbar-nav .nav-link span:not(.badge) {
    display: inline-block !important;
    opacity: 1 !important;
}

/* Align MENU title to left and remove underline */
:is([data-layout=vertical], [data-layout=semibox])[data-sidebar-size="md"] .menu-title {
    text-align: left !important;
    padding-left: 0 !important;
}

:is([data-layout=vertical], [data-layout=semibox])[data-sidebar-size="md"] .navbar-menu .menu-title span {
    text-decoration: none !important;
}




/* ========================================
   Search Bar
   ======================================== */

/* Resize sidebar for mobile so menu user widget fits */
/* @media (max-width: 624px) {
    #search-options {
        width: 160px;
    }
} */



.vertical-sidebar-enable .app-menu {
    z-index: 1100;
}

/* Fix sidebar background to extend to bottom */
.sidebar-background {
    min-height: 100% !important;
    height: 100% !important;
}


/* ========================================
   Fix: Prevent extra bottom space when sidebar changes size
        when data-sidebar-size="sm"
   ======================================== */

/* Fix HTML and body height to prevent extra space */
html {
    min-height: 100vh !important;
    max-height: 100vh !important;
    height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body {
    min-height: 100vh !important;
    max-height: 100vh !important;
    height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Critical: Prevent any element from forcing html to expand */
html, body {
    position: relative !important;
}

/* Remove extra margin-bottom from main-content and page-content */
.main-content {
    margin-bottom: 0 !important;
    min-height: auto !important;
}

.page-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
}

/* Ensure footer doesn't add extra space */
.footer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Fix for vertical layout */
[data-layout="vertical"] .main-content {
    margin-bottom: 0 !important;
}

/* Fix for when sidebar is sm size */
[data-sidebar-size="sm"] .main-content {
    margin-bottom: 0 !important;
}

[data-sidebar-size="sm"] .page-content {
    margin-bottom: 0 !important;
}

/* Prevent layout-wrapper from expanding */
#layout-wrapper {
    min-height: 100vh !important;
    max-height: none !important;
}

/* Fix scrollbar height issue when sidebar is sm */
[data-sidebar-size="sm"] #scrollbar {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

[data-sidebar-size="sm"] .app-menu {
    height: 100vh !important;
    max-height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

[data-sidebar-size="sm"] .navbar-menu {
    height: 100vh !important;
    max-height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

/* Fix SimpleBar wrapper to fill full height */
.app-menu .simplebar-wrapper,
.app-menu .simplebar-mask,
.app-menu .simplebar-content-wrapper {
    min-height: 100% !important;
}

.navbar-menu {
    min-height: 100vh !important;
}

/* Ensure sidebar background extends to bottom */
.app-menu {
    min-height: 100vh !important;
    max-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

/* Make scrollbar fill remaining space */
#scrollbar {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: auto !important;
}

#scrollbar .container-fluid {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Sidebar background should cover full height */
.sidebar-background {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
}

/* Alternative: use background on app-menu directly */
.app-menu.navbar-menu {
    background: var(--vz-vertical-menu-bg) !important;
}

.display-none {
    display: none !important;
    opacity: 0 !important;
}

.display-block {
    display: block !important;
}

/* display 'none' on page load, remove this class depending on if logged in */
.ui_loggedOut_show,
.ui_loggedIn_show {
    display: none !important;
}


/* Dark swal2 popup base */
.swal2-dark-popup {
    border-radius: 14px !important;
    background: #1f1f1f !important;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Buttons */
.swal2-btn {
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
}

/* Confirm = highlight color */
.swal2-btn-confirm {
    background: var(--vz-secondary) !important;
    color: #fff !important;
    margin-right: 10px;
}

/* Cancel = subtle */
.swal2-btn-cancel {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}
.swal2-btn-cancel:hover {
    background: rgba(255,255,255,0.15) !important;
}






.clipfi-gradient {
    background: linear-gradient(
        140deg,
        #1fa2ff 0%,   /* bright blue */
        #12c2e9 50%,  /* cyan */
        #06e7b7 100%  /* aqua/teal */
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: inherit; /* keeps your existing font weight */
}
