@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.glass {
    background: color-mix(in srgb, var(--bg-card) 50%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.modal-overlay {
    will-change: opacity;
    transform: translateZ(0);
}

.modal-content,
.glass {
    transform: translateZ(0);
    backface-visibility: hidden;
}

#customerList,
#TBody,
#modal_TBody,
.overflow-y-auto {
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    contain: content;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.system-offline {
    pointer-events: none !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Toast Animation */
@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.animate-progress {
    animation: progress 5s linear forwards;
}

/* Modal Styles */
.modal-overlay {
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-content {
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

.modal-active .modal-content {
    transform: translateY(0) scale(1);
}

.premium-input {
    background: var(--bg-main) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

.shake-error {
    animation: shake-error 0.4s ease-in-out;
    border: 2px solid #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

@keyframes shake-error {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    50% {
        transform: translateX(8px);
    }

    75% {
        transform: translateX(-8px);
    }
}

.editable-field {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

@keyframes softTextSeesaw {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(2deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.text-shake-target {
    display: inline-block;
    animation: softTextSeesaw 0.3s ease-in-out infinite !important;
    transform-origin: center center;
}

@keyframes bounceShort {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.animate-bounce-short {
    animation: bounceShort 0.3s ease-in-out;
}

.text-shake-target.shake-stopped {
    animation: none !important;
}

.input-error {
    border-bottom: 2px solid #ef4444 !important;
}

/* Single Header Global Currency Slider */
.currency-slider-wrapper {
    position: relative;
    display: inline-flex;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 3px;
    height: 34px;
    width: 110px;
    user-select: none;
}

.currency-btn {
    flex: 1;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.currency-btn.active {
    color: #ffffff !important;
}

.currency-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background: var(--accent-color, #2563eb);
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(var(--bg-muted), 0.35);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.currency-slider-wrapper[data-currency="SLSH"] .currency-thumb {
    transform: translateX(100%);
}

.date-slider-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 3px;
    user-select: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.date-preset-btn {
    position: relative;
    z-index: 10;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 9px;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.date-preset-btn:hover {
    color: var(--text-main);
}

.date-preset-btn.active {
    color: #ffffff !important;
}

/* Sliding Thumb Element */
.date-slider-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: 0;
    background: var(--accent-color, #2563eb);
    border-radius: 9px;
    box-shadow: 0 2px 6px rgba(var(--bg-muted), 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.amount-blur {
    filter: blur(10px) !important;
    user-select: none !important;
    opacity: 0.4 !important;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

@keyframes healthPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-health-pop {
    animation: healthPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes blurIn {
    0% {
        filter: blur(4px);
        opacity: 0;
    }

    100% {
        filter: blur(0);
        opacity: 1;
    }
}

.counter-animate {
    animation: blurIn 0.4s ease-out forwards;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 100px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.date-picker-blue::-webkit-calendar-picker-indicator,
::-webkit-calendar-picker-indicator {
    /* width: 28px; */
    /* height: 28px; */
    padding: 6px;
    /* margin: 0; */
    border-radius: 6px;
    cursor: pointer;
    background-color: color-mix(in srgb, var(--accent-color, #0284c7) 15%, transparent);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%230284c7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: all 0.2s ease;
}

[data-theme="sepia"] .date-picker-blue::-webkit-calendar-picker-indicator,
::-webkit-calendar-picker-indicator {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2372603f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
}

.date-picker-blue::-webkit-calendar-picker-indicator:hover,
::-webkit-calendar-picker-indicator:hover {
    background-color: color-mix(in srgb, var(--accent-color, #0284c7) 30%, transparent);
}

.date-picker-rose::-webkit-calendar-picker-indicator {
    /* width: 28px; */
    /* height: 28px; */
    padding: 6px;
    /* margin: 0; */
    border-radius: 6px;
    cursor: pointer;
    background-color: rgba(225, 29, 72, 0.15);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23e11d48" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: all 0.2s ease;
}

.date-picker-rose::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(225, 29, 72, 0.3);
}

.date-picker-emerald::-webkit-calendar-picker-indicator {
    /* width: 28px; */
    /* height: 28px; */
    padding: 6px;
    /* margin: 0; */
    border-radius: 6px;
    cursor: pointer;
    background-color: rgba(16, 185, 129, 0.15);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2310b981" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: all 0.2s ease;
}

.date-picker-emerald::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(16, 185, 129, 0.3);
}

.date-picker-orange::-webkit-calendar-picker-indicator {
    /* width: 28px; */
    /* height: 28px; */
    padding: 6px;
    /* margin: 0; */
    border-radius: 6px;
    cursor: pointer;
    background-color: rgba(249, 115, 22, 0.15);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23f97316" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: all 0.2s ease;
}

.date-picker-orange::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(249, 115, 22, 0.35);
}

.date-picker-amber::-webkit-calendar-picker-indicator {
    /* width: 28px; */
    /* height: 28px; */
    padding: 6px;
    /* margin: 0; */
    border-radius: 6px;
    cursor: pointer;
    background-color: rgba(245, 158, 11, 0.15);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23f59e0b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: all 0.2s ease;
}

.date-picker-amber::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(245, 158, 11, 0.35);
}

@media (min-width: 1024px) {
    .l-shape-container {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 1.5rem;
        clip-path: url(#curved-l-cut);
    }

    .r-shape-container {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 1.5rem;
        clip-path: url(#curved-r-cut);
    }

    .sup-profile-card,
    .cst-profile-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 315px;
        z-index: 30;
    }

    .l-toolbar-area {
        margin-left: 330px;
    }

    .r-toolbar-area {
        margin-right: 330px;
    }
}

@media (max-width: 1023px) {

    .l-shape-container,
    .r-shape-container {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 1.5rem;
    }
}