/* ==========================================================================
   MSGLOW BI — style bersama (public & admin)
   ========================================================================== */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.font-tabular { font-variant-numeric: tabular-nums; }

/* Loading state untuk area yang sedang fetch data */
[data-loading="true"] {
    position: relative;
    pointer-events: none;
}
[data-loading="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    border-radius: inherit;
    z-index: 5;
}
[data-loading="true"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid #FED7AA;
    border-top-color: #F97316;
    border-radius: 50%;
    animation: app-spin .7s linear infinite;
    z-index: 6;
}
@keyframes app-spin { to { transform: rotate(360deg); } }

/* Skeleton text sebelum data datang */
.skeleton {
    display: inline-block;
    min-width: 4rem;
    height: 1em;
    border-radius: .375rem;
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 37%, #F1F5F9 63%);
    background-size: 400% 100%;
    animation: app-shimmer 1.4s ease infinite;
    color: transparent !important;
}
@keyframes app-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Toast */
#app-toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: calc(100vw - 2rem);
}
.app-toast {
    min-width: 260px;
    max-width: 420px;
    padding: .85rem 1rem;
    border-radius: .9rem;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    border: 1px solid transparent;
    animation: app-toast-in .2s ease-out;
}
.app-toast.success { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.app-toast.error   { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.app-toast.warning { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.app-toast.info    { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
@keyframes app-toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
