/* 后台样式 */
.sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 56px;
    background-color: #f8f9fa;
}

.content {
    padding: 2rem;
    background-color: #f8f9fa;
    min-height: calc(100vh - 56px);
}

.form-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: none;
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
}

.nav-pills .nav-link {
    border-radius: 8px;
    margin-bottom: 0.5rem;
    color: #495057;
    transition: all 0.2s;
}

.nav-pills .nav-link.active, 
.nav-pills .nav-link:hover {
    background-color: #0d6efd;
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

#loading-section {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 表单样式 */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* 表格样式 */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* 设置面板 */
.settings-panel {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.settings-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.settings-title {
    font-weight: 600;
    margin: 0;
    color: #212529;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .sidebar {
        position: relative;
        top: 0;
        min-height: auto;
    }
    
    .content {
        min-height: auto;
    }
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
}

.login-form-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.login-image {
    background-size: cover;
    background-position: center;
    border-radius: 12px 0 0 12px;
    min-height: 500px;
}

@media (max-width: 992px) {
    .login-image {
        border-radius: 12px 12px 0 0;
        min-height: 300px;
    }
}

/* 统计卡片 */
.stats-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
}
/* 背景预览样式 */
.background-preview {
    height: 150px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.background-preview:hover {
    border-color: #0d6efd;
}

.background-option {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
}

.background-option:hover, .background-option.selected {
    border-color: #0d6efd;
}

.background-thumbnail {
    height: 80px;
    background-size: cover;
    background-position: center;
}

/* 透明度滑块样式 */
.form-range::-webkit-slider-thumb {
    background: #0d6efd;
}

.form-range::-moz-range-thumb {
    background: #0d6efd;
}

.form-range::-ms-thumb {
    background: #0d6efd;
}

/* 设置面板间距调整 */
.settings-panel {
    margin-bottom: 2rem;
}