@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* /Components/AiChat/AiChatWidget.razor.rz.scp.css */
.ai-chat-root[b-cicwzwfspv] {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20000;
}

.ai-chat-icon-wrap[b-cicwzwfspv] {
    position: relative;
    width: 56px;
    height: 56px;
}

.ai-chat-icon-btn[b-cicwzwfspv] {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(180deg, var(--theme-primary) 0%, #189a74 100%) !important;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 2px 0 rgba(255, 255, 255, 0.18) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.ai-chat-icon-btn i[b-cicwzwfspv] {
    font-size: 1.15rem;
    line-height: 1;
}

.ai-chat-icon-btn:hover[b-cicwzwfspv] {
    transform: translateY(-2px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3), 0 2px 0 rgba(255, 255, 255, 0.22) inset;
    filter: brightness(1.05);
}

.ai-chat-icon-btn:active[b-cicwzwfspv] {
    transform: translateY(0) scale(0.98);
}

.ai-chat-hide-btn[b-cicwzwfspv] {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
    transition: transform 120ms ease, background 120ms ease, filter 120ms ease;
}

.ai-chat-hide-btn i[b-cicwzwfspv] {
    font-size: 0.78rem;
}

.ai-chat-hide-btn:hover[b-cicwzwfspv] {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 1);
    filter: brightness(1.02);
}

.ai-chat-hide-btn:active[b-cicwzwfspv] {
    transform: translateY(0) scale(0.98);
}

.ai-chat-anim-open[b-cicwzwfspv] {
    animation: aiChatPop-b-cicwzwfspv 140ms ease-out;
    transform-origin: bottom right;
}

@keyframes aiChatPop-b-cicwzwfspv {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-chat-panel[b-cicwzwfspv] {
    position: fixed;
    right: 18px;
    bottom: 82px;
    width: min(420px, calc(100vw - 36px));
    height: min(640px, 78vh);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 16px;
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 20000;
    display: flex;
    flex-direction: column;
}

.ai-chat-header[b-cicwzwfspv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    background: linear-gradient(180deg, rgba(32, 201, 151, 0.16), rgba(255, 255, 255, 0.98));
}

.ai-chat-header-left[b-cicwzwfspv] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
    row-gap: 6px;
}

.ai-chat-header-titles[b-cicwzwfspv] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ai-chat-create-btn[b-cicwzwfspv] {
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(32, 201, 151, 0.95) 0%, rgba(24, 154, 116, 0.95) 100%) !important;
    border: 1px solid rgba(32, 201, 151, 0.55) !important;
    color: #ffffff !important;
    font-weight: 900;
    box-shadow: 0 16px 35px rgba(32, 201, 151, 0.20);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.ai-chat-create-btn:hover[b-cicwzwfspv] {
    transform: translateY(-1px);
    box-shadow: 0 20px 45px rgba(32, 201, 151, 0.28);
    filter: brightness(1.04);
}

.ai-chat-create-btn:active[b-cicwzwfspv] {
    transform: translateY(0) scale(0.98);
}

.ai-chat-header-icon[b-cicwzwfspv] {
    color: var(--theme-primary) !important;
}

.ai-chat-header-title[b-cicwzwfspv] {
    font-weight: 900;
    font-size: 0.95rem;
    color: rgba(14, 29, 23, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-chat-header-actions[b-cicwzwfspv] {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ai-chat-close-btn[b-cicwzwfspv] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.55);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: color 120ms ease, transform 120ms ease;
}

.ai-chat-close-btn:hover[b-cicwzwfspv] {
    color: #111;
    transform: scale(1.1);
}

.ai-chat-body[b-cicwzwfspv] {
    display: flex;
    flex: 1;
    min-height: 0;
}

.ai-chat-thread[b-cicwzwfspv] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ai-chat-messages[b-cicwzwfspv] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    background: linear-gradient(180deg, rgba(32, 201, 151, 0.05) 0%, rgba(0, 0, 0, 0.00) 100%);
}

.ai-chat-message[b-cicwzwfspv] {
    display: flex;
    margin-bottom: 10px;
}

.ai-chat-message.from-user[b-cicwzwfspv] {
    justify-content: flex-end;
}

.ai-chat-message.from-ai[b-cicwzwfspv] {
    justify-content: flex-start;
}

.ai-chat-message-content[b-cicwzwfspv] {
    max-width: 86%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.ai-chat-message.from-user .ai-chat-message-content[b-cicwzwfspv] {
    background: rgba(32, 201, 151, 0.14);
    border-color: rgba(32, 201, 151, 0.35);
}

.ai-chat-message.from-ai .ai-chat-message-content[b-cicwzwfspv] {
    background: rgba(0, 0, 0, 0.015);
    border-color: rgba(0, 0, 0, 0.06);
}

.ai-chat-typing[b-cicwzwfspv] {
    min-width: 84px;
}

.ai-chat-typing-dots[b-cicwzwfspv] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 14px;
}

.ai-chat-typing-dots span[b-cicwzwfspv] {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(14, 29, 23, 0.48);
    animation: ai-chat-typing-bounce-b-cicwzwfspv 1.1s infinite ease-in-out;
}

.ai-chat-typing-dots span:nth-child(2)[b-cicwzwfspv] {
    animation-delay: 0.15s;
}

.ai-chat-typing-dots span:nth-child(3)[b-cicwzwfspv] {
    animation-delay: 0.3s;
}

@keyframes ai-chat-typing-bounce-b-cicwzwfspv {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.45;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.ai-chat-message-role[b-cicwzwfspv] {
    font-size: 0.75rem;
    font-weight: 800;
    opacity: 0.85;
    margin-bottom: 6px;
}

.ai-chat-message.from-user .ai-chat-message-role[b-cicwzwfspv] {
    color: var(--theme-primary, #20c997) !important;
}

.ai-chat-message.from-ai .ai-chat-message-role[b-cicwzwfspv] {
    color: rgba(14, 29, 23, 0.65) !important;
}

.ai-chat-message-text[b-cicwzwfspv] {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.95rem;
}

.ai-chat-message-image[b-cicwzwfspv] {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 260px;
    border-radius: 10px;
    margin-top: 6px;
    object-fit: contain;
    cursor: zoom-in;
    transition: filter 120ms ease;
}

.ai-chat-message-image:hover[b-cicwzwfspv] {
    filter: brightness(0.94);
}

.ai-chat-image-viewer[b-cicwzwfspv] {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(6, 14, 11, 0.82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: zoom-out;
    outline: none;
    animation: ai-chat-viewer-fade-b-cicwzwfspv 140ms ease;
}

@keyframes ai-chat-viewer-fade-b-cicwzwfspv {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ai-chat-image-viewer-img[b-cicwzwfspv] {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    cursor: default;
}

.ai-chat-image-viewer-close[b-cicwzwfspv] {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
}

.ai-chat-image-viewer-close:hover[b-cicwzwfspv] {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.ai-chat-input[b-cicwzwfspv] {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: flex-end;
    border-radius: 14px;
    margin: 10px 12px 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ai-chat-input-text[b-cicwzwfspv] {
    flex: 1;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    min-height: 42px;
    max-height: 220px;
    resize: none;
    line-height: 1.4;
    border: none !important;
    padding: 8px 8px 7px;
    overflow-y: auto;
}

.ai-chat-input-text:disabled[b-cicwzwfspv] {
    background: rgba(0, 0, 0, 0.04);
}

.ai-chat-input-text:focus[b-cicwzwfspv] {
    box-shadow: none !important;
}

.ai-chat-messages[b-cicwzwfspv]::-webkit-scrollbar {
    width: 8px;
}

.ai-chat-messages[b-cicwzwfspv]::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}

.ai-chat-messages[b-cicwzwfspv]::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-send-btn[b-cicwzwfspv] {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(32, 201, 151, 0.20);
    transition: transform 120ms ease, filter 120ms ease;
    border: none !important;
    margin-bottom: 2px;
}

.ai-chat-send-btn:active[b-cicwzwfspv] {
    transform: scale(0.98);
}

/* /Components/TextEditor/ImageSelector.razor.rz.scp.css */
.dropzone[b-d17db1r031] {
    position: relative;
    overflow: hidden;
    border: 2px dotted rgba(0,0,0,.2);
    background-color: rgba(0,0,0,.09);
    margin-bottom: 20px;
    border-radius: 5px;
}

    .dropzone.dropzone-active[b-d17db1r031] {
        background-color: #999;
    }

    .dropzone label[b-d17db1r031] {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

.fileProgress[b-d17db1r031] {
    vertical-align: middle !important;
}

.text-icon-light[b-d17db1r031] {
    color: #e9ecef;
}
/* /Pages/Settings/AiAgents.razor.rz.scp.css */
/* Trang quản lý AI Agent — scoped, ưu tiên biến theme PosOne */
.ai-agents-page[b-phu01hxuvf] {
    --ai-card-radius: 18px;
    --ai-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --ai-shadow-hover: 0 16px 48px rgba(15, 23, 42, 0.1);
    --ai-border: rgba(15, 23, 42, 0.08);
    --ai-muted: #64748b;
    --ai-surface: #ffffff;
    --ai-ink: #0f172a;
}

/* —— Hero —— */
.ai-agents-hero[b-phu01hxuvf] {
    position: relative;
    overflow: hidden;
    border-radius: var(--ai-card-radius);
    padding: 1.75rem 1.75rem 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    background:
        radial-gradient(1200px 400px at 100% -20%, color-mix(in srgb, var(--theme-primary, #20c997) 22%, transparent), transparent 55%),
        radial-gradient(600px 280px at 0% 120%, rgba(99, 102, 241, 0.08), transparent 50%),
        linear-gradient(165deg, #f8fafc 0%, #ffffff 40%, #f1f5f9 100%);
    border: 1px solid var(--ai-border);
    box-shadow: var(--ai-shadow);
}

.ai-agents-hero[b-phu01hxuvf]::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.ai-agents-hero-inner[b-phu01hxuvf] {
    position: relative;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.ai-agents-hero-icon[b-phu01hxuvf] {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(145deg, var(--theme-primary, #20c997) 0%, color-mix(in srgb, var(--theme-primary, #20c997) 75%, #000) 100%);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary, #20c997) 40%, transparent);
}

.ai-agents-hero-copy[b-phu01hxuvf] {
    flex: 1;
    min-width: min(100%, 280px);
}

.ai-agents-hero h2[b-phu01hxuvf] {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ai-ink);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.ai-agents-hero p[b-phu01hxuvf] {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ai-muted);
    max-width: 46rem;
}

.ai-agents-hero p strong[b-phu01hxuvf] {
    color: var(--theme-primary, #20c997);
    font-weight: 700;
}

/* —— Toolbar —— */
.ai-agents-toolbar[b-phu01hxuvf] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.1rem;
    background: var(--ai-surface);
    border-radius: 14px;
    border: 1px solid var(--ai-border);
    box-shadow: var(--ai-shadow);
}

.ai-agents-toolbar-note[b-phu01hxuvf] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ai-muted);
    max-width: 42rem;
}

.ai-agents-toolbar-note i[b-phu01hxuvf] {
    margin-top: 0.15rem;
    color: var(--theme-primary, #20c997);
    opacity: 0.9;
}

.ai-agents-btn-primary[b-phu01hxuvf] {
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 0.5rem 1.15rem !important;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary, #20c997) 35%, transparent) !important;
    border: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.ai-agents-btn-primary:hover[b-phu01hxuvf] {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--theme-primary, #20c997) 42%, transparent) !important;
}

/* —— Loading —— */
.ai-agents-loading[b-phu01hxuvf] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3.5rem 1.5rem;
    background: var(--ai-surface);
    border-radius: var(--ai-card-radius);
    border: 1px dashed var(--ai-border);
    color: var(--ai-muted);
}

.ai-agents-loading i[b-phu01hxuvf] {
    color: var(--theme-primary, #20c997);
}

/* —— Empty —— */
.ai-agents-empty[b-phu01hxuvf] {
    text-align: center;
    padding: 2.75rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: var(--ai-card-radius);
    border: 1px solid var(--ai-border);
}

.ai-agents-empty-icon[b-phu01hxuvf] {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #94a3b8;
}

.ai-agents-empty-title[b-phu01hxuvf] {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ai-ink);
    margin-bottom: 0.35rem;
}

.ai-agents-empty-desc[b-phu01hxuvf] {
    font-size: 0.9rem;
    color: var(--ai-muted);
    margin: 0;
}

/* —— Card grid —— */
.ai-agents-grid[b-phu01hxuvf] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
}

/* —— Agent card —— */
.ai-agent-card[b-phu01hxuvf] {
    position: relative;
    border-radius: var(--ai-card-radius);
    background: var(--ai-surface);
    border: 1px solid var(--ai-border);
    box-shadow: var(--ai-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.ai-agent-card[b-phu01hxuvf]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #cbd5e1;
    transition: background 0.2s ease;
}

.ai-agent-card[data-status="configured"][b-phu01hxuvf]::before {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.ai-agent-card[data-status="notconfigured"][b-phu01hxuvf]::before {
    background: linear-gradient(180deg, #94a3b8, #64748b);
}

.ai-agent-card[data-status="failed"][b-phu01hxuvf]::before {
    background: linear-gradient(180deg, #f87171, #dc2626);
}

.ai-agent-card:hover[b-phu01hxuvf] {
    box-shadow: var(--ai-shadow-hover);
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--theme-primary, #20c997) 35%, transparent);
}

.ai-agent-card-head[b-phu01hxuvf] {
    padding: 1.15rem 1.2rem 1rem 1.35rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ai-agent-card-title[b-phu01hxuvf] {
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
    color: var(--ai-ink);
    margin: 0;
    line-height: 1.3;
}

.ai-agent-card-desc[b-phu01hxuvf] {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--ai-muted);
    margin: 0.4rem 0 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.ai-agent-badge[b-phu01hxuvf] {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
    border: 1px solid transparent;
}

.ai-agent-badge-ok[b-phu01hxuvf] {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.28);
}

.ai-agent-badge-warn[b-phu01hxuvf] {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.3);
}

.ai-agent-badge-muted[b-phu01hxuvf] {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
    border-color: rgba(100, 116, 139, 0.2);
}

.ai-agent-badge-err[b-phu01hxuvf] {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.25);
}

.ai-agent-card-body[b-phu01hxuvf] {
    padding: 1rem 1.2rem 1rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-agent-meta[b-phu01hxuvf] {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.35rem 0.75rem;
    align-items: start;
    font-size: 0.8125rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: #f8fafc;
}

.ai-agent-meta-label[b-phu01hxuvf] {
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ai-agent-meta-value[b-phu01hxuvf] {
    color: var(--ai-ink);
    font-weight: 500;
    word-break: break-word;
}

.ai-agent-url-preview[b-phu01hxuvf] {
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #475569;
}

.ai-agent-card-foot[b-phu01hxuvf] {
    padding: 0.85rem 1.2rem 1.1rem 1.35rem;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, #ffffff 100%);
}

.ai-agent-card-foot .btn[b-phu01hxuvf] {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
}

.ai-agent-card-foot .btn-outline-danger[b-phu01hxuvf] {
    margin-left: auto;
}

@media (max-width: 576px) {
    .ai-agent-card-foot .btn-outline-danger[b-phu01hxuvf] {
        margin-left: 0;
        width: 100%;
    }
}

/* —— Modal —— */
.ai-agents-modal-backdrop[b-phu01hxuvf] {
    background-color: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(4px);
}

.ai-agents-modal .modal-content[b-phu01hxuvf] {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
}

.ai-agents-modal .modal-header[b-phu01hxuvf] {
    border: none;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #20c997) 14%, #fff) 0%, #ffffff 60%);
}

.ai-agents-modal .modal-title[b-phu01hxuvf] {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--ai-ink);
}

.ai-agents-modal .modal-header .close[b-phu01hxuvf] {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.ai-agents-modal .modal-header .close:hover[b-phu01hxuvf] {
    opacity: 1;
}

.ai-agents-modal .modal-body[b-phu01hxuvf] {
    padding: 1.25rem 1.5rem 1.5rem;
    background: #fafbfc;
}

.ai-agents-modal .modal-footer[b-phu01hxuvf] {
    border: none;
    padding: 1rem 1.5rem 1.25rem;
    background: #fff;
    gap: 0.5rem;
}

.ai-agents-modal .form-group[b-phu01hxuvf] {
    margin-bottom: 1.1rem;
}

.ai-agents-modal .form-group:last-of-type[b-phu01hxuvf] {
    margin-bottom: 0;
}

.ai-agent-modal-label[b-phu01hxuvf] {
    display: block;
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--ai-ink);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.ai-agents-modal .form-control[b-phu01hxuvf] {
    border-radius: 12px;
    border: 1px solid var(--ai-border);
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-agents-modal .form-control:focus[b-phu01hxuvf] {
    border-color: var(--theme-primary, #20c997);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary, #20c997) 28%, transparent);
}

.ai-agents-modal .ai-agent-webhook-input[b-phu01hxuvf] {
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
}

.ai-agent-hint[b-phu01hxuvf] {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--ai-muted);
    margin-top: 0.35rem;
}

.ai-agents-modal .modal-footer .btn[b-phu01hxuvf] {
    border-radius: 12px;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
}

.ai-agents-modal .modal-footer .btn-primary[b-phu01hxuvf] {
    border: none;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary, #20c997) 35%, transparent);
}
