.top-nav {
    background: linear-gradient(135deg, var(--bg-sidebar) 0%, #334155 100%);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
}

.main-layout {
    display: flex;
    height: calc(100vh - 56px);
}

.sidebar {
    width: 220px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.menu-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 16px;
    margin-bottom: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
    transition: height 0.2s;
}

.menu-item:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(26,86,219,0.08) 0%, transparent 100%);
    color: var(--primary);
}

.menu-item.active::before {
    height: 24px;
}

.menu-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.submenu {
    padding-left: 44px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.submenu.open {
    max-height: 500px;
}

.submenu-item {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submenu-item:hover {
    color: var(--primary);
    background: var(--bg-main);
}

.submenu-item.active {
    color: var(--primary);
    font-weight: 500;
}

.submenu-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.content-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-main);
    padding: 4px;
    border-radius: 8px;
}

.content-tab {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.content-tab:hover {
    color: var(--text-primary);
}

.content-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.content-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: var(--bg-main);
}

.right-panel {
    width: 280px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.panel-section {
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.panel-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-content {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.panel-content.open {
    padding: 0 16px 16px;
    max-height: 1000px;
    opacity: 1;
}

.sub-option-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.sub-option-toggle:hover {
    color: var(--primary);
}

.sub-option-toggle svg {
    transition: transform 0.2s;
}

.sub-option-toggle.open svg {
    transform: rotate(90deg);
}

.sub-option-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.sub-option-content.open {
    max-height: 300px;
    opacity: 1;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
