/* ============================================
MODAL STYLES
============================================ */
.solomon-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.solomon-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.solomon-modal-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.solomon-modal-content p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.5;
}

.solomon-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.solomon-btn-danger, .solomon-btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.solomon-btn-danger {
    background: #dc3545;
    color: white;
}

.solomon-btn-danger:hover {
    background: #c82333;
}

.solomon-btn-cancel {
    background: #6c757d;
    color: white;
}

.solomon-btn-cancel:hover {
    background: #5a6268;
}

/* ============================================
FLOATING CHAT BUTTON
============================================ */
.solomon-chat-button {
    position: fixed;
    padding: 15px;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #f1f1f1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
    transition: all 0.3s ease;
}

.solomon-chat-button:hover {
    transform: scale(1.1);
}

/* ============================================
MINI CHATBOT
============================================ */
.solomon-mini-chatbot {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 450px;
    height: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0;
}

.solomon-mini-chatbot-header {
    padding: 15px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #dadada;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
}

.solomon-mini-chatbot-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.solomon-header-buttons {
    display: flex;
    gap: 0;
    min-height: 20px;
}

.solomon-clear-btn, .solomon-expand-btn, .solomon-minimize-btn, .solomon-close-btn {
    background: none;
    border: none;
    color: #257ab8;
    cursor: pointer;
    padding: 15px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

.solomon-clear-btn:hover, .solomon-expand-btn:hover, .solomon-minimize-btn:hover, .solomon-close-btn:hover {
    background: #dadada;
}

.solomon-close-btn {
    font-size: 18px;
    line-height: 1;
}

.solomon-mini-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    font-size: 13px;
    
    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.solomon-mini-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.solomon-mini-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.solomon-mini-chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.solomon-mini-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

.solomon-mini-chatbot-messages::-webkit-scrollbar-button {
    display: none;
}

.solomon-mini-chatbot-input {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

#solomon-mini-user-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 18px;
    outline: none;
    font-size: 16px;
    resize: none;
    overflow: hidden;
    min-height: 36px;
    max-height: 120px;
    line-height: 1.4;
    font-family: inherit;
    field-sizing: content;
    cursor: text;
}

.solomon-mini-chatbot-loading {
    text-align: center;
    padding: 10px;
}

/* ============================================
FULLSCREEN CHATBOT
============================================ */
.solomon-fullscreen-chatbot {
    position: fixed;
    align-items: center;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.solomon-fullscreen-chatbot-header {
    background-color: transparent;
    border-radius: 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    max-width: 1400px;
    width: 100%;
}

.online-text {
    font-size: 14px;
}

.solomon-title-container {
    padding: 10px;
}

.solomon-title-icon-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
}

.solomon-fullscreen-chatbot-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.solomon-fullscreen-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    max-width: 1400px;
    width: 100%;
    
    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.solomon-fullscreen-chatbot-messages::-webkit-scrollbar-button {
    display: none;
}

.solomon-fullscreen-chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

.solomon-fullscreen-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.solomon-fullscreen-chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.solomon-fullscreen-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

.solomon-fullscreen-chatbot-input {
    padding: 35px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

#solomon-fullscreen-user-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    resize: none;
    overflow: hidden;
    min-height: 48px;
    max-height: 200px;
    line-height: 1.4;
    font-family: inherit;
    field-sizing: content;
    cursor: text;
}

.solomon-fullscreen-chatbot-loading {
    text-align: center;
    padding: 10px;
}

/* ============================================
MESSAGE STYLES
============================================ */
.solomon-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.solomon-user-message {
    justify-content: flex-end;
}

.solomon-bot-message {
    justify-content: flex-start;
    position: relative;
}

.solomon-message-content {
    max-width: 80%;
    padding: 15px 20px 15px 20px;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 16px;
    position: relative;
}

.solomon-message-content h1,
.solomon-message-content h2,
.solomon-message-content h3 {
    margin: 0.4em 0 0.25em;
    line-height: 1.25;
    font-weight: 600;
}

.solomon-message-content h1 {
    font-size: 1.2em;
}

.solomon-message-content h2 {
    font-size: 1em;
}

.solomon-message-content h3 {
    font-size: 1em;
}

.solomon-message-content ul,
.solomon-message-content ol {
    margin: 0.25em 0 0.5em 1.25em;
    padding-left: 1em;
}

.solomon-message-content pre {
    background: #f6f8fa;
    padding: 10px 12px;
    border-radius: 8px;
    overflow: auto;
    font-size: 14px;
}

.solomon-message-content code {
    font-size: 0.95em;
}

.solomon-message-content strong {
    font-weight: 600;
    color: inherit;
}

.solomon-message-content a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

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

.solomon-user-message .solomon-message-content {
    background: #007cba;
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.solomon-bot-message .solomon-message-content {
    background: #f1f1f1;
    color: #333;
    border-radius: 4px 12px 12px 12px;
    margin-bottom: 15px;
}

/* ============================================
FEEDBACK BUTTONS
============================================ */
.solomon-feedback-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    opacity: 1;
    padding: 5px;
    background-color: #fff;
    border: solid 1px #eee;
    position: absolute;
    bottom: -25px;
    right: -15px;
    border-radius: 4px;
}

.solomon-feedback-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    padding: 4px 8px;
    transition: all 0.2s ease;
    opacity: 0.4;
}

.solomon-feedback-btn:hover:not(:disabled) {
    color: #007cba;
    transform: scale(1.1);
    opacity: 0.7;
}

.solomon-feedback-btn:disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}

.solomon-feedback-btn.active-positive {
    color: #28a745 !important;
    opacity: 1 !important;
}

.solomon-feedback-btn.active-negative {
    color: #dc3545 !important;
    opacity: 1 !important;
}

.solomon-feedback-btn.active-positive:disabled {
    color: #28a745 !important;
    opacity: 1 !important;
}

.solomon-feedback-btn.active-negative:disabled {
    color: #dc3545 !important;
    opacity: 1 !important;
}

/* ============================================
SEND BUTTONS
============================================ */
.solomon-send-btn {
    padding: 8px;
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.solomon-send-btn:hover {
    background: #f1f1f1;
}

/* ============================================
TYPING INDICATOR
============================================ */
.solomon-typing-indicator {
    display: inline-block;
}

.solomon-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #007cba;
    margin: 0 2px;
    animation: solomon-typing 1.4s infinite ease-in-out;
}

.solomon-typing-indicator span:nth-child(1) { 
    animation-delay: -0.32s; 
}

.solomon-typing-indicator span:nth-child(2) { 
    animation-delay: -0.16s; 
}

@keyframes solomon-typing {
    0%, 80%, 100% { 
        transform: scale(0); 
        opacity: 0.5; 
    }
    40% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* ============================================
ERROR MESSAGE
============================================ */
.solomon-error-message {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
}

/* ============================================
RESPONSIVE DESIGN
============================================ */
@media (max-width: 768px) {
    .solomon-mini-chatbot, .solomon-fullscreen-chatbot {
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    
    .solomon-chat-button {
        bottom: 10px;
        left: 10px;
    }
}