@import "../js/modules/admin/styles/analyst-reports.css";

.terminal-shell {
    min-height: 100vh;
    background: transparent;
}

.terminal-shell--topnav {
    display: grid;
    grid-template-rows: auto 1fr;
}

.terminal-shell__header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(9, 10, 14, 0.92);
    backdrop-filter: blur(14px);
}

.terminal-shell__content {
    padding: 0.85rem 1rem 1.25rem;
    min-width: 0;
}

.terminal-header {
    width: 100%;
    overflow: hidden;
}

.terminal-header__power {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-soft);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    transition: 160ms ease;
    flex: 0 0 auto;
}

.terminal-header__power:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.1);
}

.terminal-header__power {
    margin-right: 0.1rem;
}

.terminal-header--auth {
    grid-template-columns: auto;
    justify-content: start;
}

.terminal-header--auth .terminal-header__left {
    justify-content: flex-start;
}

.terminal-header--topnav {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    min-height: 64px;
    padding: 0.7rem 1.5rem 0.7rem 1rem;
    min-width: 0;
    box-sizing: border-box;
}

.terminal-header__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.terminal-header__center {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.terminal-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    min-width: 0;
    white-space: nowrap;
    padding-right: 0.35rem;
    box-sizing: border-box;
}

.terminal-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(47, 49, 58, 0.96) 0%, rgba(18, 20, 25, 0.98) 100%);
    color: #d8dcf2;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 160ms ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.terminal-mark:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(56, 59, 71, 0.96) 0%, rgba(22, 24, 31, 0.98) 100%);
}


.terminal-mark__logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.terminal-header__brand {
    display: grid;
    gap: 0.08rem;
}

.terminal-header__brand-name {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.terminal-header__brand-subtitle {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.terminal-topnav {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.018);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.terminal-topnav::-webkit-scrollbar {
    display: none;
}

.terminal-topnav__item {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--color-text-soft);
    padding: 0.56rem 0.78rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 560;
    cursor: pointer;
    transition: 160ms ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.terminal-topnav__item:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.035);
}

.terminal-topnav__item--active {
    color: #f3f5ff;
    background: rgba(74, 79, 97, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.terminal-header__search {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: 220px;
    max-width: 220px;
    padding: 0.56rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    flex: 0 0 auto;
    overflow: hidden;
}

.terminal-header__search-icon {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1;
    flex: 0 0 auto;
}

.terminal-header__search-input {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--color-text);
    font-size: 0.82rem;
}

.terminal-header__search-input::placeholder {
    color: var(--color-text-muted);
}

.terminal-header__pill {
    padding: 0.44rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    color: var(--color-text-soft);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex: 0 0 auto;
}

.terminal-header__pill--action:hover {
    background: rgba(255, 255, 255, 0.045);
    color: var(--color-text);
}

@media (max-width: 1440px) {
    .terminal-header--topnav {
        grid-template-columns: 190px minmax(0, 1fr) auto;
        gap: 0.7rem;
    }

    .terminal-header__search {
        width: 190px;
        max-width: 190px;
    }

    .terminal-topnav__item {
        padding: 0.54rem 0.72rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 1280px) {
    .terminal-header--topnav {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .terminal-header__center {
        justify-content: flex-start;
        order: 3;
    }

    .terminal-header__right {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .terminal-header__search {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .terminal-shell__content {
        padding: 0.75rem 0.75rem 1rem;
    }

    .terminal-header--topnav {
        padding: 0.7rem 1rem 0.7rem 0.75rem;
    }

    .terminal-header__brand-subtitle {
        display: none;
    }

    .terminal-header__right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}