/* WP Bootstrap Studio — Editor Styles */

/* Chat Panel */
#wpbs-chat-panel {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wpbs-chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.wpbs-chat-welcome {
    color: #666;
    font-size: 13px;
}

.wpbs-chat-welcome ul {
    margin-top: 8px;
    padding-left: 20px;
}

.wpbs-chat-welcome li {
    margin-bottom: 4px;
    font-style: italic;
    color: #888;
}

.wpbs-chat-msg {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 85%;
}

.wpbs-msg-user {
    background: #0073aa;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.wpbs-msg-ai {
    background: #e8f4e8;
    color: #2d5a2d;
    border-bottom-left-radius: 2px;
}

.wpbs-msg-error {
    background: #fce4e4;
    color: #8b1a1a;
    border-bottom-left-radius: 2px;
}

.wpbs-chat-input-area {
    padding: 12px 15px;
}

.wpbs-chat-input-area textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
}

.wpbs-chat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.wpbs-chat-actions label {
    font-size: 12px;
    color: #666;
}

#wpbs-chat-loading {
    padding: 12px 15px;
    color: #666;
    font-size: 13px;
}

#wpbs-chat-loading .spinner {
    float: none;
    margin: 0 8px 0 0;
}

/* Preview */
#wpbs-preview-container {
    background: #f0f0f0;
    border-radius: 4px;
}

.wpbs-preview-toolbar {
    padding: 10px;
    display: flex;
    gap: 6px;
    align-items: center;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.wpbs-preview-toolbar .button.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

#wpbs-apply-html {
    margin-left: auto !important;
}

#wpbs-preview-frame {
    display: block;
    background: #fff;
    transition: width 0.3s ease;
    margin: 0 auto;
}

#wpbs-code-editor-wrapper {
    padding: 10px;
}

#wpbs-code-editor-wrapper textarea {
    width: 100%;
    font-family: 'Source Code Pro', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.5;
    tab-size: 2;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}
