/* ==========================================================================
   MH Telegram Shop Admin v2.0.0 — Custom Styles & Transitions
   ========================================================================== */

/* --- Custom Transitions & Animations --- */
.mhts-panel {
    animation: panelIn 250ms cubic-bezier(.4, 0, .2, 1) ease;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Loader Spinner --- */
button.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
    color: transparent !important;
}
button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}
@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* --- Scrollbar Customization --- */
.mhts-sidebar::-webkit-scrollbar,
.mhts-main::-webkit-scrollbar,
#mhts-log::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.mhts-sidebar::-webkit-scrollbar-track,
.mhts-main::-webkit-scrollbar-track,
#mhts-log::-webkit-scrollbar-track {
    background: transparent;
}
.mhts-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.mhts-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
.mhts-main::-webkit-scrollbar-thumb,
#mhts-log::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 3px;
}
#mhts-log::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

/* --- WordPress Admin Bar Overlay fixes --- */
#wpadminbar {
    z-index: 99999 !important;
}