/**
 * sidebar.css — Go Fire (fAIre)
 * Left sidebar: guidance sources, document list, upload buttons.
 * Depends on: layout.css
 */

/* ── Left Sidebar ── */
.sidebar {
    width: 185px;
    background: #0d0d0d;
    border-right: 1px solid #1e1e1e;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar-section { padding: 14px 14px 8px; }

.sidebar-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px;
    cursor: pointer;
    border-radius: 4px;
}
.source-item:hover { background: #161616; }

.source-checkbox {
    width: 14px; height: 14px;
    border: 1px solid #444;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.source-checkbox.checked {
    background: #ff6b2b;
    border-color: #ff6b2b;
}
.source-checkbox.checked::after {
    content: '✓';
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.source-name { font-size: 11px; color: #ccc; flex: 1; }

.source-badge {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #555;
    border: 1px solid #2e2e2e;
    border-radius: 3px;
    padding: 1px 5px;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid #1e1e1e;
    margin: 6px 0;
}

/* Project Context button — only shown when a project is selected */
.gf-context-btn {
    display: none;
    align-items: center;
    gap: 8px;
    width: calc(100% - 28px);
    margin: 6px 14px 4px;
    padding: 8px 10px;
    background: transparent;
    border: 1px dashed #2a2a2a;
    border-radius: 6px;
    color: #aaa;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    font-family: inherit;
}
.gf-context-btn:hover {
    border-color: #ff6b2b;
    color: #ff6b2b;
    background: #ff6b2b0c;
}
.gf-context-btn i {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.gf-context-btn.has-brief {
    border-style: solid;
    border-color: #2a2a2a;
    color: #ccc;
}
body.gf-has-project .gf-context-btn { display: flex; }

.doc-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 2px;
}
.doc-item:hover  { background: #181818; }
.doc-item.active { background: #1c1c1c; }

.doc-icon { font-size: 13px; margin-top: 1px; flex-shrink: 0; }

.doc-info { flex: 1; min-width: 0; }

.doc-name {
    font-size: 11px;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.doc-meta { font-size: 9px; color: #555; margin-top: 2px; }
.doc-meta .indexed { color: #3a8a3a; }

.list-empty {
    font-size: 10px;
    color: #3a3a3a;
    padding: 6px 8px;
    font-style: italic;
}

.doc-delete, .doc-edit {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #444;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}
.doc-item:hover .doc-delete,
.doc-item:hover .doc-edit { opacity: 1; }
.doc-delete:hover { color: #e05555; }
.doc-edit:hover { color: #ff6b2b; }

.upload-btn, .upload-plan-btn {
    padding: 8px;
    border: 1px dashed #2a2a2a;
    border-radius: 5px;
    background: transparent;
    color: #555;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.2s;
}
.upload-btn { margin: auto 14px 14px; }
.upload-plan-btn { margin: 8px 14px 4px; }
.upload-btn:hover, .upload-plan-btn:hover { border-color: #ff6b2b; color: #ff6b2b; }
.upload-btn:disabled, .upload-plan-btn:disabled { pointer-events: none; }

/* Orange "this plan has been assessed" marker — always visible (does NOT
   fade like .doc-edit / .doc-delete) so the user can see at a glance which
   floors are assessed. Click opens the cached assessment view. */
.gf-plan-assess-marker {
    flex-shrink: 0;
    background: rgba(255,107,43,0.12);
    border: 1px solid rgba(255,107,43,0.55);
    color: #ff6b2b;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    font-family: inherit;
}
.gf-plan-assess-marker:hover {
    background: #ff6b2b;
    border-color: #ff6b2b;
    color: #fff;
    transform: translateY(-1px);
}
.gf-plan-assess-marker i[data-lucide],
.gf-plan-assess-marker svg {
    width: 12px;
    height: 12px;
}
