/* ============================================================
   KG Notify — shared Toast + Confirm dialog visuals
   Used by templates/partials/_kg_toast.html, included from both
   templates/base/base.html and templates/base/base2.html.

   Uses var(--kg-color-*, fallback) everywhere so it renders
   correctly even on base.html, which does not (yet) declare the
   full kg-* design-token set the way base2.html does.
   ============================================================ */

.prof-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--kg-color-white, #fff);
    color: var(--kg-color-text, #111111);
    padding: 16px 52px 16px 18px;
    border-radius: var(--kg-radius-lg, 20px);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--kg-font-family, 'Roboto', sans-serif);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transform: translateY(-80px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    pointer-events: none;
    min-width: 320px;
    max-width: min(480px, calc(100vw - 32px));
    border: 1px solid var(--kg-color-border, #E5E7EB);
}
.prof-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.prof-toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.prof-toast i { font-size: 20px; flex-shrink: 0; }
#toastMsg {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}
.prof-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: var(--kg-radius-full, 999px);
    background: var(--kg-color-surface, #F9FAFB);
    color: var(--kg-color-text-muted, #373435);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.prof-toast-close:hover {
    background: var(--kg-color-border, #E5E7EB);
    transform: scale(1.05);
}
.prof-toast-close i { font-size: 13px; }

@media (max-width: 576px) {
    .prof-toast {
        left: 16px;
        right: 16px;
        top: 16px;
        min-width: 0;
        max-width: none;
    }
}

/* Global Confirm modal — the shared surface/corners/border/title-color
   chrome is handled by the project-wide .modal-content/.modal-header/
   .modal-footer override; these rules are just the confirm-specific
   message + button treatment. */
.kg-confirm-message {
    font-size: 14px;
    color: var(--kg-color-text-muted, #373435);
    margin: 0;
    line-height: 1.6;
}
.kg-confirm-btn {
    border-radius: var(--kg-radius-full, 999px);
    padding: 9px 22px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease, transform 0.1s ease;
}
.kg-confirm-btn-cancel {
    background: var(--kg-color-surface, #F9FAFB);
    color: var(--kg-color-text-muted, #373435);
    border: 1.5px solid var(--kg-color-border, #E5E7EB);
}
.kg-confirm-btn-cancel:hover { background: var(--kg-color-border, #E5E7EB); }
.kg-confirm-btn-primary {
    background: var(--kg-color-primary, #01529C);
    color: #fff;
}
.kg-confirm-btn-primary:hover {
    background: var(--kg-color-primary-dark, #185286);
    transform: translateY(-1px);
}
