/**
 * topbar.css — Go Fire (fAIre)
 * Top navigation bar: logo, mode toggle, project selector and dropdown panel.
 * Depends on: layout.css
 */

/* ── Top Bar ── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 52px;
    background: #0d0d0d;
    border-bottom: 1px solid #1e1e1e;
    flex-shrink: 0;
    position: relative;
    z-index: 200;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2px;
}
.logo-fire { color: #fff; }
.logo-fly  { color: #ff6b2b; }

/* Mode Toggle */
.mode-toggle {
    display: flex;
    background: #1a1a1a;
    border-radius: 999px;
    padding: 3px;
}

.mode-btn {
    padding: 6px 22px;
    border-radius: 999px;
    border: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}
.mode-btn.active-consultant { background: #ff6b2b; color: #fff; }
.mode-btn.active-reviewer   { background: #1e3a5f; color: #7ab3e8; }
.mode-btn.inactive          { background: transparent; color: #555; }

/* Project Controls */
.project-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    color: #e8e8e8;
    user-select: none;
}
.project-selector:hover { border-color: #444; }

#currentProjectLabel { cursor: text; }
body:not(.gf-has-project) #currentProjectLabel { cursor: pointer; }

.gf-project-rename-input {
    font: inherit;
    color: inherit;
    background: #0d0d0d;
    border: 1px solid #ff6b2b;
    border-radius: 4px;
    outline: none;
    padding: 1px 6px;
    width: 160px;
    max-width: 220px;
}

.project-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ff6b2b;
    flex-shrink: 0;
}

.btn-new-project {
    background: transparent;
    border: 1px solid #ff6b2b;
    color: #ff6b2b;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.btn-new-project:hover { background: #ff6b2b18; }

/* ── Project Dropdown Panel ── */
.project-panel {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    width: 230px;
    background: #141414;
    border-left: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    padding: 14px 12px;
    z-index: 150;
}
.project-panel.open { display: block; }

.panel-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.proj-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #999;
}
.proj-item:hover { background: #1e1e1e; color: #ddd; }
.proj-item.active { color: #ff6b2b; }

.proj-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.proj-rename, .proj-delete {
    background: none;
    border: none;
    color: #444;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    flex-shrink: 0;
}
.proj-rename { margin-left: auto; }
.proj-item:hover .proj-rename,
.proj-item:hover .proj-delete { opacity: 1; }
.proj-rename:hover { color: #ff6b2b; }
.proj-delete:hover { color: #e05555; }

.gf-projitem-rename-input {
    font: inherit;
    color: inherit;
    background: #0d0d0d;
    border: 1px solid #ff6b2b;
    border-radius: 3px;
    outline: none;
    padding: 1px 4px;
    width: 100%;
    box-sizing: border-box;
}

.proj-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1px solid #555;
    flex-shrink: 0;
}
.proj-item.active .proj-dot {
    background: #ff6b2b;
    border-color: #ff6b2b;
}

.new-proj-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #ff6b2b;
    margin-top: 4px;
}
.new-proj-row:hover { background: #1e1e1e; }

/* Initial Design Assessment trigger — sits next to the New project button. */
.btn-initial-assess {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff6b2b;
    border: 1px solid #ff6b2b;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.4px;
    margin-left: 8px;
    font-family: inherit;
}
.btn-initial-assess:hover { background: #e85f24; border-color: #e85f24; }
.btn-initial-assess i[data-lucide], .btn-initial-assess svg {
    width: 14px;
    height: 14px;
}
