/* Zaprosto AI Widget Styles */
:root {
    --zp-primary: #e63946;
    --zp-secondary: #1d3557;
    --zp-accent: #f1faee;
    --zp-text: #333;
    --zp-bg: #fff;
    --zp-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#zp-ai-widget-container {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#zp-ai-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--zp-primary);
    box-shadow: var(--zp-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#zp-ai-launcher:hover {
    transform: scale(1.1);
}

#zp-ai-launcher svg {
    fill: white;
    width: 30px;
    height: 30px;
}

#zp-ai-window {
    width: 380px;
    height: 550px;
    background: var(--zp-bg);
    border-radius: 16px;
    box-shadow: var(--zp-shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

#zp-ai-header {
    background: var(--zp-secondary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#zp-ai-close {
    cursor: pointer;
    font-size: 20px;
    opacity: 0.8;
}

#zp-ai-close:hover {
    opacity: 1;
}

#zp-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zp-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.zp-msg-user {
    align-self: flex-end;
    background: var(--zp-primary);
    color: white;
    border-bottom-right-radius: 2px;
}

.zp-msg-ai {
    align-self: flex-start;
    background: #f0f0f0;
    color: var(--zp-text);
    border-bottom-left-radius: 2px;
    border: 1px solid #e0e0e0;
}

.zp-msg-source {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
    display: block;
    text-transform: uppercase;
}

#zp-ai-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

#zp-ai-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-size: 14px;
}

#zp-ai-send {
    background: var(--zp-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zp-typing {
    font-style: italic;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
    display: none;
}
