* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.container {
    display: flex;
    height: 100vh;
    backdrop-filter: blur(10px);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    /* 设置固定宽度 */
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    overflow-y: auto;
    padding: 0;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

/* 移除.sidebar.active类，因为sidebar现在始终显示 */

.sidebar-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* .sidebar-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
} */

.sidebar-content {
    padding: 5px;
    padding-top: 0;
    padding-bottom: 20;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0 5px 5px 0;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

.container .sidebar.collapsed ~ .main-content {
    margin-left: 0;
}

.drop-zone {
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    padding: 5px;
    /* text-align: center; */
    /* margin: 5px; */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.drop-zone:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.drop-zone.dragover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.3);
}

.folder-structure {
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.8;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tree {
    background: white;
    border-radius: 10px;
    /* padding: 15px; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tree li {
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.02);
    position: relative;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    line-height: 1.4;
}

.tree li:hover {
    background: rgba(0, 0, 0, 0.1);
}

.tree li.selected {
    padding: 10px 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tree ul {
    list-style: none;
    /* padding-left: 20px; */
}

.tree > ul {
    display: block; /* 根级别ul始终显示 */
}

.tree li > ul {
    display: none; /* 默认隐藏子目录 */
}

.tree li.expanded > ul {
    display: block; /* 展开时显示子目录 */
}

.tree li.has-children::before {
    /* content: "▶ "; */
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #666;
}

.tree li.expanded.has-children::before {
    transform: translateY(-50%) rotate(90deg);
}

/* .folder-icon::after {
    content: "📁 ";
    margin-right: 5px;
}

.tree li.leaf-folder::after {
    content: "📄 ";
    margin-right: 5px;
} */

/* 搜索功能样式 */
.search-section {
    flex: 1;
    margin-right: 15px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1001;
}

.search-result-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
    font-size: 13px;
}

.search-result-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-path {
    color: #666;
    font-size: 11px;
    margin-top: 2px;
}

.search-highlight {
    background: rgba(255, 255, 0, 0.3);
    font-weight: bold;
}

/* 搜索结果高亮样式 */
.search-highlight-item {
    border: 3px solid #FF6B35 !important;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5) !important;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 193, 7, 0.1)) !important;
    transform: scale(1.02) !important;
    position: relative;
    z-index: 10;
}

.search-highlight-item::before {
    content: '🎯 搜索结果';
    position: absolute;
    top: -30px;
    left: 20px;
    background: #FF6B35;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    z-index: 11;
    animation: searchLabelPulse 2s ease-in-out infinite;
}

@keyframes searchLabelPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.image-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* 虚拟滚动相关样式 */
.virtual-scroll-container {
    position: relative;
    height: calc(100vh - 160px); /* 增大展示高度，减少头部边距 */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 20px; /* 添加左右内边距 */
}

.virtual-scroll-spacer {
    width: 1px;
    pointer-events: none;
    position: relative;
}

.virtual-scroll-viewport {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    will-change: transform;
    padding: 0 20px; /* 与容器内边距一致 */
}

/* 虚拟滚动模式下的图片项样式调整 */
.virtual-scroll-container .image-item {
    position: absolute !important;
    width: calc(100% - 40px) !important; /* 考虑内边距 */
    margin: 0 !important;
    z-index: 1;
}

.image-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    gap: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.image-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.image-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-item:hover::before {
    left: 100%;
}

.image-section {
    flex: 1;
}

.prompt-section {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 0;
}


.image-section h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    margin-bottom: 20px;
}

.image-container {
    position: relative;
    margin-bottom: 15px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.image-container img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.prompt-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.prompt-content {
    font-family: monospace;
    font-size: 12px;
    background: white;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #ddd;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
    /* 保持换行和空格 */
    tab-size: 2;
    /* 设置缩进大小 */
}

.button-group {
    margin-top: 10px;
}

.btn {
    padding: 8px 16px;
    margin-right: 8px;
    margin-bottom: 2px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
    color: rgba(255, 255, 255, 0.9);
}

.empty-state h2 {
    margin-bottom: 30px;
    color: white;
    font-size: 2.5em;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.empty-state p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.generated-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.breadcrumb {
    background: rgba(233, 236, 239, 0.8);
    backdrop-filter: blur(15px);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.breadcrumb span {
    margin-right: 5px;
}

.breadcrumb .separator {
    color: #6c757d;
    margin: 0 5px;
}

.prompt-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.prompt-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
}

.prompt-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.prompt-close:hover {
    color: black;
}

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

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

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 脉冲动画 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* 标记功能样式 */
.image-actions {
    margin-top: 10px;
    padding: 10px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
}

.action-group {
    margin-bottom: 10px;
}

.action-group h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.btn-reject {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-reject.active {
    background: linear-gradient(135deg, #bd2130, #a71e2a);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.category-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.category-selector select {
    padding: 5px 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: white;
    color: #333;
    max-width: 100px;
}

.category-selector select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.category-group {
    display: flex;
    gap: 10px;
    /* align-items: center; */
    align-items: stretch;
    justify-content: center;
    margin-bottom: 5px;
    padding: 5px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

.category-actions {
    width:  100%;
    margin-top: 0px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
}

.btn-add-category {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-remove-category {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    font-size: 11px;
    padding: 6px 12px;
    margin: 0;
}

.status-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.status-rejected {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.status-categorized {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.export-section {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: translateX(0);
    max-width: calc(100vw - 40px);
    overflow: visible;
}

.export-section.collapsed {
    transform: translateX(calc(100% + 15px));
}

.export-section .toggle-btn {
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 101;
}

.export-section .toggle-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.export-section.collapsed .toggle-btn {
    left: -35px;
}

.export-section .export-content {
    transition: opacity 0.3s ease;
}

.export-section.collapsed .export-content {
    opacity: 0;
    pointer-events: none;
}

.export-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.export-buttons {
    display: flex;
    gap: 10px;
}

.clear-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-clear {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
    font-size: 11px;
    padding: 6px 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-clear:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

@media (max-width: 768px) {
    .export-section {
        left: 50%;
        transform: translateX(-50%);
        bottom: 80px;
    }
    
    .export-section.collapsed {
        transform: translateX(calc(-50% + 100% - 8px));
    }
    
    .export-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .category-selector {
        flex-direction: column;
    }
    
    .category-selector select {
        min-width: unset;
        width: 100%;
    }
}

/* 添加悬浮按钮样式 */
.sidebar-toggle {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 添加响应式样式 */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        /* 允许页面整体滚动 */
        height: auto;
        /* 自动高度 */
        min-height: 100vh;
        /* 最小高度为视口高度 */
    }

    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        /* 改为visible，避免与sidebar滚动冲突 */
    }

    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        /* 移动端默认隐藏 */
        transition: transform 0.3s ease;
        /* 添加过渡效果 */
        width: 100%;
        /* 移动端全宽 */
        padding: 0;
        height: 100vh;
        /* 设置高度为视口高度 */
        overflow-y: auto;
        /* 确保sidebar可以独立滚动 */
        top: 0;
        /* 始终从视口顶部开始 */
        left: 0;
        z-index: 9999;
        /* 确保在最上层 */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
    }

    .sidebar.active {
        transform: translateX(0);
        /* 激活时显示 */
    }

    .main-content {
        margin-left: 0;
        /* 移动端不需要左边距 */
        overflow-y: auto;
        /* 确保main-content可以独立滚动 */
        height: auto;
        /* 自动高度 */
        min-height: 100vh;
        /* 最小高度为视口高度 */
    }

    .sidebar-toggle {
        display: flex;
        /* 移动端显示切换按钮 */
    }

    .sidebar-content {
        padding: 15px;
        padding-top: 0;
    }

    .tree li {
        padding: 10px;
    }

    .image-container img:hover {
        transform: none;
        /* 移动端不需要悬停效果 */
    }
}

/* 添加需改动按钮样式 */
.btn-revision {
    background: linear-gradient(135deg, #ff9500, #e08900);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.btn-revision:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.4);
}

.btn-revision.active {
    background: linear-gradient(135deg, #e08900, #cc7a00);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.status-needs-revision {
    background: linear-gradient(135deg, #ff9500, #e08900);
}

/* 筛选功能样式 */
.filter-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.filter-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 导入功能样式 */
.import-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.import-section h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.import-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-import {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
    font-size: 11px;
    padding: 6px 12px;
}

.btn-import:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* 数据展示模块样式 */
.stats-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-rate {
    font-size: 11px;
    color: #888;
}

.stat-card.rejected .stat-value {
    color: #dc3545;
}

.stat-card.revision .stat-value {
    color: #ff9500;
}

.stat-card.categorized .stat-value {
    color: #28a745;
}

.stat-card.generated .stat-value {
    color: #667eea;
}

/* 弹层功能样式 */
.management-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.management-modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.management-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
    color: white;
}

.management-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.management-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.management-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.management-modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 80px); /* 减去header高度 */
}

/* Tab 导航样式 */
.management-nav-tabs {
    list-style: none;
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
    padding: 0;
}

.management-nav-tabs li {
    margin-bottom: -2px; /* 让active的下边框覆盖父元素的下边框 */
}

.management-nav-tabs li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.management-nav-tabs li.active a,
.management-nav-tabs li a:hover {
    color: #667eea;
    background-color: rgba(255, 255, 255, 0.8);
    border-color: #e9ecef;
}

.management-nav-tabs li.active a {
    border-bottom-color: transparent; /* active状态下，下边框透明 */
    position: relative;
}

/* Tab 内容面板样式 */
.management-tab-content .management-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.management-section {
    margin-bottom: 15px;
    padding: 20px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.management-section:last-child {
    margin-bottom: 0;
}

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

/* 管理按钮样式 */
.management-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.management-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.management-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    pointer-events: none;
}

.management-btn:hover::before {
    width: 300px;
    height: 300px;
    pointer-events: none;
}

/* 侧边栏收起按钮样式 */
.sidebar-collapse-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: fixed;
    top: 20px;
    left: 260px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
}

/* 当sidebar收起时，按钮移到左边缘 */
.sidebar.collapsed ~ .sidebar-collapse-btn {
    left: 10px;
    opacity: 0.3;
}

.sidebar-collapse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.sidebar-collapse-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.sidebar-collapse-btn:hover::before {
    width: 300px;
    height: 300px;
}

@media (max-width: 768px) {
    .sidebar-collapse-btn {
        display: none; /* 移动端隐藏收起按钮，使用悬浮按钮 */
    }
    
    .management-modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 90vh;
    }
    
    .management-modal-header {
        padding: 15px 20px;
    }
    
    .management-modal-body {
        padding: 20px;
    }
    
    .filter-buttons,
    .import-buttons {
        flex-direction: column;
    }
    
    .filter-btn,
    .btn-import {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 重新生成功能样式 */
.regenerate-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.regenerate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.regenerate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 批量入库功能样式 */
.batch-import-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.batch-import-config {
    margin-bottom: 20px;
}

.config-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.config-row label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    min-width: 140px;
}

.config-row input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 120px;
}

.config-help {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.batch-import-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.batch-import-progress {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-header h5 {
    margin: 0;
    color: #333;
}

.progress-stats {
    font-size: 12px;
    color: #666;
}

.progress-bar-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    min-width: 40px;
}

.batch-import-tasks {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: none;
}

.task-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.task-list-header h5 {
    margin: 0;
    color: #333;
}

.task-list-legend-toggle {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    cursor: pointer;
}

.task-list-legend-toggle:hover {
    text-decoration: underline;
}

.task-list-legend {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s;
}

.task-list-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 12px;
    color: #333;
}

.task-list-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-list-legend .legend-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.task-list-legend .legend-divider {
    width: 100%;
    height: 1px;
    background-color: #e9ecef;
    margin: 5px 0;
}

.legend-status.pending { background: #6c757d; }
.legend-status.processing { background: #ffc107; }
.legend-status.success { background: #28a745; }
.legend-status.failed { background: #dc3545; }
.legend-status.skipped { background: #adb5bd; }


.batch-import-tasks h5 {
    margin: 0 0 15px 0;
    color: #333;
}

.task-list-container {
    max-height: 320px;
    overflow-y: auto;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.task-status.pending {
    background: #6c757d;
}

.task-status.processing {
    background: #ffc107;
    animation: pulse 1s infinite;
}

.task-status.success {
    background: #28a745;
}

.task-status.failed {
    background: #dc3545;
}

.task-status.skipped {
    background: #adb5bd;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.task-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.task-info {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-details {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; /* 允许换行 */
}

.task-gallery {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.task-gallery.uncategorized {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.task-gallery.categorized {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.task-meta-divider {
    color: #e0e0e0;
    font-size: 14px;
}

.task-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 11px;
    color: #888;
}

.task-meta-item .status-yes {
    color: #28a745;
    font-weight: bold;
}

.task-meta-item .status-no {
    color: #dc3545;
    font-weight: bold;
}

.task-message {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

.task-message.success {
    color: #28a745;
}

.task-message.failed {
    color: #dc3545;
}

/* 确认对话框样式 */
.regenerate-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.regenerate-modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.regenerate-modal-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

.regenerate-modal-content > p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
}

/* Prompt编辑区域样式 */
.prompt-editor-section {
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
}

.prompt-editor-section label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.prompt-tip {
    font-weight: normal;
    color: #6c757d;
    font-size: 13px;
    margin-left: 10px;
}

.prompt-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Segoe UI', system-ui, sans-serif;
    resize: vertical;
    background: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.prompt-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.prompt-textarea::placeholder {
    color: #adb5bd;
}

.prompt-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
    color: #6c757d;
}

.reset-prompt-btn {
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-prompt-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.regenerate-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.regenerate-modal-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.regenerate-confirm-btn {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
}

.regenerate-cancel-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.regenerate-confirm-btn:hover {
    background: linear-gradient(135deg, #40c057, #37b24d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 192, 87, 0.3);
}

.regenerate-cancel-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Loading状态样式 */
.regenerate-loading {
    display: none;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    margin: 15px 0;
}

.regenerate-loading.show {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-text {
    color: #666;
    font-size: 14px;
}

/* 结果处理样式 */
.regenerate-result {
    display: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
    z-index: 10;
    min-height: 300px; /* 固定最小高度防止重叠 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.regenerate-result.show {
    display: block;
}

/* 防止生成过程中的布局跳动 */
.image-container.regenerating {
    min-height: 400px; /* 为regenerate-result预留空间 */
}

.result-preview {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.result-preview-item {
    flex: 1;
    text-align: center;
}

.result-preview-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-preview-item h4 {
    margin: 10px 0 5px;
    color: #333;
    font-size: 16px;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-keep-btn {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
}

.result-revert-btn {
    background: linear-gradient(135deg, #868e96, #6c757d);
    color: white;
}

.result-regenerate-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
}

.result-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Toast 提示样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    min-width: 120px;
    max-width: 250px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* 不同类型的toast颜色 */
.toast.toast-reject {
    background: rgba(220, 53, 69, 0.7);
}

.toast.toast-revision {
    background: rgba(255, 193, 7, 0.7);
}

.toast.toast-category {
    background: rgba(253, 126, 20, 0.7);
}

.toast.toast-success {
    background: rgba(40, 167, 69, 0.7);
}

.task-message.failed {
    color: #dc3545;
}

.task-list-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.task-list-placeholder p {
    margin-bottom: 10px;
}

.placeholder-tip {
    font-size: 12px;
    color: #868e96;
    text-align: left;
    display: inline-block;
    background: rgba(0,0,0,0.02);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}