/* Claude/OpenAI-style settings modal: labeled left nav + content panes.
   Linked after chat.css so .settings-modal-2pane overrides the old single-panel. */
.settings-modal-container.settings-modal-2pane {
    display: flex;
    flex-direction: row;
    width: min(880px, 94vw);
    max-width: 880px;
    height: min(600px, 86vh);
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
}

.settings-nav {
    width: 220px;
    min-width: 200px;
    background: #f7f8fa;
    border-right: 1px solid #e6e8eb;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}
.settings-nav-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a9099;
    padding: 6px 12px 12px;
}
.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #3a4048;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}
.settings-nav-item .material-icons { font-size: 19px; color: #6b7280; }
.settings-nav-item:hover { background: #eceef1; }
.settings-nav-item.active { background: rgba(0,179,201,.12); color: #0090a3; }
.settings-nav-item.active .material-icons { color: #00b3c9; }

.settings-content {
    flex: 1;
    padding: 28px 32px;
    overflow-y: auto;
    position: relative;
}
.settings-content .settings-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
}
.settings-pane { display: none; }
.settings-pane.active { display: block; }
.settings-pane-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.settings-pane-desc { color: #6b7280; font-size: 13px; margin: 0 0 16px; }

.settings-brand-logo-row { display: flex; align-items: center; gap: 14px; }
#chatBrandLogoPreview { max-height: 44px; max-width: 160px; border-radius: 6px; }
.settings-brand-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #d8dce0;
    border-radius: 8px;
    font-size: 13px;
}
.settings-brand-colors { display: flex; gap: 20px; flex-wrap: wrap; }
.settings-brand-colors label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #3a4048;
}
.settings-brand-colors input[type=color] {
    width: 44px; height: 32px; border: 1px solid #d8dce0; border-radius: 6px; padding: 2px; cursor: pointer;
}
.settings-brand-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Dark mode */
[data-theme="dark"] .settings-nav { background: #1b1f24; border-right-color: #2b3035; }
[data-theme="dark"] .settings-nav-item { color: #c7ccd2; }
[data-theme="dark"] .settings-nav-item:hover { background: #23272d; }
[data-theme="dark"] .settings-nav-item.active { background: rgba(0,179,201,.18); color: #00d4e6; }
[data-theme="dark"] .settings-pane-desc { color: #9aa0a6; }
[data-theme="dark"] .settings-brand-input { background: #2b3035; border-color: #3a4048; color: #e6e8eb; }

/* Responsive: stack nav on top for narrow screens */
@media (max-width: 640px) {
    .settings-modal-container.settings-modal-2pane { flex-direction: column; height: 90vh; }
    .settings-nav { width: 100%; min-width: 0; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid #e6e8eb; }
    .settings-nav-title { width: 100%; }
}
