/* ao.base.css
   Minimal safe defaults. Avoid layout changes.
   In safe mode, load this BEFORE AgencyOffice.css. */

html, body {
    font-family: var(--font-sans);
}

body {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Links */
a {
    color: var(--color-link);
    text-decoration: none;
}

    a:hover {
        color: var(--color-link-hover);
        text-decoration: underline;
    }

/* Focus ring */
:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Form elements inherit font */
input, select, textarea, button {
    font: inherit;
}

/* ==============================================
   Notifications / Toasts
   ============================================== */

#aoToastContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    width: 360px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

    #aoToastContainer .ao-toast {
        pointer-events: auto;
    }

.ao-toast {
    background: var(--color-panel, #ffffff);
    color: var(--color-text, #111827);
    border: 1px solid var(--color-border, #d7deea);
    border-left-width: 4px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-sans, PT Sans, Arial, sans-serif);
    animation: ao-toast-in .25s ease-out;
}

@keyframes ao-toast-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ao-toast-head {
    font-weight: 700;
    margin-bottom: 6px;
    color: inherit;
}

.ao-toast-body {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 10px;
    color: inherit;
}

.ao-toast-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .ao-toast-actions button,
    .ao-toast-actions .Button,
    .ao-toast-actions .Button.Secondary,
    .ao-toast-actions .Button.SecondaryButton {
        pointer-events: auto;
        cursor: pointer;
    }

.ao-toast.sev-1 {
    border-left-color: #5091C4;
}

.ao-toast.sev-2 {
    border-left-color: #F88D2F;
}

.ao-toast.sev-3 {
    border-left-color: #E42289;
}

/* ==============================================
   Notification bell / badge
   ============================================== */

.ao-notif-bell {
    cursor: pointer;
    user-select: none;
    position: relative;
    font-size: 14px;
}

.ao-notif-count {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 6px;
    margin-left: 4px;
    background: #E42289;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}

.ao-notif-inbox-link {
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

/* ==============================================
   Responsive
   ============================================== */

@media (max-width: 640px) {
    #aoToastContainer {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }
}
