/* 账户管理页面样式 */

/* 表格样式 */
.card-body table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.card-body table th,
.card-body table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.card-body table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.card-body table td {
    font-size: 14px;
    color: #666;
}

.card-body table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Admin账号特殊样式 */
.card-body table tbody tr[data-user="admin"] {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.card-body table tbody tr[data-user="admin"]:hover {
    background-color: #ffeaa7;
}

.card-body table tbody tr[data-user="admin"] td {
    color: #856404;
    font-weight: 500;
}

/* 状态点样式 */
.state-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot-green {
    background-color: #28a745;
}

.dot-red {
    background-color: #dc3545;
}

.dot-yellow {
    background-color: #ffc107;
}

/* 按钮样式 */
.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-ban {
    background-color: #ffc107;
    color: #212529;
}

.btn-ban:hover {
    background-color: #e0a800;
}

.btn-unban {
    background-color: #28a745;
    color: white;
}

.btn-unban:hover {
    background-color: #218838;
}

/* 分页容器样式 */
.pagination-container {
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pagination-buttons {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.page-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.records-per-page select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.total-records {
    font-size: 14px;
    color: #666;
}

.goto-page {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.goto-page input {
    width: 50px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-body table {
        font-size: 12px;
    }
    
    .card-body table th,
    .card-body table td {
        padding: 8px 10px;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}
