/**
 * 文件批注展示样式
 */

/* 批注文件按钮 */
.annotated-files-actions {
    margin-top: 20px;
    text-align: center;
}

.annotated-files-actions #view-annotated-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.annotated-files-actions #view-annotated-btn:hover {
    background-color: #005a87;
}

/* 模态框样式 */
#annotated-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

.annotated-modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    width: 90%;
    max-width: 1200px;
    height: 80%;
    overflow: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.annotated-modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.annotated-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.annotated-modal-header #close-annotated-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.annotated-modal-header #close-annotated-modal:hover {
    background-color: #e9ecef;
    color: #333;
}

.annotated-modal-body {
    padding: 15px;
    height: calc(100% - 60px);
    overflow: auto;
}

/* 标签页样式 */
.annotated-files-tabs .tab-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ddd;
}

.annotated-files-tabs .tab-item {
    margin-right: 10px;
}

.annotated-files-tabs .tab-link {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: #333;
    transition: all 0.2s;
}

.annotated-files-tabs .tab-item.active .tab-link {
    background-color: #f1f1f1;
    font-weight: 600;
}

.annotated-files-tabs .tab-link:hover {
    background-color: #f8f9fa;
}

/* 标签页内容 */
.tab-content {
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 文件查看器 */
.annotated-file-viewer {
    text-align: center;
    margin-bottom: 15px;
}

.annotated-file-viewer img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.pdf-viewer {
    width: 100%;
    height: 600px;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.file-download {
    padding: 20px;
    text-align: center;
}

/* 文件操作按钮 */
.annotated-file-actions {
    margin-top: 15px;
    text-align: center;
}

.annotated-file-actions .button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.annotated-file-actions .button:hover {
    background-color: #005a87;
}

/* 加载状态 */
#annotated-loading {
    text-align: center;
    padding: 40px 20px;
}

#annotated-loading .spinner {
    margin: 0 auto;
}

/* 通知样式 */
.notice {
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid;
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.notice-error {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

.notice-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .annotated-modal-content {
        width: 95%;
        height: 90%;
        margin: 20px auto;
    }
    
    .annotated-files-tabs .tab-nav {
        flex-wrap: wrap;
    }
    
    .annotated-files-tabs .tab-item {
        margin-bottom: 5px;
    }
    
    .pdf-viewer {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .annotated-modal-header {
        padding: 10px;
    }
    
    .annotated-modal-body {
        padding: 10px;
    }
    
    .tab-content {
        padding: 10px;
    }
    
    .annotated-files-tabs .tab-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .pdf-viewer {
        height: 300px;
    }
}