

/* Pulsing dot animation for Ready To Graduate */
@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Graduation notification popup styling */
.graduation-popup {
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.graduation-popup .swal2-icon.swal2-success {
    border-color: #fff !important;
}

.graduation-popup .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #fff !important;
}

.graduation-popup .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

#uiButton_basescanWalletLink,
#uiButton_basescanTokenLink {
    position: absolute;
    top: 10px;
    right: 10px;
        padding: 0px 0px 0px 0px;
    /* padding: 6px 6px 6px 6px; */
    /* background-color: rgb(193, 193, 193); */
        /* background-color: rgb(188, 188, 188); */
        border-radius: 50%;
        border: 1px solid rgb(50, 56, 62);
}




/* ## private key popup css ## */
.pk-wrapper {
  /* display: inline-flex; */
  align-items: center;
  gap: 8px;
  font-family: monospace;
  cursor: pointer;

}

/* blurred state */
.pk-blurred {
  filter: blur(4px);
  user-select: none;       /* makes accidental selection harder */
}

/* optional: subtle underline to show it's interactive */
.pk-text {
  border: 1px dashed #888;
  font-size: 14px;
    padding: 12px 12px 12px 12px;
    border-radius: 18px;

    font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block; /* required for text-overflow to work reliably */
  width: 420px; /* set your desired width */
}

.pk-text:hover {
    background-color: rgba(0, 0, 0, 0.12);
    color: rgb(83, 142, 218) !important;
      border: 1px dashed #a5a5a5;
}

/* status text (e.g. "Copied") */
.pk-status {
  font-size: 13px;
  /* color: #10b981;  */
  margin-bottom: 0;
  pointer-events: none;

}

#pkStatus:hover {
  cursor: default !important;
    pointer-events: none;

}


/* ## withdraw ETH popup css ## */
.withdraw-wrapper {
    width: 100%;
    max-width: 450px;
}

.withdraw-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.withdraw-input {
    width: 100%;
    padding: 16px 15px;
    font-size: 18px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: monospace;
    text-align: center;
    min-height: 56px;
}

.withdraw-input:focus {
    outline: none;
    border-color: rgb(83, 142, 218);
    background-color: rgba(83, 142, 218, 0.1);
}

/* Mobile-friendly input sizing */
@media (hover: none) and (pointer: coarse) {
    .withdraw-input {
        padding: 18px 15px;
        font-size: 20px;
        min-height: 60px;
    }
}

.withdraw-balance-info {
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.withdraw-slider-section {
    margin-top: 20px;
    margin-bottom: 24px;
}

.withdraw-slider-wrapper {
    position: relative;
    padding: 0 10px;
    margin-bottom: 8px;
}

.withdraw-slider-label-floating {
    position: absolute;
    top: -22px;
    left: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgb(204, 204, 204);
    background-color: rgb(28, 28, 28);
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
    transition: left 0.15s ease-out;
    z-index: 10;
    white-space: nowrap;
    transform: translateX(-50%);
}

.withdraw-slider {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, #444 0%, rgb(83, 142, 218) 100%);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.withdraw-slider:hover {
    cursor: pointer;
}

/* Smaller thumb for better proportion */
.withdraw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(83, 142, 218);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease;
}

.withdraw-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.withdraw-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

.withdraw-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(83, 142, 218);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease;
}

.withdraw-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.withdraw-slider::-moz-range-thumb:active {
    transform: scale(1.15);
}

/* Increase track height for easier clicking on mobile */
.withdraw-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 12px;
    cursor: pointer;
    background: transparent;
    border-radius: 6px;
}

.withdraw-slider::-moz-range-track {
    width: 100%;
    height: 12px;
    cursor: pointer;
    background: transparent;
    border-radius: 6px;
}

/* Add padding for better touch targets on mobile */
@media (hover: none) and (pointer: coarse) {
    .withdraw-slider {
        height: 16px;
        padding: 8px 0;
    }

    .withdraw-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .withdraw-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    .withdraw-slider::-webkit-slider-runnable-track {
        height: 16px;
    }

    .withdraw-slider::-moz-range-track {
        height: 16px;
    }
}

.withdraw-slider-ticks {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 6px;
}

.withdraw-slider-ticks span {
    font-size: 11px;
    color: #666;
    user-select: none;
}

.withdraw-recipient-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: monospace;
    margin-bottom: 8px;
}

.withdraw-recipient-input:focus {
    outline: none;
    border-color: rgb(83, 142, 218);
    background-color: rgba(83, 142, 218, 0.1);
}

.withdraw-warning {
    margin-top: 16px;
    padding: 10px;
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    font-size: 12px;
    color: #ffc107;
}

.withdraw-fee-info {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    text-align: center;
}


/* ## Token Balances Table CSS ## */
#gridjsTable_userTokenBalances {
    min-height: 600px;
}

/* Ensure table always shows 10 rows (padding for empty rows) */
#gridjsTable_userTokenBalances table {
    min-height: 550px;
}

#gridjsTable_userTokenBalances tbody {
    min-height: 450px;
    display: table-row-group;
}

/* Prevent table layout shifts during refresh */
#gridjsTable_userTokenBalances .gridjs-wrapper {
    transition: opacity 0.15s ease-in-out;
}

/* Center align numeric columns (Total Value and Actions) */
#gridjsTable_userTokenBalances td:nth-child(2),
#gridjsTable_userTokenBalances td:nth-child(3) {
    text-align: center;
}

/* Left align Token column */
#gridjsTable_userTokenBalances td:nth-child(1) {
    text-align: left;
}

/* Ensure buttons don't wrap */
#gridjsTable_userTokenBalances .btn-group {
    white-space: nowrap;
}

/* Consistent button sizing */
#gridjsTable_userTokenBalances .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.5;
}

/* Token image styling */
#gridjsTable_userTokenBalances img {
    flex-shrink: 0;
}

/* Prevent content overflow */
#gridjsTable_userTokenBalances table {
    table-layout: fixed;
    width: 100%;
}

/* Style empty placeholder rows */
#gridjsTable_userTokenBalances tbody tr:empty,
#gridjsTable_userTokenBalances tbody tr td:empty {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Ensure consistent row height */
#gridjsTable_userTokenBalances tbody tr {
    height: 48px;
}

/* Reduce cell padding for tighter layout */
#gridjsTable_userTokenBalances td {
    padding: 8px 12px;
}

/* Loading state */
#gridjsTable_userTokenBalances .gridjs-loading {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Token column link styling */
#gridjsTable_userTokenBalances a.link-secondary:hover {
    text-decoration: underline;
}

/* Improve table responsiveness */
@media (max-width: 768px) {
    #gridjsTable_userTokenBalances .btn-group {
        flex-direction: column;
    }

    #gridjsTable_userTokenBalances .btn-group .btn {
        border-radius: 4px !important;
        margin-bottom: 2px;
    }

    /* Make columns stack better on mobile */
    #gridjsTable_userTokenBalances td:nth-child(1) {
        padding: 12px 8px;
    }

    #gridjsTable_userTokenBalances td:nth-child(2),
    #gridjsTable_userTokenBalances td:nth-child(3) {
        padding: 12px 4px;
    }

    /* Adjust token image size on mobile */
    #gridjsTable_userTokenBalances td:nth-child(1) img {
        width: 24px;
        height: 24px;
    }

    /* Adjust font sizes for mobile */
    #gridjsTable_userTokenBalances td:nth-child(1) .link-secondary {
        font-size: 13px;
    }
}
