/* Extracted CSS Rules */
.action-button {
    position: absolute;
    right: 10px;
    padding: 5px 10px;
    background-color: #66798C;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background-color 0.2s;
}

.action-button:hover {
    background-color: #556577;
}

.assistant-message {
    background-color: #ffffff;
    margin-right: 20%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: #2F353A;
}

/* Button focus */
.btn:focus, 
.btn.focus,
.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 121, 140, 0.25) !important;
}

/* Primary color overrides */
.btn-primary {
    background-color: #F7682C !important;
    border-color: #F7682C !important;
}

.btn-primary:hover {
    background-color: #e55a1f !important;
    border-color: #e55a1f !important;
}

.chat-container {
    height: 600px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-select,
.form-control {
    font-family: 'Source Sans Pro', sans-serif;
    color: #2F353A;
}

/* Focus states */
.form-control:focus,
.form-select:focus {
    border-color: #66798C !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 121, 140, 0.25) !important;
}

h1, .h1, h2, .h2, .display-4 {
    font-family: 'Source Sans Pro', sans-serif;
    color: #2F353A !important;
}

/* Hide tool-related elements */
.tool-button-container,
.tool-output-container,
.hidden-content {
    display: none !important;
}

.message {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Source Sans Pro', sans-serif;
    color: #2F353A;
    margin-top: 5px;
    line-height: 1.3;
}

/* Style adjustments for rendered markdown (Compactness) */
.message p { margin-top: 0; margin-bottom: 0; }
.message p:last-child { margin-bottom: 0; }
.message ul, .message ol { padding-left: 20px; margin-top: 0; margin-bottom: 0; }
.message li { margin-bottom: 0; }
.message li p { margin-bottom: 0; }
.message pre { background-color: #e9ecef; padding: 10px; border-radius: 4px; white-space: pre-wrap; word-wrap: break-word; margin-top: 0.5em; margin-bottom: 0.5em; }
.message code { font-size: 0.9em; background-color: #e9ecef; padding: 0.1em 0.1em; border-radius: 3px; }
.message pre code { background-color: transparent; padding: 0; font-size: inherit; }

.message-container {
    position: relative;
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
}

.user-message {
    background-color: #e3f2fd;
    margin-left: 20%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo-image {
    max-width: 600px;
    height: auto;
    margin-bottom: 2rem;
}

.tool-status {
    font-style: italic;
    color: #66798C;
    font-size: 0.9em;
    margin-top: 5px;
    min-height: 1.2em;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
    margin-top: 5px;
}

/* --- Styles for Tool Buttons and Output --- */
.tool-button-container { 
    padding-bottom: 10px; 
    border-bottom: 1px solid #eee; /* Separator */
    margin-bottom: 10px;
    min-height: 35px; /* Ensure space even if no buttons */
}
.tool-output-container { margin-top: 10px; } /* Keep margin for the hidden divs */
/* --- End Tool Styles --- */ 