/**
 * Antigravity Core — AI Assistant Chat Styles
 * Extracted from InterfaceRenderer.php for high performance and browser caching
 */
#ag-ai-fab-wrapper {
    position: fixed !important;
    bottom: 85px !important;
    right: 20px !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
}
#ag-ai-chat-bubble {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    background: #ffffff !important;
    border: 2px solid var(--ag-brand-orange, #D76314) !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    outline: none !important;
}
#ag-ai-chat-bubble:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 25px rgba(215, 99, 20, 0.4) !important;
}
#ag-ai-drawer {
    position: fixed !important;
    bottom: 145px !important;
    right: 20px !important;
    width: 380px !important;
    max-width: calc(100vw - 32px) !important;
    height: 490px !important;
    max-height: calc(100vh - 160px) !important;
    z-index: 999999 !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(215, 99, 20, 0.2) !important;
    background: #FAF6F0 !important;
    padding: 16px !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
}
#ag-ai-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(215, 99, 20, 0.15);
}
#ag-ai-drawer-header h3 {
    margin: 0;
    font-size: 19px;
    color: var(--ag-brand-orange, #D76314);
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}
#ag-ai-drawer-close {
    background: none;
    border: none;
    font-size: 26px;
    color: #8c9ba5;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}
#ag-ai-drawer-close:hover {
    color: var(--ag-brand-orange, #D76314);
}
#ag-ai-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}
.ag-ai-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 90%;
}
.ag-ai-message.assistant-msg {
    align-self: flex-start;
}
.ag-ai-message.user-msg {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.msg-avatar {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.msg-content {
    background: #FFFFFF;
    border: 1px solid rgba(26,26,26,0.08);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #1a1a1a;
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), 'Cormorant Garamond', serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.ag-ai-message.user-msg .msg-content {
    background: #F4EBE2;
    border-color: rgba(215, 99, 20, 0.2);
}
.ag-ai-starter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.ag-ai-starter-chip {
    display: inline-block;
    background: #FFFFFF;
    border: 1px solid var(--ag-brand-orange, #D76314);
    color: var(--ag-brand-orange, #D76314);
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), 'Cormorant Garamond', serif;
    transition: all 0.2s ease;
    line-height: 1.3;
    text-align: left;
}
.ag-ai-starter-chip:hover {
    background: var(--ag-brand-orange, #D76314);
    color: #ffffff;
    transform: translateY(-1px);
}
.ag-ai-quick-btn {
    display: inline-block;
    background: #FFFFFF;
    border: 1px solid var(--ag-brand-orange, #D76314);
    color: var(--ag-brand-orange, #D76314);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    margin-right: 6px;
    text-decoration: none;
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), 'Cormorant Garamond', serif;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.ag-ai-quick-btn:hover {
    background: var(--ag-brand-orange, #D76314);
    color: #FFFFFF !important;
    transform: translateY(-1px);
}
#ag-ai-drawer-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(215, 99, 20, 0.15);
}
#ag-ai-chat-form-drawer {
    display: flex;
    gap: 8px;
    position: relative;
}
#ag-ai-chat-input {
    flex: 1;
    box-sizing: border-box;
    height: 44px;
    border: 1px solid rgba(215, 99, 20, 0.25);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    background: #FFFFFF;
    color: #1a1a1a;
    font-family: var(--ag-font-primary, 'Cormorant Garamond'), 'Cormorant Garamond', serif;
    outline: none;
    transition: border-color 0.2s;
}
#ag-ai-chat-input:focus {
    border-color: var(--ag-brand-orange, #D76314);
    box-shadow: 0 0 0 2px rgba(215, 99, 20, 0.15);
}
#ag-ai-chat-send {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: var(--ag-brand-orange, #D76314);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(215, 99, 20, 0.25);
    transition: background 0.2s, transform 0.2s;
}
#ag-ai-chat-send:hover {
    background: #c0540d;
    transform: scale(1.04);
}
@media screen and (max-width: 767.98px) {
    #ag-ai-chat-input {
        font-size: 16px !important;
    }
    #ag-ai-drawer {
        right: 16px !important;
        bottom: 140px !important;
    }
}
