/* Shared upper-right toast + simple confirm dialog */
.app-toast-container {
    position: fixed;
    top: 95px;
    right: 20px;
    z-index: 9999;
    width: 320px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}
.app-toast-container .app-toast {
    pointer-events: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #38a169;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 12px 16px;
    animation: appToastIn 0.25s ease-out;
}
.app-toast-container .app-toast.app-toast-danger {
    border-left-color: #e53e3e;
}
.app-toast-container .app-toast.app-toast-info {
    border-left-color: #2563eb;
}
@keyframes appToastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.app-toast-label {
    display: block;
    text-transform: uppercase;
    font-weight: 800;
    color: #94a3b8;
    font-size: 0.6rem;
    line-height: 1;
    margin-bottom: 2px;
}
.app-toast-msg {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 500;
}
.app-toast-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 8px;
}

.app-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
}
.app-confirm-overlay.active { display: flex; }
.app-confirm-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    padding: 18px 20px 16px;
}
.app-confirm-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px;
}
.app-confirm-msg {
    font-size: 0.85rem;
    color: #475569;
    margin: 0 0 14px;
    line-height: 1.4;
}
.app-confirm-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    resize: vertical;
    min-height: 72px;
}
.app-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.app-confirm-btn {
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}
.app-confirm-btn-primary {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #fff;
}
