/* 自定义样式 */

/* 头像圆形 */
.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* 自定义徽章颜色 */
.badge.bg-green {
    background-color: #28a745;
}

.badge.bg-blue {
    background-color: #007bff;
}

.badge.bg-yellow {
    background-color: #ffc107;
}

.badge.bg-red {
    background-color: #dc3545;
}

/* 表格样式 */
.table th {
    font-weight: 600;
}

/* 表单样式 */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* 卡片样式 */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn-group-justified {
        display: flex;
    }
    
    .btn-group-justified .btn {
        flex: 1;
    }
}

/* 自定义文件上传 */
.custom-file-input:lang(zh-CN) ~ .custom-file-label::after {
    content: "浏览";
}

/* 分页样式 */
.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* 提示信息 */
.alert {
    border-radius: 0.5rem;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

/* 二维码样式 */
.qrcode-container {
    max-width: 300px;
    margin: 0 auto;
}

.qrcode-container img {
    width: 100%;
    height: auto;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 自定义开关 */
.custom-switch .custom-control-label::before {
    background-color: #dee2e6;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #007bff;
}

/* 自定义滑块 */
.custom-range::-webkit-slider-thumb {
    background-color: #007bff;
}

.custom-range::-moz-range-thumb {
    background-color: #007bff;
}

/* 打印样式 */
@media print {
    .navbar, .card-footer, .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}