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

:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --bg-color: #f5f7fa;
    --surface-color: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==================== 页面切换 ==================== */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* ==================== 加载屏幕 ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-screen.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==================== 认证页面 ==================== */
.auth-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 40px;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    margin-right: 6px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ==================== 按钮 ==================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    padding: 8px;
    background: transparent;
    color: var(--text-secondary);
}

.btn-icon:hover:not(:disabled) {
    background: var(--bg-color);
    color: var(--primary-color);
}

.btn-icon.active {
    background: var(--primary-color);
    color: white;
}

/* ==================== 主应用布局 ==================== */
.header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-size: 20px;
    color: var(--primary-color);
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-email {
    color: var(--text-secondary);
    font-size: 14px;
}

.main-container {
    display: flex;
    height: calc(100vh - 65px);
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    width: 260px;
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 14px;
}

.sidebar-item:hover {
    background: var(--bg-color);
}

.sidebar-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.directory-tree {
    margin-bottom: 12px;
}

/* ==================== 主内容区 ==================== */
.content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb-container {
    padding: 12px 24px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.breadcrumb-item {
    padding: 6px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.breadcrumb-item:hover:not(.active) {
    background: var(--bg-color);
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
    cursor: default;
}

.breadcrumb-separator {
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    align-items: center;
}

.breadcrumb-separator i {
    font-size: 10px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 12px;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-color);
    padding: 4px;
    border-radius: var(--radius);
}

/* ==================== 文件列表 ==================== */
.file-list-container {
    min-height: 400px;
}

.file-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

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

.file-item {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.file-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.file-item.selected {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.file-item-grid {
    text-align: center;
}

.file-item-grid .file-icon {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.file-item-grid .file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    word-break: break-word;
}

.file-item-grid .file-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.file-item-list {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
}

.file-item-list .file-icon {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.file-item-list .file-info {
    flex: 1;
}

.file-item-list .file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.file-item-list .file-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.file-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.file-item:hover .file-actions {
    opacity: 1;
}

.file-actions button {
    padding: 6px 12px;
    font-size: 12px;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* ==================== 提示信息 ==================== */
.alert-container {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s;
}

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

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

.alert i {
    font-size: 18px;
}

/* ==================== 上传进度 ==================== */
.upload-progress-container {
    margin-top: 24px;
}

.upload-item {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.upload-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.upload-item-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.upload-item-status {
    font-size: 12px;
    color: var(--text-secondary);
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.3s;
}

.upload-item-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== 模态框 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s;
}

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

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

.modal-header h2 {
    font-size: 20px;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.modal-close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==================== 拖拽上传 ==================== */
.drag-over {
    border: 2px dashed var(--primary-color) !important;
    background: rgba(102, 126, 234, 0.05) !important;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .file-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .header-center {
        display: none;
    }
}

@media (max-width: 480px) {
    .sidebar {
        display: none;
    }

    .auth-container {
        margin: 40px 20px;
        padding: 24px;
    }
}

/* ==================== 分享相关样式 ==================== */
.share-modal {
    max-width: 500px;
    width: 90%;
}

.share-file-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.share-file-info i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 12px;
}

.share-file-info .file-name {
    font-weight: 600;
    color: var(--text-primary);
}

.share-success-modal {
    max-width: 600px;
    width: 90%;
}

.share-url-group,
.share-password-group,
.share-expires-group,
.share-downloads-group {
    margin-bottom: 20px;
}

.share-url-group label,
.share-password-group label,
.share-expires-group label,
.share-downloads-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
}

.input-group button {
    white-space: nowrap;
}

.shares-list-modal {
    max-width: 800px;
    width: 95%;
    max-height: 80vh;
}

.shares-list-modal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.shares-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.share-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--surface-color);
    transition: all 0.2s ease;
}

.share-item:hover {
    box-shadow: var(--shadow-md);
}

.share-item.inactive {
    opacity: 0.6;
    background: #f8f9fa;
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.share-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-status {
    display: flex;
    gap: 6px;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.share-description {
    margin: 0 0 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.share-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.share-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.share-url {
    margin-bottom: 12px;
}

.share-url .input-group input {
    font-family: monospace;
    font-size: 12px;
    background: var(--bg-color);
}

.share-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.text-success {
    color: var(--success-color) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
    font-size: 13px;
}

/* 分享按钮样式 */
.btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}

/* ==================== 帮助和指南样式 ==================== */
.help-modal {
    max-width: 600px;
    width: 90%;
}

.help-content {
    margin-bottom: 20px;
}

.help-step {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.step-content p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.step-content li {
    margin: 5px 0;
    color: var(--text-secondary);
}

.button-example {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    align-items: center;
}

.btn-demo {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-demo.primary {
    background: var(--primary-color);
    color: white;
}

.btn-demo.secondary {
    background: #6c757d;
    color: white;
}

.btn-demo.danger {
    background: var(--danger-color);
    color: white;
}

.btn-demo.highlight {
    box-shadow: 0 0 0 2px var(--warning-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 2px var(--warning-color); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.3); }
    100% { box-shadow: 0 0 0 2px var(--warning-color); }
}

.help-tips {
    background: var(--bg-color);
    padding: 15px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.help-tips h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-tips ul {
    margin: 0;
    padding-left: 20px;
}

.help-tips li {
    margin: 5px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.help-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 欢迎模态框样式 */
.welcome-modal {
    max-width: 500px;
    width: 90%;
}

.welcome-content {
    text-align: center;
    padding: 20px 0;
}

.welcome-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-content h4 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 20px;
}

.welcome-content p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-highlights {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature i {
    font-size: 24px;
    color: var(--primary-color);
}

.feature span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.welcome-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* ==================== 版本管理 ==================== */
.versions-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 10px;
    transition: all 0.3s;
}

.version-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.version-item.current {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.version-info {
    flex: 1;
}

.version-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.version-number {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
}

.version-details .version-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.version-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.version-actions {
    display: flex;
    gap: 10px;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

/* ==================== 同步状态 ==================== */
.sync-info {
    margin-bottom: 20px;
}

.sync-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.sync-label {
    font-weight: 500;
    color: var(--text-primary);
}

.sync-value {
    color: var(--text-secondary);
}

.sync-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

