/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

/* 应用容器 */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 顶部工具栏 */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-title i {
    margin-right: 0.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    width: 250px;
    background-color: rgba(255, 255, 255, 0.9);
}

.search-box i {
    position: absolute;
    right: 0.75rem;
    color: #7f8c8d;
}

/* 主内容区域 */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 350px;
    background-color: white;
    border-right: 1px solid #e1e8ed;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e1e8ed;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.filter-controls select {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.8rem;
    flex: 1;
}

.folders-section, .tags-section {
    padding: 1rem;
    border-bottom: 1px solid #e1e8ed;
}

.folders-section h3, .tags-section h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

#folders-list {
    list-style-type: none;
    margin-bottom: 0.5rem;
}

#folders-list li {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#folders-list li:hover {
    background-color: #f0f2f5;
}

#folders-list li.active {
    background-color: #e3f2fd;
    color: #1976d2;
}

.folder-count {
    font-size: 0.8rem;
    background-color: #e1e8ed;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}

/* 文件夹标签样式 */
.folder-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.folder-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    border: 1px solid transparent;
}

.folder-tab:hover {
    background-color: #e0e0e0;
}

.folder-tab.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

.folder-tab i {
    font-size: 12px;
}

.folder-count {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
}

.folder-tab.active .folder-count {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 批量操作区域 */
.batch-operations {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.batch-actions {
    display: flex;
    gap: 0.5rem;
}

/* 文章复选框 */
.article-checkbox-container {
    position: absolute;
    left: 0.5rem;
    top: 0.75rem;
    z-index: 2;
}

.article-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 调整文章项样式以适应复选框 */
.article-item {
    position: relative;
    padding-left: 2.5rem;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* 提示消息样式 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 文件夹右键菜单 */
.context-menu {
    position: absolute;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 150px;
    padding: 5px 0;
}

.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

.context-menu-item i {
    margin-right: 8px;
    width: 12px;
}

#tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tag:hover {
    opacity: 0.8;
}

.tag.active {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.tag i {
    font-size: 0.7rem;
}

/* 文章列表 */
#articles-list {
    list-style-type: none;
    flex: 1;
    overflow-y: auto;
}

.article-item {
    padding: 1rem;
    border-bottom: 1px solid #e1e8ed;
    cursor: pointer;
    transition: background-color 0.2s;
}

.article-item:hover {
    background-color: #f0f2f5;
}

.article-item.active {
    background-color: #e3f2fd;
    border-left: 4px solid #1976d2;
}

.article-item.read {
    opacity: 0.7;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.article-title {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
    margin-right: 0.5rem;
    line-height: 1.3;
}

.article-importance {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    white-space: nowrap;
}

.importance-very-important {
    background-color: #ffebee;
    color: #c62828;
}

.importance-important {
    background-color: #fff8e1;
    color: #ff8f00;
}

.importance-normal {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.importance-undetermined {
    background-color: #f3f3f3;
    color: #757575;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #7f8c8d;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.article-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    background-color: #e1e8ed;
}

/* 内容区域 */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: row; /* Changed from column to row for side-by-side layout */
    overflow: hidden;
    position: relative; /* For context menu positioning */
}

.article-viewer {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background-color: white;
    min-width: 0; /* Prevents flex item from overflowing */
}

.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #95a5a6;
}

.placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.article-content {
    max-width: none; /* Removed max-width restriction */
    width: 100%;
    min-width: 1200px; /* Ensure minimum width as requested */
    margin: 0 auto;
    line-height: 1.6;
    padding-right: 1rem; /* Add some padding for better reading experience */
}

/* Make sure container handles scroll if content is wider */
.article-viewer {
    overflow-x: auto;
}

.article-content h1, .article-content h2, .article-content h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

/* 图片占位符样式 */
.image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px dashed #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.image-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #7f8c8d;
    text-align: center;
}

.image-error i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.image-error p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.image-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.image-link:hover {
    text-decoration: underline;
}

.article-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e8ed;
}

/* PDF原生显示样式 */
.pdf-native-display {
    max-width: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pdf-native-display .article-header {
    flex-shrink: 0;
    border-bottom: 1px solid #e1e8ed;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.pdf-native-display .article-header h1 {
    margin-bottom: 0.5rem;
}

.pdf-native-display .article-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.pdf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #e74c3c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.pdf-badge i {
    font-size: 0.7rem;
}

.pdf-viewer-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.pdf-viewer-header {
    background-color: #fff;
    border-bottom: 1px solid #e1e8ed;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-controls {
    display: flex;
    gap: 0.5rem;
}

.pdf-controls .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.pdf-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.pdf-viewer {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.pdf-viewer object {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #7f8c8d;
    text-align: center;
    padding: 2rem;
}

.pdf-fallback i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.pdf-fallback p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* 笔记面板 */
.notes-panel {
    width: 350px; /* Fixed width for right sidebar */
    height: 100%; /* Full height */
    border-top: none; /* Remove top border */
    border-left: 1px solid #e1e8ed; /* Add left border */
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease; /* Smooth transition for toggling */
}

.notes-panel.hidden {
    display: none;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e1e8ed;
}

.notes-header h3 {
    font-size: 1rem;
    color: #2c3e50;
}

.notes-actions {
    display: flex;
    gap: 5px;
}

#notes-content {
    flex: 1;
    padding: 1rem;
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    outline: none; /* Remove outline on focus */
}

/* Floating context menu for adding to notes */
.add-to-note-menu {
    position: fixed;
    background-color: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s, transform 0.2s;
}

.add-to-note-menu:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

.add-to-note-menu::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

.notes-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #e1e8ed;
}

/* 底部状态栏 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.status-info {
    display: flex;
    gap: 1rem;
}

.footer-actions {
    display: flex;
    gap: 0.5rem;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: #2c3e50;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #95a5a6;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

#folder-path-display {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
    word-break: break-all;
}

/* 设置模态框样式 */
.settings-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.settings-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.settings-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-actions button {
    justify-content: flex-start;
    text-align: left;
}

/* 关于对话框样式 */
.about-section {
    padding: 10px;
}

.about-section h4 {
    color: #333;
    margin: 20px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-section h4:first-of-type {
    font-size: 1.2em;
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.about-section h4:first-of-type i {
    color: #007bff;
}

.about-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.about-section ul {
    list-style: none;
    padding: 0;
}

.about-section li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-section li i {
    color: #007bff;
    width: 16px;
    text-align: center;
}

.about-footer {
    text-align: center;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    margin-top: 20px;
}

kbd {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 0 0 2px #fff inset;
    color: #333;
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    margin: 0 .1em;
    padding: .1em .6em;
    text-shadow: 0 1px 0 #fff;
}

/* 笔记列表样式 */
#notes-list-container {
    max-height: 400px;
    overflow-y: auto;
}

.note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

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

.note-title {
    display: flex;
    align-items: center;
    flex: 1;
}

.note-title i {
    margin-right: 0.5rem;
    color: #3498db;
}

.note-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 1rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.note-actions {
    display: flex;
    gap: 0.25rem;
}

/* 笔记内容样式 */
.note-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Markdown内容样式 */
.note-content h1, .note-content h2, .note-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.note-content h1 {
    font-size: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.note-content h2 {
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.note-content h3 {
    font-size: 18px;
}

.note-content p {
    margin-bottom: 15px;
}

.note-content ul, .note-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.note-content li {
    margin-bottom: 5px;
}

.note-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    font-style: italic;
}

.note-content pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.note-content code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.note-content pre code {
    background-color: transparent;
    padding: 0;
}

.note-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 15px;
}

.note-content th, .note-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.note-content th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.note-content hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

.note-content a {
    color: #337ab7;
    text-decoration: none;
}

.note-content a:hover {
    text-decoration: underline;
}

.note-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

.no-notes {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 300px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-box input {
        width: 200px;
    }
}

@media (max-width: 576px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 40vh;
    }
    
    .content-area {
        height: 60vh;
    }
    
    .header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 云同步相关样式 */
.cloud-sync-container {
    padding: 15px;
}

.cloud-sync-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.sync-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sync-status-indicator i {
    font-size: 12px;
    color: #6c757d;
}

.sync-status-indicator i.fa-check-circle {
    color: #28a745;
}

.sync-status-indicator i.fa-exclamation-circle {
    color: #ffc107;
}

.sync-status-indicator i.fa-times-circle {
    color: #dc3545;
}

.cloud-sync-form {
    margin-bottom: 20px;
}

.cloud-sync-form .form-group {
    margin-bottom: 15px;
}

.cloud-sync-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cloud-sync-controls {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
}

.sync-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

#sync-user-info {
    font-weight: 500;
    color: #495057;
}

.sync-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.sync-actions button {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sync-progress {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #007bff;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

#sync-progress-text {
    font-size: 14px;
    color: #6c757d;
}

/* 同步状态指示器颜色 */
.sync-status-indicator .status-online {
    color: #28a745;
}

.sync-status-indicator .status-offline {
    color: #dc3545;
}

.sync-status-indicator .status-syncing {
    color: #007bff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 同步冲突对话框样式 */
.sync-conflict-dialog {
    max-width: 600px;
}

.conflict-options {
    margin: 15px 0;
}

.conflict-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.conflict-option:hover {
    background-color: #f8f9fa;
}

.conflict-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.conflict-option input[type="radio"] {
    margin: 0;
    margin-top: 2px;
}

.conflict-details {
    flex: 1;
}

.conflict-details h5 {
    margin: 0 0 5px 0;
    color: #333;
}

.conflict-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
}