﻿/* Chat message container */
#textChatLog {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* spacing between messages */
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
}

/* User messages */
.user-message {
    align-self: flex-end;
    background-color: #0d6efd; /* Bootstrap primary blue */
    color: white;
    padding: 8px 12px;
    border-radius: 15px 15px 0 15px;
    max-width: 70%;
    word-wrap: break-word;
}

/* AI messages */
.ai-message {
    align-self: flex-start;
    background-color: #e9ecef; /* light gray */
    color: #212529; /* dark text */
    padding: 8px 12px;
    border-radius: 15px 15px 15px 0;
    max-width: 70%;
    word-wrap: break-word;
}

/* Scrollbar for chat log */
#textChatLog {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #adb5bd #f8f9fa;
}

    #textChatLog::-webkit-scrollbar {
        width: 8px;
    }

    #textChatLog::-webkit-scrollbar-track {
        background: #f8f9fa;
    }

    #textChatLog::-webkit-scrollbar-thumb {
        background-color: #adb5bd;
        border-radius: 4px;
    }

.instance-label {
    margin-top: 8px;
    font-size: 0.9rem; /* slightly smaller */
    color: #333;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 100%;
}

.instance-price {
    margin-top: 8px;
    font-size: 24px; /* slightly smaller */
    color: #333;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 100%;
    float: right;
}

.icon-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.status-spinner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.api-key {
    font-family: monospace;
}

.action-icons i {
    cursor: pointer;
    margin-left: 6px;
}

.btn-icon {
    padding: 2px 6px;
    font-size: 0.8rem;
}
/* Use Bootstrap primary for the slider thumb and track */
#instanceSlider.form-range {
    width: 100%;
    height: 0.5rem;
    background: rgba(var(--bs-primary-rgb), 0.25); /* light track */
    border-radius: 0.25rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

    /* Webkit browsers (Chrome, Safari, Edge) */
    #instanceSlider.form-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 1rem;
        height: 1rem;
        background-color: var(--bs-primary);
        border-radius: 50%;
        border: none;
        cursor: pointer;
        margin-top: -0.25rem; /* align with track */
        transition: background 0.2s;
    }

        #instanceSlider.form-range::-webkit-slider-thumb:hover {
            background-color: var(--bs-primary);
        }

    /* Firefox */
    #instanceSlider.form-range::-moz-range-thumb {
        width: 1rem;
        height: 1rem;
        background-color: var(--bs-primary);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s;
    }

    #instanceSlider.form-range::-moz-range-track {
        background: rgba(var(--bs-primary-rgb), 0.25);
        height: 0.5rem;
        border-radius: 0.25rem;
    }

    /* IE/Edge */
    #instanceSlider.form-range::-ms-thumb {
        width: 1rem;
        height: 1rem;
        background-color: var(--bs-primary);
        border: none;
        border-radius: 50%;
        cursor: pointer;
    }

    #instanceSlider.form-range::-ms-track {
        background: rgba(var(--bs-primary-rgb), 0.25);
        height: 0.5rem;
        border-radius: 0.25rem;
        border-color: transparent;
        color: transparent;
    }
