/* _content/CartaNova.Web/Shared/MainLayout.razor.rz.scp.css */
/* Main layout */
.container[b-pjul6nbh6z] {
    display: grid;
    grid-template-columns: 20% 1fr 20%;
    grid-template-rows: 60px 1fr;
    height: 100vh;
    /* Styles from Razor file take precedence */
    width: 100vw;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

header[b-pjul6nbh6z] {
    grid-column: 1 / 4;
    background-color: var(--panel-bg, #f0f0f0);
    padding: 15px;
    border-bottom: 1px solid var(--border-color, #ccc);
}



/* Theme toggle moved to settings panel */

/* Layout structure - merged with styles from Razor file */
/* Common sidebar styles */
.sidebar[b-pjul6nbh6z] {
    grid-row: 2;
    background-color: var(--sidebar-bg, #f9f9f9);
    overflow-y: auto;
    width: 100%; /* From Razor file */
    min-height: 100px;
}

/* Specific sidebar styles */
.sidebar-left[b-pjul6nbh6z] {
    grid-column: 1;
    border-right: 1px solid var(--border-color, #ccc);
}

.sidebar-right[b-pjul6nbh6z] {
    grid-column: 3;
    border-left: 1px solid var(--border-color, #ccc);
}

.main-content[b-pjul6nbh6z] {
    grid-column: 2;
    grid-row: 2;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: 100%; /* From Razor file */
}

/* Panel styles */
.panel[b-pjul6nbh6z] {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.panel-title[b-pjul6nbh6z] {
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* Panel title variants */
.clean-panel-title[b-pjul6nbh6z] {
    margin: 0;
    padding: 0;
    border: none;
}

.flex-panel-title[b-pjul6nbh6z] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat components */
.chat-window[b-pjul6nbh6z] {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.chat-input[b-pjul6nbh6z] {
    display: flex;
    margin-top: 10px;
}

/* Action button styles */
.action-buttons-container[b-pjul6nbh6z] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.action-button[b-pjul6nbh6z] {
    width: auto;
    margin: 0 5px 0 0;
}

.action-button-last[b-pjul6nbh6z] {
    width: auto;
    margin: 0;
}

/* Settings styles */
.settings-content[b-pjul6nbh6z] {
    padding: 10px;
}

.setting-option-text[b-pjul6nbh6z] {
    margin-left: 8px;
}

/* Setting row styles moved to site.css */

.setting-label[b-pjul6nbh6z] {
    font-weight: normal;
    flex: 1;
}

/* Tool option styles */
.tool-option[b-pjul6nbh6z] {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.tool-option label[b-pjul6nbh6z] {
    margin-left: 8px;
}

.config-icon[b-pjul6nbh6z] {
    margin-left: 8px;
    color: #0066cc;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2em;
}

.config-icon:hover[b-pjul6nbh6z] {
    color: #004999;
}

/* Statistics */
.statistics[b-pjul6nbh6z] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.stat-box[b-pjul6nbh6z] {
    background-color: #eee;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.stat-value[b-pjul6nbh6z] {
    font-size: 1.2em;
    font-weight: bold;
}

/* CartaRAG switch container */
.rag-switch-container[b-pjul6nbh6z] {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

/* Context indicator */
.context-indicator[b-pjul6nbh6z] {
    display: inline-flex;
    align-items: center;
    font-size: 0.8em;
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 8px;
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #0066cc;
}

.context-indicator-icon[b-pjul6nbh6z] {
    margin-right: 4px;
}

/* Diagnostic panel styles */
.diagnostic-panel[b-pjul6nbh6z] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 5px;
    font-size: 11px;
    background-color: var(--panel-bg, #f0f0f0);
    color: var(--text-color, #333);
    border-bottom: 1px solid var(--border-color, #ccc);
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
    z-index: 1050;
}

.container-with-log[b-pjul6nbh6z] {
    padding-top: 120px;
}

/* Log toggle button styles */
.log-toggle-button[b-pjul6nbh6z] {
    position: fixed;
    top: 0;
    right: 5px;
    z-index: 1060;
    background: var(--panel-bg, #ddd);
    border: 1px solid var(--border-color, #ccc);
    border-radius: 0 0 3px 3px;
    padding: 1px 5px;
    font-size: 8px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.log-button-hidden[b-pjul6nbh6z] {
    visibility: hidden;
}

.log-close-button[b-pjul6nbh6z] {
    position: absolute;
    top: 2px;
    right: 5px;
    background: #ddd;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
