/* ============================================
   FULLSCREEN CHATBOT
   ============================================ */
   .solomon-fullscreen-chatbot {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solomon-fullscreen-chatbot-wrapper {
    border-bottom: 1px solid #eee;
    border-top: 1px solid #eee;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.solomon-fullscreen-chatbot-header {
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px 25px;
    max-width: 1400px;
    width: 100%;
}

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

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

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

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

.solomon-fullscreen-messages-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
}

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

.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-messages::-webkit-scrollbar-button {
    display: none;
}

.solomon-fullscreen-chatbot-input {
    padding: 25px;
    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;
}

/* ============================================
   MINI CHATBOT
   ============================================ */
.solomon-mini-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 450px;
    height: 600px;
    background: #fff;
    border: 1px solid #e0e0e0;
    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;
}

.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-mini-messages-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.solomon-mini-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    font-size: 13px;
    height: 100%;
    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: 8px;
    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;
}

/* ============================================
   FLOATING CHAT BUTTON
   ============================================ */
.solomon-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    padding: 5px;
    background: #f1f1f1;
    border-radius: 4px;
    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);
}

.solomon-chat-button img {
    width: 48px;
    height: 48px;
}

/* ============================================
   HEADER BUTTONS
   ============================================ */
.solomon-header-buttons {
    display: flex;
    gap: 0;
    min-height: 20px;
}

.solomon-clear-btn, 
.solomon-expand-btn, 
.solomon-minimize-btn, 
.solomon-close-btn,
.solomon-theme-btn {
    background: none;
    border: 1px solid #eee;
    margin-left: 2px;
    color: #257ab8;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

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

.solomon-expand-btn, 
.solomon-minimize-btn {
    padding: 3px !important;
}

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

.solomon-theme-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.solomon-theme-btn:hover svg {
    transform: rotate(20deg);
}

.solomon-icon-light,
.solomon-icon-dark {
    transition: opacity 0.2s ease;
}

/* ============================================
   SEND BUTTON
   ============================================ */
.solomon-send-btn {
    padding: 10px;
    background-color: #f1f1f1;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

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

#solomon-fullscreen-send-message {
    height: 48px !important;
    width: 48px !important;
}

.solomon-fullscreen-chatbot-input .solomon-send-btn {
    padding: 14px !important;
}

/* ============================================
   SCROLL TO BOTTOM BUTTON
   ============================================ */
.solomon-scroll-to-bottom {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #007cba;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.solomon-scroll-to-bottom:hover {
    background: #005a87;
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.solomon-scroll-to-bottom svg {
    display: block;
}

/* ============================================
   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;
    flex-direction: column;
}

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

.solomon-message-content p {
    margin: 0 !important;
}

.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,
.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;
}

/* ============================================
   AI DETAILS METADATA
   ============================================ */
.solomon-ai-metadata {
    margin-top: 0;
    padding-top: 0;
}

.solomon-ai-details-toggle {
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background-color: #fff;
    border: solid 1px #eee;
    border-radius: 4px;
}

.solomon-ai-details-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.solomon-ai-details-toggle i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.solomon-ai-details-content {
    margin-top: 8px;
    padding: 10px;
    background-color: #fff;
    border: dashed 1px #c33;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.solomon-ai-detail-item {
    margin-bottom: 6px;
}

.solomon-ai-detail-item:last-child {
    margin-bottom: 0;
}

.solomon-ai-detail-item strong {
    color: #333;
    font-weight: 600;
}

.solomon-sources-list {
    margin: 6px 0 0 0;
    padding-left: 20px;
    list-style: disc;
}

.solomon-sources-list li {
    margin-bottom: 4px;
    color: #555;
}

.solomon-sources-list a {
    color: #0073aa;
    text-decoration: none;
}

.solomon-sources-list a:hover {
    text-decoration: underline;
}

/* ============================================
   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;
}

/* ============================================
   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;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes expandDiagonal {
    from {
        opacity: 0;
        transform: translate(30px, 30px) scale(0.8);
        transform-origin: bottom right;
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
        transform-origin: center;
    }
}

@keyframes collapseDiagonal {
    from {
        opacity: 1;
        transform: translate(0, 0) scale(1);
        transform-origin: bottom right;
    }
    to {
        opacity: 0;
        transform: translate(30px, 30px) scale(0.8);
        transform-origin: bottom right;
    }
}

.solomon-mini-chatbot.fade-up-in {
    animation: fadeUpIn 0.3s ease-out forwards;
}

.solomon-mini-chatbot.fade-down-out {
    animation: fadeDownOut 0.3s ease-out forwards;
}

.solomon-fullscreen-chatbot.expand-diagonal {
    animation: expandDiagonal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.solomon-fullscreen-chatbot.collapse-diagonal {
    animation: collapseDiagonal 0.3s ease-out forwards;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .solomon-fullscreen-chatbot-header {
        padding: 15px;
        max-width: 100%;
    }
    
    .solomon-fullscreen-chatbot-messages {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .solomon-fullscreen-chatbot-input {
        padding: 20px 15px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .solomon-mini-chatbot {
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    
    .solomon-chat-button {
        bottom: 10px;
        right: 10px;
    }
}