﻿.workspace-shell {
    min-height: 100vh;
    background: var(--workspace-background);
}

/* SIDEBAR */

.workspace-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    display: flex;
    width: var(--workspace-sidebar-width);
    height: 100vh;
    flex-direction: column;
    overflow: hidden;
    color: var(--workspace-text-inverse);
    background: radial-gradient( circle at 10% 0%, rgba(37, 99, 235, 0.18), transparent 34% ), linear-gradient( 180deg, var(--workspace-sidebar) 0%, #0c1422 100% );
    border-right: 1px solid rgba(255, 255, 255, 0.055);
    transition: width var(--workspace-transition);
}

.workspace-sidebar-header {
    display: flex;
    min-height: var(--workspace-topbar-height);
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.workspace-brand-logo {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient( 145deg, #3b82f6, #1d4ed8 );
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    font-size: 21px;
    font-weight: 800;
}

    .workspace-brand-logo::after {
        position: absolute;
        top: -20px;
        left: -28px;
        width: 40px;
        height: 80px;
        content: "";
        background: rgba(255, 255, 255, 0.22);
        transform: rotate(30deg);
    }

.workspace-brand-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
    transition: opacity var(--workspace-transition-fast), transform var(--workspace-transition);
}

.workspace-brand-name {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.3px;
}

.workspace-brand-product {
    color: rgba(226, 232, 240, 0.58);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* SIDEBAR NAVIGATION */

.workspace-sidebar-navigation {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px 13px;
}

    .workspace-sidebar-navigation::-webkit-scrollbar {
        width: 5px;
    }

    .workspace-sidebar-navigation::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
    }

.workspace-nav-section {
    margin-bottom: 22px;
}

.workspace-nav-section-title {
    display: block;
    margin: 0 12px 8px;
    overflow: hidden;
    color: rgba(203, 213, 225, 0.42);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity var(--workspace-transition-fast), transform var(--workspace-transition);
}

.workspace-nav-item {
    position: relative;
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 13px;
    margin-bottom: 4px;
    padding: 0 13px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(226, 232, 240, 0.7);
    transition: color var(--workspace-transition-fast), background var(--workspace-transition-fast), border-color var(--workspace-transition-fast), transform var(--workspace-transition-fast);
}

    .workspace-nav-item:hover {
        color: #ffffff;
        background: var(--workspace-sidebar-hover);
        transform: translateX(2px);
    }

.workspace-nav-item-active {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.14);
    background: var(--workspace-sidebar-active);
    box-shadow: inset 3px 0 0 #3b82f6;
}

    .workspace-nav-item-active::after {
        position: absolute;
        right: -20px;
        width: 45px;
        height: 45px;
        content: "";
        border-radius: 50%;
        background: rgba(59, 130, 246, 0.14);
        filter: blur(10px);
    }

.workspace-nav-icon {
    display: grid;
    width: 28px;
    min-width: 28px;
    place-items: center;
}

.workspace-nav-label {
    flex: 1;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity var(--workspace-transition-fast), transform var(--workspace-transition);
}

.workspace-nav-badge {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--workspace-danger);
    font-size: 10px;
    font-weight: 800;
    transition: opacity var(--workspace-transition-fast), transform var(--workspace-transition);
}

/* SIDEBAR FOOTER */

.workspace-sidebar-footer {
    padding: 12px 13px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-server-state {
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 11px 13px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}

.workspace-server-state-dot {
    position: relative;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

    .workspace-server-state-dot::after {
        position: absolute;
        inset: 0;
        content: "";
        border-radius: inherit;
        background: inherit;
        animation: workspace-status-pulse 2s infinite;
    }

.workspace-server-state-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    white-space: nowrap;
    transition: opacity var(--workspace-transition-fast), transform var(--workspace-transition);
}

.workspace-server-state-title {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
}

.workspace-server-state-description {
    color: rgba(203, 213, 225, 0.48);
    font-size: 10px;
}

/* SIDEBAR COLLAPSED */

.workspace-sidebar-collapsed {
    width: var(--workspace-sidebar-collapsed-width);
}

    .workspace-sidebar-collapsed
    .workspace-sidebar-header {
        justify-content: center;
        padding: 0;
    }

    .workspace-sidebar-collapsed
    .workspace-brand-content,
    .workspace-sidebar-collapsed
    .workspace-nav-label,
    .workspace-sidebar-collapsed
    .workspace-nav-badge,
    .workspace-sidebar-collapsed
    .workspace-nav-section-title,
    .workspace-sidebar-collapsed
    .workspace-server-state-content {
        width: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-8px);
    }

    .workspace-sidebar-collapsed
    .workspace-nav-item {
        justify-content: center;
        padding: 0;
    }

        .workspace-sidebar-collapsed
        .workspace-nav-item:hover {
            transform: none;
        }

    .workspace-sidebar-collapsed
    .workspace-server-state {
        justify-content: center;
        padding-inline: 0;
    }

/* MAIN SHELL */

.workspace-shell-main {
    min-height: 100vh;
    margin-left: var(--workspace-sidebar-width);
    transition: margin-left var(--workspace-transition);
}

.workspace-shell-main-expanded {
    margin-left: var(--workspace-sidebar-collapsed-width);
}

/* TOPBAR */

.workspace-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    display: grid;
    min-height: var(--workspace-topbar-height);
    grid-template-columns: minmax(270px, 1fr) minmax(320px, 560px) minmax(330px, 1fr);
    align-items: center;
    gap: 22px;
    padding: 0 26px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 16px rgba(15, 23, 42, 0.025);
    backdrop-filter: blur(18px);
}

.workspace-topbar-left,
.workspace-topbar-right {
    display: flex;
    align-items: center;
}

.workspace-topbar-left {
    gap: 13px;
}

.workspace-topbar-right {
    justify-content: flex-end;
    gap: 11px;
}

.workspace-icon-button {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    cursor: pointer;
    border: 1px solid var(--workspace-border);
    border-radius: 12px;
    color: var(--workspace-text-secondary);
    background: var(--workspace-surface);
    transition: color var(--workspace-transition-fast), border-color var(--workspace-transition-fast), background var(--workspace-transition-fast), transform var(--workspace-transition-fast);
}

    .workspace-icon-button:hover {
        color: var(--workspace-primary);
        border-color: #bfdbfe;
        background: var(--workspace-primary-soft);
        transform: translateY(-1px);
    }

.workspace-topbar-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.workspace-topbar-product {
    overflow: hidden;
    color: var(--workspace-text-primary);
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-topbar-environment {
    overflow: hidden;
    color: var(--workspace-text-muted);
    font-size: 10.5px;
    font-weight: 550;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* SEARCH */

.workspace-search {
    display: flex;
    width: 100%;
    height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    cursor: text;
    border: 1px solid var(--workspace-border);
    border-radius: 13px;
    color: var(--workspace-text-muted);
    background: var(--workspace-surface-secondary);
    transition: border-color var(--workspace-transition-fast), background var(--workspace-transition-fast), box-shadow var(--workspace-transition-fast);
}

    .workspace-search:focus-within {
        border-color: #93c5fd;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    }

    .workspace-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        color: var(--workspace-text-primary);
        background: transparent;
        font-size: 13px;
    }

        .workspace-search input::placeholder {
            color: var(--workspace-text-muted);
        }

.workspace-search-shortcut {
    padding: 4px 7px;
    border: 1px solid var(--workspace-border);
    border-radius: 6px;
    color: var(--workspace-text-muted);
    background: #ffffff;
    font-size: 8.5px;
    font-weight: 750;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

/* TOPBAR RIGHT */

.workspace-live-state {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 4px;
    padding: 8px 11px;
    border: 1px solid #dcfce7;
    border-radius: 999px;
    color: #15803d;
    background: #f0fdf4;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.workspace-live-state-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--workspace-success);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.workspace-notification-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--workspace-danger);
}

.workspace-profile {
    display: flex;
    min-width: 190px;
    height: 50px;
    align-items: center;
    gap: 10px;
    padding: 5px 9px 5px 6px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 14px;
    color: inherit;
    background: transparent;
    transition: border-color var(--workspace-transition-fast), background var(--workspace-transition-fast);
}

    .workspace-profile:hover {
        border-color: var(--workspace-border);
        background: var(--workspace-surface-secondary);
    }

.workspace-profile-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient( 145deg, #334155, #0f172a );
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
    font-size: 12px;
    font-weight: 750;
}

.workspace-profile-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.workspace-profile-name {
    overflow: hidden;
    color: var(--workspace-text-primary);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-profile-role {
    color: var(--workspace-text-muted);
    font-size: 10px;
}

.workspace-profile-chevron {
    color: var(--workspace-text-muted);
}

/* CONTENT */

.workspace-content {
    min-height: calc(100vh - var(--workspace-topbar-height));
    padding: 28px;
}

.workspace-content-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

/* ANIMATIONS */

@keyframes workspace-status-pulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    70% {
        opacity: 0;
        transform: scale(2.2);
    }

    100% {
        opacity: 0;
        transform: scale(2.2);
    }
}

/* RESPONSIVE */

@media (max-width: 1250px) {
    .workspace-topbar {
        grid-template-columns: minmax(250px, 1fr) minmax(270px, 430px) auto;
    }

    .workspace-live-state {
        display: none;
    }

    .workspace-profile {
        min-width: auto;
    }

    .workspace-profile-content,
    .workspace-profile-chevron {
        display: none;
    }
}

@media (max-width: 900px) {
    .workspace-sidebar {
        width: var(--workspace-sidebar-collapsed-width);
    }

        .workspace-sidebar
        .workspace-sidebar-header {
            justify-content: center;
            padding: 0;
        }

        .workspace-sidebar
        .workspace-brand-content,
        .workspace-sidebar
        .workspace-nav-label,
        .workspace-sidebar
        .workspace-nav-badge,
        .workspace-sidebar
        .workspace-nav-section-title,
        .workspace-sidebar
        .workspace-server-state-content {
            display: none;
        }

        .workspace-sidebar
        .workspace-nav-item {
            justify-content: center;
            padding: 0;
        }

        .workspace-sidebar
        .workspace-server-state {
            justify-content: center;
            padding-inline: 0;
        }

    .workspace-shell-main,
    .workspace-shell-main-expanded {
        margin-left: var(--workspace-sidebar-collapsed-width);
    }

    .workspace-topbar {
        grid-template-columns: auto 1fr auto;
        padding: 0 16px;
    }

    .workspace-topbar-title {
        display: none;
    }
}

@media (max-width: 680px) {
    .workspace-topbar {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }

    .workspace-topbar-center {
        min-width: 0;
    }

    .workspace-search-shortcut {
        display: none;
    }

    .workspace-profile {
        display: none;
    }

    .workspace-content {
        padding: 18px;
    }
}
.workspace-page {
    animation: workspace-page-enter 220ms ease-out;
}

.workspace-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

    .workspace-page-header h1 {
        margin: 4px 0 8px;
        color: var(--workspace-text-primary);
        font-size: 30px;
        font-weight: 760;
        letter-spacing: -0.8px;
    }

    .workspace-page-header p {
        margin: 0;
        color: var(--workspace-text-secondary);
        font-size: 14px;
    }

.workspace-page-eyebrow {
    color: var(--workspace-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.workspace-empty-card {
    padding: 28px;
    border: 1px solid var(--workspace-border);
    border-radius: var(--workspace-radius-large);
    background: var(--workspace-surface);
    box-shadow: var(--workspace-shadow-small);
}

    .workspace-empty-card h2 {
        margin: 0 0 8px;
        font-size: 18px;
    }

    .workspace-empty-card p {
        margin: 0;
        color: var(--workspace-text-secondary);
    }

@keyframes workspace-page-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}