/* 自定义样式 */
body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* 成绩录入页面样式 */
.score-input-card {
    min-height: 400px;
}

.qr-reader {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    text-align: center;
    background-color: #f8f9fa;
}

/* 学生搜索结果样式 */
.search-results {
    position: relative;
    z-index: 1000;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

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

/* 二维码生成页面样式 */
.qr-code-item {
    page-break-inside: avoid;
    margin-bottom: 1rem;
}

/* 成绩统计页面样式 */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
}

/* 导航栏下拉菜单样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    transition: background-color 0.15s ease-in-out;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* 表格样式优化 */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* 模态框样式 */
.modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

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

/* 徽章样式 */
.badge {
    font-size: 0.75em;
}

/* 加载动画 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 页脚样式 */
.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* 首页卡片样式 */
.home-card {
    transition: transform 0.2s ease-in-out;
}

.home-card:hover {
    transform: translateY(-2px);
}

/* 成功/错误消息样式 */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* 分页样式 */
.pagination .page-link {
    border: none;
    padding: 0.5rem 0.75rem;
    color: #6c757d;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
}

/* 二维码扫描器样式 */
#qr-reader {
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
}

#qr-reader__dashboard {
    background-color: #f8f9fa;
}

/* 文件上传样式 */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* 空状态样式 */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

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