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

body {
    background-color: #f5f5f5;
    color: #333;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 10%;
}

header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}


header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}


/* 搜索切换按钮 - 默认隐藏 */
.search-toggle-btn {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    /* 确保按钮可以被点击 */
    outline: none;
    user-select: none;
}

.search-section .export-import-mobile {
    display: none;
}

.search-toggle-btn:hover {
    background-color: #3498db;
    transform: scale(1.05);
}

.search-toggle-btn:hover .search-icon {
    transform: scale(1.1);
}

.search-icon {
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
    pointer-events: none;
    /* 防止图标阻止按钮点击事件 */
}

/* .search-section {
    margin-bottom: 30px;
} */

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

#searchInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: #f8f9fa;
}

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

.suggestion-code {
    font-weight: bold;
    color: #2c3e50;
    margin-right: 8px;
}

.suggestion-name {
    flex: 1;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-highlight {
    background-color: #fff3cd;
    padding: 1px 2px;
    border-radius: 2px;
}

#searchBtn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#searchBtn:hover {
    background-color: #2980b9;
}

.search-results {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

.search-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.fund-info {
    flex: 1;
}

.fund-code {
    font-weight: bold;
    color: #2c3e50;
}

.fund-name {
    color: #666;
    font-size: 14px;
    margin-top: 2px;
}

.add-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.add-btn:hover {
    background-color: #229954;
}

.tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0;
}

.tabs {
    display: flex;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
    margin-inline-start: 2rem;
}

#filterInput {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
    transition: all 0.3s ease;
}

#filterInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

#clearFilter {
    background: none;
    border: none;
    font-size: 16px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

#clearFilter:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.tab-btn.active {
    border-bottom-color: #3498db;
    color: #3498db;
    font-weight: bold;
}

.export-import-section {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.export-import-btn {
    padding: 6px 12px;
    font-size: 14px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-import-btn:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
}

.export-import-btn:active {
    transform: translateY(0);
}

/* 清空按钮特殊样式 */
.export-import-btn.clear-btn {
    background-color: #e74c3c;
}

.export-import-btn.clear-btn:hover {
    background-color: #c0392b;
}

/* 股指信息区域 */
.index-section {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #d5ddff 0%, #ff9731 100%);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.index-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.index-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.index-name {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 4px;
}

.index-price {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    font-family: 'Consolas', 'Monaco', monospace;
}

.index-change {
    font-size: 14px;
    font-weight: bold;
    font-family: 'Consolas', 'Monaco', monospace;
}

.index-percent {
    font-size: 13px;
    font-weight: bold;
    font-family: 'Consolas', 'Monaco', monospace;
}

.index-volume {
    font-size: 11px;
    color: #666;
}

.index-stats {
    font-size: 10px;
    color: #888;
    line-height: 1.2;
}

.update-info {
    text-align: right;
    margin-bottom: 10px;
}

.update-time-standalone {
    font-size: 12px;
    color: #7f8c8d;
    opacity: 0.9;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.table-section {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

/* 基金信息单元格样式 */
.fund-info-cell {
    min-width: 120px;
    max-width: 200px;
}

.fund-code {
    font-size: 12px;
    color: #666;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: bold;
    margin-bottom: 2px;
}

.fund-name {
    font-size: 13px;
    color: #333;
    line-height: 1.2;
    word-break: break-all;
    overflow-wrap: break-word;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

/* 可排序的列头 */
th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

th.sortable:hover {
    background-color: #e9ecef;
}

/* 排序指示器 */
.sort-indicator {
    margin-left: 5px;
    font-size: 10px;
    color: #bdc3c7;
}

th.sortable.sort-asc .sort-indicator::before {
    content: '▲';
    color: #3498db;
}

th.sortable.sort-desc .sort-indicator::before {
    content: '▼';
    color: #3498db;
}

th.sortable:not(.sort-asc):not(.sort-desc) .sort-indicator::before {
    content: '▲▼';
}

/* 数据更新动画 */
.data-updating {
    background-color: rgba(52, 152, 219, 0.1) !important;
    animation: dataUpdate 0.6s ease-in-out;
}

@keyframes dataUpdate {
    0% {
        background-color: rgba(52, 152, 219, 0.3);
    }

    100% {
        background-color: rgba(52, 152, 219, 0.1);
    }
}

/* 表格行淡入效果 */
tbody tr {
    opacity: 1;
    transition: opacity 0.3s ease;
}

tbody tr.loading-row {
    opacity: 0.6;
}

/* 数值变化动画 */
.value-changed {
    animation: valueChange 0.5s ease;
}

@keyframes valueChange {
    0% {
        transform: scale(1);
        color: #3498db;
    }

    50% {
        transform: scale(1.05);
        color: #2980b9;
    }

    100% {
        transform: scale(1);
    }
}

/* 筛选行显示/隐藏动画 */
tbody tr {
    transition: opacity 0.3s ease, max-height 0.3s ease;
    max-height: 100px;
    opacity: 1;
}

tbody tr.filtered-hidden {
    display: none !important;
}

tbody tr.holdings-hidden {
    display: none !important;
}

tbody tr.filtered-hidden td,
tbody tr.holdings-hidden td {
    padding: 0;
    border: none;
}

/* 筛选高亮 */
.filter-highlight {
    background-color: #fff3cd !important;
    font-weight: bold;
}

/* 加载中的单元格样式 */
.loading-cell {
    color: #bdc3c7;
    font-style: italic;
    position: relative;
}

.loading-cell::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 2px solid #ecf0f1;
    border-left-color: #3498db;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
    opacity: 0.6;
    display: none;
}

.loading-cell:hover::after {
    display: block;
}

@keyframes loading-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.positive {
    color: #e74c3c;
}

.negative {
    color: #27ae60;
}

.neutral {
    color: #7f8c8d;
}

.action-btn {
    padding: 5px 10px;
    margin-right: 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.set-holding-btn {
    background-color: #f39c12;
    color: white;
}

.set-holding-btn:hover {
    background-color: #e67e22;
}

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

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

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

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    max-width: 90%;
}

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

.close:hover {
    color: black;
}

#holdingAmount {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 1rem;
}

.modal-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#saveHolding {
    background-color: #27ae60;
    color: white;
}

#saveHolding:hover {
    background-color: #229954;
}

#cancelHolding {
    background-color: #95a5a6;
    color: white;
}

#cancelHolding:hover {
    background-color: #7f8c8d;
}

/* 清空确认对话框按钮样式 */
#confirmClear {
    background-color: #e74c3c;
    color: white;
}

#confirmClear:hover {
    background-color: #c0392b;
}

#cancelClear {
    background-color: #95a5a6;
    color: white;
}

#cancelClear:hover {
    background-color: #7f8c8d;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 3px;
    margin: 10px 0;
}

.empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    /* 显示搜索切换按钮 */
    .search-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 默认隐藏搜索区域 */
    .search-section {
        display: none;
        margin-bottom: 20px;
        background: #383838;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        animation: slideDown 0.3s ease-out;
    }

    /* 展开状态 */
    .search-section.show {
        display: block !important;
    }

    /* 展开动画 */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

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

    .search-box {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
    }

    #searchBtn {
        padding: 12px 20px;
        font-size: 16px;
    }

    /* 导入导出按钮移到搜索区域下方 */
    .search-section .export-import-mobile {
        display: flex;
        justify-content: end;
        gap: 8px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e9ecef;
    }

    .tabs-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 15px;
        border-bottom: 1px solid #865c5c;
    }

    .tabs {
        justify-content: start;
    }

    .tab-btn {
        padding: 12px 25px;
        font-size: 16px;
    }

    .filter-section {
        justify-content: center;
        margin-bottom: 0;
        margin-inline-start: 10px;
    }

    /* 隐藏原来的导入导出区域 */
    .export-import-section {
        display: none;
    }

    .export-import-btn {
        padding: 3px 12px;
        font-size: 12px;
    }

    #filterInput {
        width: 120px;
        padding: 4px 5px;
        font-size: 14px;
    }

    .update-info {
        text-align: center;
        margin-bottom: 5px;
    }

    .update-time-standalone {
        font-size: 11px;
        padding: 3px 6px;
    }

    /* 表格移动端优化 */
    .table-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }

    table {
        font-size: 13px;
        min-width: 100%;
        white-space: nowrap;
    }

    th,
    td {
        padding: 10px 6px;
        min-width: 0;
    }

    /* 基金信息列 */
    .fund-info-cell {
        min-width: 120px;
        max-width: 140px;
        padding: 8px 6px;
        overflow: hidden;
    }

    .fund-code {
        font-size: 11px;
        margin-bottom: 1px;
    }

    .fund-name {
        font-size: 11px;
        line-height: 1.1;
    }

    /* 涨跌幅列 */
    th:nth-child(2),
    td:nth-child(2) {
        min-width: 60px;
        font-weight: bold;
    }

    /* 持仓相关列 */
    .holdings-only {
        min-width: 70px;
        font-size: 12px;
    }

    /* 操作列 */
    th:last-child,
    td:last-child {
        min-width: 100px;
    }

    /* 操作按钮优化 */
    .action-btn {
        padding: 6px 8px;
        margin: 1px;
        font-size: 11px;
        border-radius: 4px;
        display: inline-block;
        min-width: 35px;
    }

    /* 合计行优化 */
    #summaryRow td {
        font-weight: bold;
        background-color: #f8f9fa;
        border-top: 2px solid #dee2e6;
    }

    /* 搜索建议优化 */
    .search-suggestions {
        max-height: 250px;
        font-size: 14px;
    }

    .suggestion-item {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .suggestion-code {
        margin-bottom: 4px;
        font-size: 14px;
    }

    .suggestion-name {
        font-size: 13px;
        white-space: normal;
        word-break: break-all;
    }

    /* 搜索结果优化 */
    .search-results {
        max-height: 200px;
    }

    .search-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .fund-info {
        margin-bottom: 8px;
        width: 100%;
    }

    .fund-code {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .fund-name {
        font-size: 13px;
    }

    .add-btn {
        align-self: flex-end;
        padding: 8px 15px;
        font-size: 13px;
    }

    /* 模态框优化 */
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px 15px;
        border-radius: 8px;
    }

    .modal-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    #fundInfo {
        font-size: 14px;
        margin-bottom: 10px;
        word-break: break-all;
    }

    #holdingAmount {
        padding: 12px;
        font-size: 16px;
        margin: 12px 0;
        border-radius: 6px;
    }

    .modal-buttons {
        gap: 12px;
    }

    .modal-buttons button {
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 6px;
        flex: 1;
    }
}

/* 小屏幕设备进一步优化 */
@media (max-width: 480px) {
    .container {
        padding: 8px;
    }

    header {
        margin-bottom: 8px;
    }

    header h1 {
        font-size: 1.6rem;
        height: 1.6rem;
        gap: 0.2em;
    }

    .theme-toggle-btn {
        font-size: 1.2rem;
    }

    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 8px 4px;
    }

    /* 基金信息列更紧凑 */
    .fund-info-cell {
        min-width: 100px;
        max-width: 188px;
        padding: 6px 4px;
    }

    .fund-code {
        font-size: 10px;
        margin-bottom: 1px;
    }

    .fund-name {
        font-size: 11px;
        line-height: 1.0;
    }

    /* 操作按钮更小 */
    .action-btn {
        padding: 4px 6px;
        font-size: 10px;
        min-width: 30px;
    }

    /* 涨跌幅列 */
    th:nth-child(2),
    td:nth-child(2) {
        min-width: 50px;
        font-size: 12px;
    }

    .holdings-only {
        min-width: 60px;
        font-size: 11px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 15px 12px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* 触控设备优化 */
@media (hover: none) and (pointer: coarse) {

    /* 增加可点击区域 */
    .action-btn,
    .tab-btn,
    #searchBtn,
    .add-btn,
    .search-toggle-btn {
        touch-action: manipulation;
    }

    .add-btn {
        padding: 3px 15px;
    }

    /* 优化输入框触控体验 */
    #searchInput,
    #filterInput,
    #holdingAmount {
        touch-action: manipulation;
    }

    /* 表格行点击区域优化 */
    tbody tr {
        min-height: 44px;
    }

    /* 搜索建议项触控优化 */
    .suggestion-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 10px;
    }

    /* 搜索结果项触控优化 */
    .search-item {
        min-height: 60px;
        padding: 15px 12px;
    }

    /* 股指区域移动端优化 */
    .index-section {
        margin-bottom: 15px;
        padding: 12px;
    }

    .index-container {
        flex-direction: column;
        gap: 8px;
    }

    .index-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 6px 8px;
        gap: 1px;
    }

    .index-name {
        font-size: 11px;
        min-width: 35px;
        text-align: left;
    }

    .index-price {
        font-size: 12px;
        min-width: 55px;
    }

    .index-change,
    .index-percent {
        font-size: 11px;
        min-width: 45px;
    }

    .index-volume {
        display: none;
        /* 移动端隐藏总市值 */
    }

    .index-stats {
        font-size: 8px;
        min-width: 70px;
        text-align: right;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 关闭按钮触控优化 */
    .close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    header h1 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }

    .search-section {
        margin-bottom: 15px;
    }

    .tabs-container {
        margin-bottom: 10px;
    }
}


@media (max-width: 768px) and (prefers-color-scheme: dark) {

    /* 移除重复的样式，统一使用body.dark-mode或@media(prefers-color-scheme: dark)选择器 */
    .export-import-mobile {
        border-top-color: #4a4a4a;
    }

    .export-import-mobile {
        display: inline-flex;
    }
}

/* 暗色主题适配 */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode #searchBtn {
    padding: 3px 6px;
    background-color: #34546a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

body.dark-mode .container {
    background-color: #1a1a1a;
}

body.dark-mode header h1 {
    color: #ffffff;
}

body.dark-mode #searchInput,
body.dark-mode #filterInput,
body.dark-mode #holdingAmount {
    background-color: #2d2d2d;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-mode #searchInput:focus,
body.dark-mode #filterInput:focus,
body.dark-mode #holdingAmount:focus {
    border-color: #6aa3f5;
    box-shadow: 0 0 0 2px rgba(106, 163, 245, 0.2);
}

body.dark-mode .search-suggestions,
body.dark-mode .search-results,
body.dark-mode .modal-content {
    background-color: #2d2d2d;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-mode .suggestion-item:hover,
body.dark-mode .search-item:hover {
    background-color: #3a3a3a;
}

body.dark-mode .table-section,
body.dark-mode .modal-content {
    background-color: #2d2d2d;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

body.dark-mode th {
    background-color: #3a3a3a;
    color: #ffffff;
}

body.dark-mode td {
    border-color: #4a4a4a;
}

body.dark-mode .update-time-standalone {
    background-color: unset;
    border: none;
    color: #b0b0b0;
}

body.dark-mode tbody tr:hover {
    background-color: #333333;
}

body.dark-mode .fund-code {
    color: #b0b0b0;
}

body.dark-mode .fund-name {
    color: #e0e0e0;
}

body.dark-mode .search-toggle-btn {
    border-color: #6aa3f5;
    color: #e0e0e0;
}

body.dark-mode .search-toggle-btn:hover {
    background-color: #6aa3f5;
}

body.dark-mode .tab-btn {
    color: #b0b0b0;
}

body.dark-mode .tab-btn.active {
    color: #6aa3f5;
}

body.dark-mode #summaryRow td {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
    color: #ffffff;
}

body.dark-mode .export-import-btn {
    background-color: #48c774;
    border-color: #48c774;
}

body.dark-mode .export-import-btn:hover {
    background-color: #3ec46d;
}

/* 暗色主题清空按钮样式 */
body.dark-mode .export-import-btn.clear-btn {
    background-color: #f14668;
}

body.dark-mode .export-import-btn.clear-btn:hover {
    background-color: #e53e60;
}

/* 暗色主题清空确认按钮样式 */
body.dark-mode #confirmClear {
    background-color: #f14668;
}

body.dark-mode #confirmClear:hover {
    background-color: #e53e60;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    #searchBtn {
        padding: 3px 6px;
        background-color: #34546a;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
    }

    .container {
        background-color: #1a1a1a;
    }

    header h1 {
        color: #ffffff;
    }

    #searchInput,
    #filterInput,
    #holdingAmount {
        background-color: #2d2d2d;
        border-color: #4a4a4a;
        color: #e0e0e0;
    }

    #searchInput:focus,
    #filterInput:focus,
    #holdingAmount:focus {
        border-color: #6aa3f5;
        box-shadow: 0 0 0 2px rgba(106, 163, 245, 0.2);
    }

    .search-suggestions,
    .search-results,
    .modal-content {
        background-color: #2d2d2d;
        border-color: #4a4a4a;
        color: #e0e0e0;
    }

    .suggestion-item:hover,
    .search-item:hover {
        background-color: #3a3a3a;
    }

    .table-section,
    .modal-content {
        background-color: #2d2d2d;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    th {
        background-color: #3a3a3a;
        color: #ffffff;
    }

    td {
        border-color: #4a4a4a;
    }

    .update-time-standalone {
        background-color: unset;
        border: none;
        color: #b0b0b0;
    }

    tbody tr:hover {
        background-color: #333333;
    }

    .fund-code {
        color: #b0b0b0;
    }

    .fund-name {
        color: #e0e0e0;
    }

    .search-toggle-btn {
        border-color: #6aa3f5;
        color: #e0e0e0;
    }

    .search-toggle-btn:hover {
        background-color: #6aa3f5;
    }

    .tab-btn {
        color: #b0b0b0;
    }

    .tab-btn.active {
        color: #6aa3f5;
    }

    #summaryRow td {
        background-color: #3a3a3a;
        border-color: #4a4a4a;
        color: #ffffff;
    }

    .export-import-btn {
        background-color: #48c774;
        border-color: #48c774;
    }

    .export-import-btn:hover {
        background-color: #3ec46d;
    }
}

/* =============== 板块资金流向图表样式 =============== */
.chart-section {
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.chart-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-refresh-btn {
    background: #ceebff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.chart-refresh-btn:hover {
    background: #74a9cc;
    transform: scale(1.05);
}

.chart-refresh-btn:active {
    transform: scale(0.95);
}

.chart-refresh-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.chart-update-time {
    font-size: 0.85em;
    color: #666;
}

.chart-container {
    padding: 20px;
}

.chart-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-column-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1em;
    padding-bottom: 8px;
    border-bottom: 2px solid;
}

.chart-column-title.positive {
    color: #e74c3c;
    border-color: #e74c3c;
}

.chart-column-title.negative {
    color: #27ae60;
    border-color: #27ae60;
}

.bars-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-item {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bar-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.bar-label {
    font-size: 0.9em;
    font-weight: 500;
    color: #2c3e50;
    text-align: right;
    padding-right: 8px;
}

.bar-wrapper {
    position: relative;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease-in-out;
    position: relative;
}

.bar.positive {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.bar.negative {
    background: linear-gradient(90deg, #27ae60, #229954);
}

.bar-value {
    font-size: 0.85em;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.bar-item:nth-child(1) .bar-value {
    color: #e74c3c;
}

.bar-item:nth-child(2) .bar-value {
    color: #e67e22;
}

.bar-item:nth-child(3) .bar-value {
    color: #f39c12;
}

.bar-item:nth-child(4) .bar-value {
    color: #3498db;
}

.bar-item:nth-child(5) .bar-value {
    color: #9b59b6;
}

.chart-placeholder {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 1.1em;
}

.chart-placeholder.error {
    color: #e74c3c;
}

.chart-placeholder.error small {
    color: #95a5a6;
    font-size: 0.9em;
    margin-top: 8px;
    display: block;
}

/* =============== 日志区域样式 =============== */
.log-section {
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.log-header {
    background: #f8f9fa;
    padding: 3px 16px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.3s ease;
}

.log-header:hover {
    background: #e9ecef;
}

.log-title {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.log-toggle {
    color: #6c757d;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.log-toggle.collapsed {
    transform: rotate(-90deg);
}

.log-content {
    display: none;
    animation: slideDown 0.3s ease;
}

.log-content.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.log-controls {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
}

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

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

.log-output {
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    background: #ffffff;
}

.log-entry {
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 3px solid transparent;
}

.log-entry.info {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #0d47a1;
}

.log-entry.success {
    background: #e8f5e8;
    border-left-color: #4caf50;
    color: #1b5e20;
}

.log-entry.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
    color: #e65100;
}

.log-entry.error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

.log-timestamp {
    color: #6c757d;
    font-size: 11px;
    margin-right: 8px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .log-section {
        margin-top: 20px;
    }

    .log-output {
        max-height: 200px;
        padding: 12px;
        font-size: 12px;
    }

    .log-controls {
        padding: 8px 12px;
    }

    .log-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    /* 板块图表移动端优化 */
    .chart-section {
        margin-top: 20px;
    }

    .chart-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bar-item {
        grid-template-columns: 69px 1fr 50px;
        gap: 8px;
        padding: 6px;
    }

    .bar-label {
        font-size: 0.8em;
        text-align: left;
        padding-right: 4px;
    }

    .bar-value {
        font-size: 0.75em;
        min-width: 50px;
    }

    .chart-header {
        padding: 10px 12px;
    }

    .chart-header h3 {
        display: none;
    }

    .chart-update-time {
        font-size: 0.8em;
    }

    .chart-container {
        padding: 15px;
    }

    .chart-refresh-btn {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }

    .chart-controls {
        gap: 8px;
    }

    /* 暗色主题 */
    body.dark-mode .search-section {
        border-color: #4a4a4a;
        background: #424242;
    }

}

/* 暗色主题 */
body.dark-mode .chart-section {
    border-color: #4a4a4a;
    background: #2a2a2a;
}

body.dark-mode .chart-header {
    background: #3a3a3a;
    border-bottom-color: #4a4a4a;
}

body.dark-mode .chart-header h3 {
    color: #e0e0e0;
}

body.dark-mode .chart-update-time {
    color: #b0b0b0;
}

body.dark-mode .chart-refresh-btn {
    background: #383838;
}

body.dark-mode .chart-refresh-btn:hover {
    background: #383838;
}

body.dark-mode .chart-refresh-btn:disabled {
    background: #4a4a4a;
}

body.dark-mode .bar-item {
    background: #3a3a3a;
}

body.dark-mode .bar-item:hover {
    background: #404040;
}

body.dark-mode .bar-label {
    color: #e0e0e0;
}

body.dark-mode .bar-wrapper {
    background: #4a4a4a;
}

body.dark-mode .chart-placeholder {
    color: #b0b0b0;
}

body.dark-mode .log-section {
    border-color: #4a4a4a;
    background: #2a2a2a;
}



body.dark-mode .log-header {
    background: #3a3a3a;
    border-bottom-color: #4a4a4a;
}

body.dark-mode .log-header:hover {
    background: #404040;
}

body.dark-mode .log-title {
    color: #e0e0e0;
}

body.dark-mode .log-toggle {
    color: #b0b0b0;
}

body.dark-mode .log-controls {
    background: #3a3a3a;
    border-bottom-color: #4a4a4a;
}

body.dark-mode .log-btn {
    background: #2a2a2a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-mode .log-btn:hover {
    background: #404040;
    border-color: #6a6a6a;
}

body.dark-mode .log-output {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .log-entry.info {
    background: #1e3a5f;
    color: #90caf9;
}

body.dark-mode .log-entry.success {
    background: #2e5d2e;
    color: #a5d6a7;
}

body.dark-mode .log-entry.warning {
    background: #5d4e2e;
    color: #ffcc02;
}

body.dark-mode .log-entry.error {
    background: #5d2e2e;
    color: #ef5350;
}

body.dark-mode .log-timestamp {
    color: #6c757d;
}

/* 股指区域暗色主题 */
body.dark-mode .index-section {
    background: linear-gradient(135deg, #434343 0%, #2c2c2c 100%);
}

body.dark-mode .index-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

body.dark-mode .index-name {
    color: #e0e0e0;
}

body.dark-mode .index-price {
    color: #ffffff;
}

body.dark-mode .index-volume {
    color: #b0b0b0;
}

body.dark-mode .index-stats {
    color: #888;
}


.setting-block{
    text-align: center;
    padding-top: 1rem;
}

/* 主题切换按钮 */
.theme-toggle-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    margin-inline-end: 8px;
    font-size: 1.5rem;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
/* 设置按钮样式 */
.settings-toggle-btn {  
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    outline: none;
    user-select: none; 
    padding: 10px; 
}
 
.settings-icon {
    font-size: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* 设置弹窗样式 */
.settings-modal .modal-content {
    width: 600px;
    max-width: 95%;
    margin: 5% auto;
    max-height: 90vh;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.settings-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.settings-section h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #34495e;
}

.setting-item input[type="number"],
.setting-item input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.setting-item input[type="number"]:focus,
.setting-item input[type="url"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.setting-item label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.setting-item small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

/* 数据同步区域样式 */
.sync-controls {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sync-desc {
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

.sync-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sync-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
    position: relative;
}

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

.upload-btn:hover {
    background: linear-gradient(135deg, #218838, #1fa588);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.download-btn {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
}

.download-btn:hover {
    background: linear-gradient(135deg, #0056b3, #520dc2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.sync-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sync-btn:active {
    transform: translateY(0);
}

/* 用户身份验证区域 */
.user-status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.user-status span {
    font-weight: 500;
    color: #495057;
}

.login-btn,
.logout-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: #28a745;
    color: white;
}

.login-btn:hover {
    background-color: #218838;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* 设置弹窗按钮 */
.save-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background-color: #218838;
}

.reset-btn {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background-color: #545b62;
}

/* 登录弹窗样式 */
.login-modal .modal-content {
    width: 450px;
    max-width: 95%;
}

.login-form {
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #34495e;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
}

.login-submit-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.login-submit-btn:hover {
    background-color: #0056b3;
}

.login-submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {

 
    .settings-modal .modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }

    .settings-section h4 {
        font-size: 16px;
    }

    .user-status {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .user-status span {
        text-align: center;
    }

    .login-btn,
    .logout-btn {
        width: 100%;
        padding: 10px;
    }

    .login-modal .modal-content {
        width: 95%;
        margin: 10px auto;
    }

    /* 数据同步按钮移动端优化 */
    .sync-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .sync-btn {
        width: 100%;
        min-width: auto;
    }

    .sync-desc {
        font-size: 13px;
        text-align: center;
    }
}
 

/* 暗色主题设置样式 */
body.dark-mode .settings-section {
    border-color: #4a4a4a;
}

body.dark-mode .settings-section h4 {
    color: #e0e0e0;
}

body.dark-mode .setting-item label {
    color: #c0c0c0;
}

body.dark-mode .setting-item input[type="number"],
body.dark-mode .setting-item input[type="url"],
body.dark-mode .form-group input {
    background-color: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .setting-item input[type="number"]:focus,
body.dark-mode .setting-item input[type="url"]:focus,
body.dark-mode .form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

body.dark-mode .user-status {
    background: #3a3a3a;
    border-color: #555;
}

body.dark-mode .user-status span {
    color: #c0c0c0;
}

body.dark-mode .settings-toggle-btn {
    /* background: #4a4a4a; */
    color: #e0e0e0;
}

body.dark-mode .settings-toggle-btn:hover {
    background-color: #555;
}

body.dark-mode .error-message {
    background-color: #5d2e2e;
    color: #ef5350;
    border-color: #722e2e;
}

/* 暗色主题数据同步按钮 */
body.dark-mode .sync-controls {
    background: #3a3a3a;
    border-color: #555;
}

body.dark-mode .sync-desc {
    color: #b0b0b0;
}

body.dark-mode .upload-btn {
    background: linear-gradient(135deg, #1e7e34, #17a2b8);
}

body.dark-mode .upload-btn:hover {
    background: linear-gradient(135deg, #1c7430, #138496);
}

body.dark-mode .download-btn {
    background: linear-gradient(135deg, #0056b3, #6f42c1);
}

body.dark-mode .download-btn:hover {
    background: linear-gradient(135deg, #004494, #59359a);
}

body.dark-mode .sync-btn:disabled {
    background: #4a4a4a;
}

body.dark-mode .setting-item small {
    color: #888;
}


@media (prefers-color-scheme: dark) {
    .chart-refresh-btn {
        background: #45484a;
    }

    .index-section {
                background: linear-gradient(38deg, #323232 0%, #681a02 100%); 
    }

    .chart-header {
        background: #2c3640;
        border-bottom: 1px solid #545454;

    }

    .index-item {
        background: rgb(74 74 74 / 95%);
    }

    .index-name {
        color: #bebebe;
    }

    .index-price {
        color: #bdb9b8;
    }

    .index-volume {
        color: #8c8a8a;
    }

    .chart-header h3 {
        color: #868686;
    }

    .chart-section {
        border: 1px solid #5c5c5c;
        background: #383838;
    }

    .bar-item {
        background: #222930;
    }

    .bar-item:hover {
        background: #1f2134;
    }

    .bar-wrapper {
        background: #626262;
    }

    .bar-label {
        color: #5e6f80;
    }

    .log-section {
        border-color: #4a4a4a;
        background: #2a2a2a;
    }

    .log-header {
        background: #3a3a3a;
        border-bottom-color: #4a4a4a;
    }

    .log-header:hover {
        background: #404040;
    }

    .log-title {
        color: #e0e0e0;
    }

    .log-toggle {
        color: #b0b0b0;
    }

    .log-controls {
        background: #3a3a3a;
        border-bottom-color: #4a4a4a;
    }

    .log-btn {
        background: #2a2a2a;
        border-color: #4a4a4a;
        color: #e0e0e0;
    }

    .log-btn:hover {
        background: #404040;
        border-color: #6a6a6a;
    }

    .log-output {
        background: #2a2a2a;
        color: #e0e0e0;
    }

    .log-entry.info {
        background: #1e3a5f;
        color: #90caf9;
    }

    .log-entry.success {
        background: #2e5d2e;
        color: #a5d6a7;
    }

    .log-entry.warning {
        background: #5d4e2e;
        color: #ffcc02;
    }

    .log-entry.error {
        background: #5d2e2e;
        color: #ef5350;
    }

    .log-timestamp {
        color: #6c757d;
    }

    .user-status,
    .sync-controls {
        background: #3e3e3e;
        border: 1px solid #686868;
    }

    .user-status span,
    .sync-controls span {
        color: #adb3ba;
    }

    .settings-section {
        border-bottom: 1px solid #4a4a4a;
    }

    .setting-item input {
        background: #505050;
        border: 1px solid #837777 !important;
        color: #c7c7c7;
    }

    .settings-section h4,
    .setting-item label {
        color: #929292;
    }

    .upload-btn {
        background: linear-gradient(56deg, #004c0f, #bc6409);
        color: #b8b6b6;
    }

    .download-btn {
        background: linear-gradient(135deg, #073c74, #8d7fa4);
        color: #a69b9b;
    }
}