/* 错题本样式 */

/* 卡片悬停效果 */
.question-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
}

/* 表格样式 */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* 徽章样式 */
.badge {
    font-weight: 500;
}

/* 进度条样式 */
.progress {
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* 表单样式 */
.form-label {
    font-weight: 500;
    color: #495057;
}

/* 图片预览 */
.img-thumbnail {
    max-width: 100%;
    cursor: pointer;
}

.img-thumbnail:hover {
    opacity: 0.9;
}

/* 统计卡片 */
.card.text-white h1 {
    font-weight: bold;
}

/* 复习状态样式 */
.review-pending {
    border-left: 4px solid #dc3545;
}

.review-upcoming {
    border-left: 4px solid #17a2b8;
}

.review-completed {
    border-left: 4px solid #28a745;
}

/* 打印样式 */
@media print {
    .navbar, .btn, footer {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        break-inside: avoid;
    }

    .question-card {
        page-break-inside: avoid;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .card-body {
        padding: 1rem;
    }
}

/* 空状态样式 */
.empty-state {
    padding: 3rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
}

/* 文本截断 */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 难度和重要性星星 */
.bi-star-fill, .bi-heart-fill {
    margin-right: 2px;
}

/* 下拉菜单样式 */
.dropdown-item i {
    margin-right: 8px;
}

/* 科目颜色标签 */
.subject-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: white;
    font-size: 0.875rem;
}

/* 掌握程度进度条 */
.mastery-bar {
    height: 8px;
    border-radius: 4px;
}

/* 搜索框 */
.search-input {
    border-radius: 20px;
    padding-left: 1rem;
}

/* 按钮组样式 */
.btn-check:checked + .btn-outline-warning {
    color: #000;
}

.btn-check:checked + .btn-outline-danger {
    color: #fff;
}

.btn-check:checked + .btn-outline-success {
    color: #fff;
}

/* 统计卡片样式 */
.stats-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
}

.stats-label {
    font-size: 0.875rem;
}

/* 题目图片预览 */
.question-image-preview {
    max-height: 350px;
    overflow: hidden;
    border-radius: 4px;
}

.question-image-preview img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

/* 题目内容预览（多行截断） */
.question-preview {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    color: #666;
    font-size: 0.9rem;
}

/* 选中状态的统计卡片 */
.stats-card.border-primary,
.stats-card.border-success,
.stats-card.border-info,
.stats-card.border-danger {
    border-width: 2px !important;
}

/* 图片画廊样式（编辑页面） */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-item {
    position: relative;
    display: inline-block;
}

.image-item img {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.image-item .btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    font-size: 0.75rem;
}

/* 查看页面图片画廊 */
.image-gallery-view {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-gallery-view img {
    cursor: pointer;
    transition: transform 0.2s;
}

.image-gallery-view img:hover {
    transform: scale(1.02);
}

