/* ==========================================================================
   Dashboard Shell Layout and Main Panels
   ========================================================================== */

#app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background: rgba(17, 24, 39, 0.85);
    border-right: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 32px 12px;
    border-bottom: 1px solid var(--bg-glass-border);
}

.sidebar-logo svg {
    width: 32px;
    height: 32px;
    fill: url(#logo-grad);
}

.sidebar-logo span {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
    background: var(--bg-surface-hover);
    box-shadow: var(--shadow-inset);
}

.nav-item.active {
    background: var(--primary-bg);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--bg-glass-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conn-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
    padding: 8px 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444; /* Default offline */
    box-shadow: 0 0 8px #ef4444;
}

.status-dot.connected {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Main Dashboard Window */
.main-window {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.main-header {
    height: 70px;
    padding: 0 32px;
    border-bottom: 1px solid var(--bg-glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 12, 16, 0.4);
    backdrop-filter: blur(12px);
    z-index: 90;
}

.header-title h2 {
    font-size: 1.5rem;
}

.main-content {
    flex-grow: 1;
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tab Panel visibility */
.tab-panel {
    display: none;
    height: 100%;
    animation: fadeIn 0.35s ease;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
