/* Notify + loading globais do Painel */
.pc-notify {
    position: fixed;
    top: max(0.9rem, env(safe-area-inset-top));
    right: max(0.9rem, env(safe-area-inset-right));
    z-index: 12000;
    display: grid;
    gap: 0.55rem;
    width: min(22.5rem, calc(100vw - 1.8rem));
    pointer-events: none;
}

.pc-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
    border-radius: 0.85rem;
    background: #1a1e24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
    color: #e8eaed;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.88rem;
    line-height: 1.4;
    animation: pc-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.pc-toast > .fas {
    margin-top: 0.12rem;
    font-size: 1rem;
}

.pc-toast-body {
    overflow-wrap: anywhere;
}

.pc-toast-close {
    width: 1.6rem;
    height: 1.6rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: #9aa3af;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.pc-toast-close:hover,
.pc-toast-close:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.pc-toast-sucesso {
    border-color: rgba(74, 222, 128, 0.35);
}

.pc-toast-sucesso > .fas {
    color: #4ade80;
}

.pc-toast-erro {
    border-color: rgba(248, 113, 113, 0.4);
}

.pc-toast-erro > .fas {
    color: #f87171;
}

.pc-toast-aviso {
    border-color: rgba(250, 204, 21, 0.38);
}

.pc-toast-aviso > .fas {
    color: #facc15;
}

.pc-toast-info {
    border-color: rgba(255, 106, 0, 0.4);
}

.pc-toast-info > .fas {
    color: #ff6a00;
}

.pc-toast.is-out {
    animation: pc-toast-out 0.2s ease-in forwards;
}

.pc-loading {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: grid;
    place-items: center;
    background: rgba(18, 21, 26, 0.62);
    backdrop-filter: blur(3px);
}

.pc-loading[hidden] {
    display: none !important;
}

.pc-loading-box {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    padding: 1.35rem 1.6rem;
    border-radius: 1rem;
    background: #1a1e24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
    animation: pc-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.pc-loading-spinner {
    width: 2.6rem;
    height: 2.6rem;
    border: 3px solid rgba(255, 106, 0, 0.2);
    border-top-color: #ff6a00;
    border-radius: 50%;
    animation: pc-spin 0.75s linear infinite;
}

.pc-loading-text {
    margin: 0;
    color: #e8eaed;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
}

body.pc-is-loading {
    cursor: wait;
}

@keyframes pc-spin {
    to { transform: rotate(360deg); }
}

@keyframes pc-toast-in {
    from {
        opacity: 0;
        transform: translateX(0.8rem) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pc-toast-out {
    to {
        opacity: 0;
        transform: translateX(0.7rem) scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-loading-spinner,
    .pc-loading-box,
    .pc-toast,
    .pc-toast.is-out {
        animation: none;
    }
}
