/* 质量监管系统 - 电脑端样式 */

/* 导航样式 */
.nav-link {
    padding: 0.5rem 0;
    color: #4b5563;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #1e40af;
}

.nav-link.active {
    color: #1e40af;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1e40af;
    border-radius: 2px;
}

/* 侧边栏样式 */
.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.sidebar-items {
    padding-left: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #6b7280;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background-color: #f3f4f6;
    color: #1e40af;
}

.sidebar-item.active {
    background-color: #e0e7ff;
    color: #1e40af;
    font-weight: 500;
}

/* iframe 容器样式 */
#mainContentFrame {
    border: none;
    min-height: calc(100vh - 100px);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c5c7cb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a2a5;
} 