/**
 * 智慧林业管理平台 - 统一滚动条样式
 * 为所有页面提供一致的滚动条外观
 * 版本: 2.0 - 增强版林业主题滚动条
 */

/* 统一滚动条样式 - 适配林业管理主题 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(45, 90, 61, 0.1);
    border-radius: 4px;
    margin: 2px;
    box-shadow: inset 0 0 2px rgba(45, 90, 61, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        rgba(82, 183, 136, 0.7) 0%, 
        rgba(116, 198, 157, 0.9) 100%);
    border-radius: 4px;
    border: 1px solid rgba(45, 90, 61, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(45, 90, 61, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        rgba(82, 183, 136, 0.9) 0%, 
        rgba(116, 198, 157, 1) 100%);
    box-shadow: 0 2px 8px rgba(82, 183, 136, 0.4);
    transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, 
        rgba(45, 90, 61, 0.9) 0%, 
        rgba(82, 183, 136, 1) 100%);
    box-shadow: 0 1px 4px rgba(45, 90, 61, 0.5);
}

::-webkit-scrollbar-corner {
    background: rgba(45, 90, 61, 0.1);
    border-radius: 4px;
}

/* 针对不同容器的滚动条样式 */
.left-sidebar::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
    width: 6px;
}

.left-sidebar::-webkit-scrollbar-thumb,
.right-sidebar::-webkit-scrollbar-thumb {
    background: rgba(116, 198, 157, 0.6);
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover,
.right-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(116, 198, 157, 0.8);
}

/* 地图容器滚动条 */
.map-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.map-container::-webkit-scrollbar-thumb {
    background: rgba(45, 90, 61, 0.7);
    border-radius: 5px;
}

.map-container::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 90, 61, 0.9);
}

/* 表格滚动条 */
.table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(82, 183, 136, 0.5);
    border-radius: 3px;
}

/* 模态框滚动条 */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(45, 90, 61, 0.6);
    border-radius: 3px;
}

/* 下拉菜单滚动条 */
.dropdown-menu::-webkit-scrollbar,
.region-dropdown::-webkit-scrollbar,
.platform-dropdown::-webkit-scrollbar {
    width: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb,
.region-dropdown::-webkit-scrollbar-thumb,
.platform-dropdown::-webkit-scrollbar-thumb {
    background: rgba(116, 198, 157, 0.6);
    border-radius: 2px;
}

/* Firefox 滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(82, 183, 136, 0.6) rgba(45, 90, 61, 0.1);
}

/* 响应式滚动条 */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    ::-webkit-scrollbar-thumb {
        border-radius: 3px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    ::-webkit-scrollbar-thumb {
        background: rgba(45, 90, 61, 1);
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    ::-webkit-scrollbar-thumb {
        transition: none;
    }
}