/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* 登录页面样式 */
.card {
    border-radius: 8px;
}

.card-header {
    border-radius: 8px 8px 0 0;
}

/* 控制台样式 */
.sidebar {
    height: 100vh;
    background-color: #343a40;
    padding-top: 20px;
}

.sidebar .nav-link {
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.sidebar .nav-link:hover {
    background-color: #495057;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
}

.content {
    padding: 20px;
}

/* 统计卡片样式 */
.stats-card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card .card-body {
    padding: 20px;
}

.stats-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #6c757d;
}

.stats-card .card-text {
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
}

/* 表格样式 */
.table-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
}

/* 模态框样式 */
.modal-header {
    background-color: #0d6efd;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.modal-footer {
    border-radius: 0 0 8px 8px;
}

/* 数据管理样式 */
.user-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-checkbox {
    margin-right: 10px;
    transform: scale(1.2);
}

.username {
    font-weight: bold;
    font-size: 16px;
}

.user-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.user-images-status {
    color: #6c757d;
    font-size: 14px;
}

.user-images-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
    align-items: start;
}
/* 表格容器样式 */
.stats-table-container {
    position: relative;
    display: flex;
    height: 500px; /* 固定高度 */
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.stats-table-container .table-responsive {
    flex: 1;
    overflow-y: auto; /* 允许垂直滚动 */
    max-height: 100%;
}

/* 垂直滑块容器 */
.vertical-slider-container {
    width: 20px;
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 0;
}

/* 垂直滑块轨道 */
.vertical-slider {
    position: relative;
    width: 8px;
    height: calc(100% - 20px);
    background-color: #e9ecef;
    border-radius: 4px;
    cursor: pointer;
}

/* 滑块拇指 */
.slider-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px; /* 初始高度 */
    background-color: #6c757d;
    border-radius: 4px;
    cursor: grab;
    transition: background-color 0.2s;
}

.slider-thumb:hover {
    background-color: #495057;
}

.slider-thumb:active {
    cursor: grabbing;
    background-color: #343a40;
}

/* 隐藏默认滚动条 */
.table-responsive::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: transparent;
}

/* 分页样式 */
.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-item .page-link {
    cursor: pointer;
}
.image-item {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s;
    background-color: transparent;
}

.image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.image-network {
    padding: 8px;
    font-size: 14px;
    text-align: center;
    background-color: #fff;
}

/* 图片模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.close-modal:hover {
    color: #ccc;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 5px;
    }
}