/* Analyst full-page chat layout styles */

/* Ensure height propagates from main-content-area through to analyst-page */
.main-content-area > div:has(.analyst-page),
.main-content-area > div:has(.analyst-page) > .page-container {
    height: 100%;
}

.main-content-area:has(.analyst-page) {
    overflow: hidden;
}

.analyst-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background-color: white;
}

.analyst-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}

.analyst-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
}

.analyst-agent-select {
    background: white;
    color: #1d1d1d;
    border: 1px solid #dee2e6;
    font-size: 0.85em;
    font-weight: 300;
    padding: 0.25rem 0.5rem;
    outline: none;
}

.analyst-agent-select:focus {
    border-color: #1d1d1d;
}

.analyst-messages {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.analyst-message-column {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.analyst-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.analyst-input-row-centered {
    width: 100%;
    max-width: 720px;
}

.analyst-prompt-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #1d1d1d;
    font-size: 0.85em;
    font-weight: 300;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.analyst-prompt-btn:hover {
    background-color: #f8f9fa;
    border-color: #1d1d1d;
}

.analyst-input-area {
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    flex-shrink: 0;
}

.analyst-input-row {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.analyst-input-field {
    flex: 1;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.9em;
    font-weight: 300;
    outline: none;
    border-radius: 4px;
    resize: none;
    overflow: hidden;
    min-height: 1.5em;
    max-height: 8em;
    line-height: 1.4;
}

.analyst-input-field:focus {
    border-color: #1d1d1d;
}

.analyst-send-btn {
    font-size: 0.85em;
    padding: 0.5rem 1rem;
}

/* Wider bubbles for the full-page layout */
.analyst-page .copilot-bubble-user,
.analyst-page .copilot-bubble-assistant {
    font-size: 0.9em;
    font-weight: 400;
    padding: 0.6em 0.8em;
}

.analyst-page .copilot-bubble-assistant {
    background-color: white;
}

.analyst-page .copilot-md {
    font-size: 0.95em;
}
