.fcto-chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fcto-chat-header {
    background: #016ECC;
    color: white;
    padding: 24px;
    text-align: center;
}

.fcto-chat-header h3 {
    margin: 0 0 8px 0;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 600;
}

.fcto-chat-header p {
    margin: 0;
    color: #FFFFFF;
    opacity: 0.9;
    font-size: 14px;
}

.fcto-suggested-questions {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.fcto-suggested-questions p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.fcto-suggestion {
    display: inline-block;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 8px 16px;
    margin: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
}

.fcto-suggestion:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.fcto-chat-messages {
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    padding: 24px;
    background: #f8f9fa;
}

.fcto-message {
    margin-bottom: 16px;
    animation: slideIn 0.3s ease-out;
}

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

.fcto-message-content {
    display: inline-block;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 15px;
}

.fcto-user-message .fcto-message-content {
    background: #667eea;
    color: white;
    margin-left: auto;
    float: right;
    clear: both;
    border-bottom-right-radius: 4px;
}

.fcto-assistant-message .fcto-message-content {
    background: white;
    color: #212529;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
}

.fcto-chat-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.fcto-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#fcto-user-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

#fcto-user-input:focus {
    outline: none;
    border-color: #667eea;
}

.fcto-send-button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.fcto-send-button:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-1px);
}

.fcto-send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fcto-loading {
    display: inline-block;
    animation: dots 1.4s infinite;
}

/* Change primary color */
.fcto-chat-header,
.fcto-send-button,
.fcto-user-message .fcto-message-content {
    background: #016ECC;
}

.fcto-suggestion:hover {
    background: #016ECC;
    border-color: #016ECC;
}

@keyframes dots {
    0%, 20% { content: "●"; }
    40% { content: "●●"; }
    60%, 100% { content: "●●●"; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .fcto-chat-container {
        border-radius: 0;
    }
    
    .fcto-message-content {
        max-width: 90%;
    }
    
    .fcto-suggestion {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Message content formatting */
.fcto-message-content strong {
    font-weight: 600;
    color: #2c3e50;
}

.fcto-message-content em {
    font-style: italic;
    color: #495057;
}

.fcto-list-item {
    margin: 8px 0;
    padding-left: 8px;
    display: flex;
    align-items: flex-start;
}

.fcto-list-number {
    color: #667eea;
    font-weight: 600;
    margin-right: 8px;
    min-width: 24px;
}

.fcto-bullet {
    color: #667eea;
    margin-right: 8px;
    font-size: 18px;
    line-height: 1.5;
}

.fcto-header {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin: 16px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid #e9ecef;
}

.fcto-link {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
}

.fcto-link:hover {
    color: #5568d3;
}

/* Better spacing for formatted content */
.fcto-assistant-message .fcto-message-content {
    line-height: 1.6;
}

/* Code blocks (if you want to add later) */
.fcto-code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.fcto-code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Callout boxes */
.fcto-callout {
    background: #f0f7ff;
    border-left: 4px solid #667eea;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 4px;
}

.fcto-callout strong {
    color: #667eea;
}