<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/**
 * OpenAI Assistant Chat Styles - Responsive Version
 */

/* Container */
.oac-chat-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px 0;
    border-radius: 8px;
    overflow: visible; /* Changed from hidden to allow expansion */
    transition: all 0.3s ease;
}

.oac-chat-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Initially collapsed state - only show input area */
.oac-chat-box.collapsed {
    height: auto !important; /* Override inline height */
    min-height: auto;
}

.oac-chat-box.collapsed .oac-messages {
    display: none;
}

/* Expanded state */
.oac-chat-box.expanded .oac-messages {
    display: block;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        max-height: 400px; /* Match your default height */
        transform: translateY(0);
    }
}

/* Messages area */
.oac-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #fff;
    max-height: 400px; /* Default max height */
    min-height: 200px; /* Minimum height when expanded */
}

/* Make messages area responsive */
@media (max-width: 768px) {
    .oac-messages {
        max-height: 300px;
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .oac-messages {
        max-height: 250px;
        min-height: 120px;
    }
}

/* Message styling */
.oac-message {
    margin-bottom: 15px;
    max-width: 80%;
    border-radius: 12px;
    padding: 10px 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.oac-user {
    background-color: #e7f3ff;
    margin-left: auto;
    color: #333;
}

.oac-assistant {
    background-color: #f0f0f0;
    margin-right: auto;
    color: #333;
}

.oac-thinking .oac-message-content {
    display: flex;
    align-items: center;
}

.oac-thinking .oac-message-content::after {
    content: "...";
    animation: thinking 1.5s infinite;
    width: 24px;
    text-align: left;
    display: inline-block;
}

@keyframes thinking {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

.oac-error {
    color: #e53935;
}

/* Message content formatting */
.oac-message-content {
    word-break: break-word;
}

.oac-message-content a {
    color: #2196F3;
    text-decoration: none;
}

.oac-message-content a:hover {
    text-decoration: underline;
}

.oac-message-content p {
    margin: 0 0 10px 0;
}

.oac-message-content p:last-child {
    margin-bottom: 0;
}

.oac-message-content ul, 
.oac-message-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.oac-message-content code {
    background-color: #f1f1f1;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

.oac-message-content pre {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: monospace;
}

/* Input area - always visible */
.oac-input-area {
    display: flex;
    padding: 15px;
    background-color: #fff;
    border-top: none; /* Remove border when collapsed */
    border-radius: 8px; /* Full radius when collapsed */
    transition: all 0.3s ease;
    align-items: center;
    gap: 10px;
}

/* When expanded, add border and adjust radius */
.oac-chat-box.expanded .oac-input-area {
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    background-color: #f5f5f5;
}

.oac-question-input {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px; /* Prevent zoom on mobile */
    outline: none;
    transition: all 0.2s ease;
}

.oac-question-input:focus {
    border-color: #4a6da7;
    box-shadow: 0 0 0 3px rgba(74, 109, 167, 0.2);
}

.oac-send-btn, .oac-new-chat-btn, .oac-save-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.oac-send-btn {
    background-color: #4a6da7;
}

.oac-new-chat-btn {
    background-color: #6c757d;
    display: none; /* Hide initially */
}

.oac-save-btn {
    background-color: #81c784; /* Pastel green */
    display: none; /* Hide initially */
}

/* Show new chat and save buttons only when expanded */
.oac-chat-box.expanded .oac-new-chat-btn,
.oac-chat-box.expanded .oac-save-btn {
    display: block;
}

.oac-send-btn:hover, .oac-new-chat-btn:hover, .oac-save-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.oac-save-btn:hover {
    background-color: #66bb6a; /* Slightly darker green on hover */
}

.oac-send-btn:disabled, .oac-new-chat-btn:disabled, .oac-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .oac-message {
        max-width: 90%;
    }
    
    .oac-input-area {
        padding: 12px;
        gap: 8px;
    }
    
    .oac-question-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .oac-send-btn, .oac-new-chat-btn, .oac-save-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .oac-input-area {
        flex-direction: column;
        gap: 10px;
    }
    
    .oac-question-input {
        width: 100%;
        margin: 0;
    }
    
    .oac-send-btn, .oac-new-chat-btn, .oac-save-btn {
        flex: 1;
        min-width: 120px;
    }
    
    /* Button row for mobile */
    .oac-chat-box.expanded .oac-input-area {
        flex-direction: row;
    }
    
    .oac-chat-box.expanded .oac-question-input {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .oac-chat-box.expanded .oac-input-area &gt; div {
        display: flex;
        gap: 10px;
        width: 100%;
    }
}

/* Admin area styles */
.oac-error {
    background-color: #ffebee;
    border-left: 4px solid #e53935;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.oac-shortcode-info {
    margin-top: 30px;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
}

.oac-shortcode-info code {
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    display: inline-block;
    margin: 5px 0;
}

#oac-test-result {
    margin-left: 10px;
    font-weight: bold;
    display: inline-block;
}

/* Smooth transitions for better UX */
* {
    box-sizing: border-box;
}

.oac-chat-container * {
    transition: all 0.2s ease;
}</pre></body></html>