/* UniShine Shop Assist - AI Chatbot Widget Styles */
#unishine-shop-assist-container {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#unishine-shop-assist-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
}
#unishine-shop-assist-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
#unishine-shop-assist-window {
    display: none;
    position: fixed;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    flex-direction: column;
    overflow: hidden;
}
#unishine-shop-assist-window.active {
    display: flex;
}
.unishine-shop-assist-header {
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.unishine-shop-assist-header h3 {
    margin: 0;
    font-size: 16px;
}
.unishine-shop-assist-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}
.unishine-shop-assist-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f5f5f5;
}
.unishine-shop-assist-message {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
}
.unishine-shop-assist-message.user {
    justify-content: flex-end !important;
}
.unishine-shop-assist-message-content {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
}
.unishine-shop-assist-message.bot .unishine-shop-assist-message-content {
    background: white;
    color: #333;
}
.unishine-shop-assist-message.user .unishine-shop-assist-message-content {
    color: white;
}
.unishine-shop-assist-input-area {
    padding: 16px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    gap: 8px;
}
.unishine-shop-assist-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.unishine-shop-assist-input:focus {
    border-color: #1890ff;
}
.unishine-shop-assist-send {
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.unishine-shop-assist-send:hover {
    opacity: 0.9;
}
.unishine-shop-assist-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Tab Navigation */
.unishine-shop-assist-tabs {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
}
.wp-ai-tab-button {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.wp-ai-tab-button.active {
    border-bottom-color: #1890ff;
    color: #1890ff;
}
.wp-ai-tab-icon {
    font-size: 16px;
}
.wp-ai-tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
}
.wp-ai-tab-content.active {
    display: block;
}
/* History Tab */
.wp-ai-history-header {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
}
.wp-ai-export-btn, .wp-ai-clear-btn {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 12px;
}
.wp-ai-export-btn:hover, .wp-ai-clear-btn:hover {
    background: #f5f5f5;
}
.wp-ai-history-list {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}
.wp-ai-history-item {
    padding: 12px;
    border-bottom: 1px solid #e8e8e8;
    cursor: pointer;
}
.wp-ai-history-item:hover {
    background: #f5f5f5;
}
.wp-ai-history-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.wp-ai-history-message {
    font-size: 14px;
    margin-bottom: 8px;
}
/* Settings Tab */
.wp-ai-settings-content {
    padding: 16px;
}
.wp-ai-setting-item {
    margin-bottom: 16px;
}
.wp-ai-setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}
.wp-ai-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}
.wp-ai-select:focus {
    outline: none;
    border-color: #1890ff;
}
/* Theme Colors */
.unishine-theme-blue #unishine-shop-assist-button,
.unishine-theme-blue .unishine-shop-assist-send,
.unishine-theme-blue .unishine-shop-assist-header {
    background: #1890ff;
}
.unishine-theme-blue .unishine-shop-assist-message.user .unishine-shop-assist-message-content,
.unishine-theme-blue .unishine-shop-assist-input:focus {
    border-color: #1890ff;
}
.unishine-theme-green #unishine-shop-assist-button,
.unishine-theme-green .unishine-shop-assist-send,
.unishine-theme-green .unishine-shop-assist-header {
    background: #52c41a;
}
.unishine-theme-green .unishine-shop-assist-message.user .unishine-shop-assist-message-content,
.unishine-theme-green .unishine-shop-assist-input:focus {
    border-color: #52c41a;
}
.unishine-theme-purple #unishine-shop-assist-button,
.unishine-theme-purple .unishine-shop-assist-send,
.unishine-theme-purple .unishine-shop-assist-header {
    background: #722ed1;
}
.unishine-theme-purple .unishine-shop-assist-message.user .unishine-shop-assist-message-content,
.unishine-theme-purple .unishine-shop-assist-input:focus {
    border-color: #722ed1;
}
.unishine-theme-red #unishine-shop-assist-button,
.unishine-theme-red .unishine-shop-assist-send,
.unishine-theme-red .unishine-shop-assist-header {
    background: #f5222d;
}
.unishine-theme-red .unishine-shop-assist-message.user .unishine-shop-assist-message-content,
.unishine-theme-red .unishine-shop-assist-input:focus {
    border-color: #f5222d;
}
.unishine-theme-dark #unishine-shop-assist-button,
.unishine-theme-dark .unishine-shop-assist-send,
.unishine-theme-dark .unishine-shop-assist-header {
    background: #1890ff;
}
.unishine-theme-dark .unishine-shop-assist-message.user .unishine-shop-assist-message-content,
.unishine-theme-dark .unishine-shop-assist-input:focus {
    border-color: #1890ff;
}
/* Position Variations */
.unishine-shop-assist-container.position-right {
    right: 20px;
}
.unishine-shop-assist-container.position-left {
    left: 20px;
}
.unishine-shop-assist-window.position-right {
    right: 20px;
}
.unishine-shop-assist-window.position-left {
    left: 20px;
}
.unishine-shop-assist-container.position-bottom {
    bottom: 20px;
}
.unishine-shop-assist-container.position-top {
    top: 20px;
}
.unishine-shop-assist-window.position-bottom {
    bottom: 90px;
}
.unishine-shop-assist-window.position-top {
    top: 90px;
}
EOF
echo "✅ CSS 文件创建完成"
