/* UI/UX Pro Max - 增强版样式 */
:root {
    --primary-color: #1a73e8;
    --primary-hover: #1557b0;
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #e8eaed;
    --transition-normal: 0.25s ease;
}
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b8bcd4;
    --border-color: #2d3a5a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    transition: background var(--transition-normal), color var(--transition-normal);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.animate-fade-in { animation: fadeIn var(--transition-normal) ease; }
.animate-fade-in-up { animation: fadeInUp var(--transition-normal) ease; }
.animate-slide-in-right { animation: slideInRight var(--transition-normal) ease; }
.animate-scale-in { animation: scaleIn var(--transition-normal) ease; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 200px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}
.sidebar .brand {
    padding: 20px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0fe 0%, var(--bg-secondary) 100%);
}
.sidebar .brand i { margin-right: 10px; font-size: 22px; animation: float 3s ease-in-out infinite; }
.sidebar .menu { padding: 12px 0; }
.sidebar .menu-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.15s ease;
    margin: 4px 8px;
    border-radius: 8px;
}
.sidebar .menu-item:hover {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
    transform: translateX(4px);
}
.sidebar .menu-item.active {
    background: #e8f0fe;
    color: var(--primary-color);
    font-weight: 500;
}
.sidebar .menu-item i { margin-right: 12px; width: 20px; text-align: center; font-size: 16px; }
.main-content { margin-left: 200px; min-height: 100vh; transition: margin-left var(--transition-normal); }
.header {
    background: var(--bg-secondary);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.header h4 i { color: var(--primary-color); animation: float 3s ease-in-out infinite; }
.card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    animation: fadeInUp var(--transition-normal) ease;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card h3 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.card h3 i { color: var(--primary-color); }
.alert {
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 13px;
    animation: fadeInUp var(--transition-normal) ease;
}
.alert i { margin-right: 10px; font-size: 16px; }
.alert-success { background: linear-gradient(135deg, #e6f4ea 0%, #d4edda 100%); color: #155724; border-color: #c3e6cb; }
.alert-danger { background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); color: #721c24; border-color: #f5c6cb; }
.alert-warning { background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%); color: #856404; border-color: #ffeeba; }
.alert-info { background: linear-gradient(135deg, #e8f0fe 0%, #d4e5ff 100%); color: var(--primary-hover); border-color: var(--primary-color); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    animation: fadeInUp var(--transition-normal) ease;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #34a853);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e5ff 100%);
    color: var(--primary-color);
    transition: all var(--transition-normal);
}
.stat-card:hover .icon { transform: scale(1.1) rotate(5deg); box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3); }
.stat-card h4 { color: var(--text-secondary); font-size: 12px; margin-bottom: 6px; font-weight: 500; }
.stat-card .number { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.stat-card .progress { height: 6px; background: rgba(0,0,0,0.1); border-radius: 3px; overflow: hidden; }
.stat-card .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #34a853);
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
}
.stat-card .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}
.table {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: fadeInUp var(--transition-normal) ease;
}
.table thead th {
    background: rgba(0,0,0,0.05);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.15s ease;
}
.table tbody tr:hover { background: rgba(26, 115, 232, 0.05); transform: scale(1.01); }
.table td { padding: 14px 18px; vertical-align: middle; color: var(--text-primary); font-size: 13px; }
.btn {
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4); }
.btn-danger {
    background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(234, 67, 53, 0.3);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4); }
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 12px 14px;
    font-size: 14px;
    transition: all 0.15s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-success { background: linear-gradient(135deg, #e6f4ea 0%, #d4edda 100%); color: #155724; }
.badge-danger { background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); color: #721c24; }
.badge-warning { background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%); color: #856404; }
.badge-info { background: linear-gradient(135deg, #e8f0fe 0%, #d4e5ff 100%); color: var(--primary-hover); }
.toolbar {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-radius: 12px 12px 0 0;
}
.toolbar-btn {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.toolbar-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.1);
    transform: translateY(-1px);
}
.toolbar-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.toolbar-btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: white; }
.toolbar-btn.danger { border-color: #ea4335; color: #ea4335; }
.toolbar-btn.danger:hover { background: #ea4335; color: white; }
.toolbar-divider { width: 1px; height: 28px; background: var(--border-color); margin: 0 6px; }
.breadcrumb-nav {
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.breadcrumb-item {
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 4px 8px;
    border-radius: 4px;
}
.breadcrumb-item:hover { color: var(--primary-color); background: rgba(26, 115, 232, 0.1); }
.breadcrumb-separator { color: var(--text-muted); }
.breadcrumb-current { color: var(--primary-color); font-weight: 500; }
.nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    background: var(--bg-secondary);
}
.nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.1);
    transform: scale(1.05);
}
.file-list { min-height: 400px; }
.file-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.file-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.15s ease;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}
.file-item:hover {
    background: rgba(26, 115, 232, 0.05);
    transform: translateX(4px);
}
.file-item.selected {
    background: rgba(26, 115, 232, 0.1);
    border-left: 3px solid var(--primary-color);
    padding-left: 17px;
}
.file-checkbox { width: 20px; margin-right: 14px; }
.file-checkbox input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary-color); }
.file-icon { width: 40px; font-size: 24px; margin-right: 14px; text-align: center; color: var(--primary-color); }
.file-name { flex: 1; min-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name a { color: var(--text-primary); text-decoration: none; transition: color 0.15s; }
.file-name a:hover { color: var(--primary-color); }
.file-perm { width: 90px; color: var(--text-muted); font-size: 11px; text-align: center; font-family: monospace; }
.file-owner { width: 90px; color: var(--text-muted); font-size: 11px; text-align: center; }
.file-size { width: 110px; text-align: right; color: var(--text-secondary); font-size: 12px; font-weight: 500; }
.file-time { width: 160px; text-align: center; color: var(--text-muted); font-size: 12px; }
.file-actions { width: 120px; text-align: right; opacity: 0; transition: opacity 0.15s; }
.file-item:hover .file-actions { opacity: 1; }
.file-action-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    margin-left: 4px;
    transition: all 0.15s ease;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.file-action-icon:hover {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.file-action-icon.delete:hover {
    background: #fce8e6;
    color: #ea4335;
    border-color: #ea4335;
}
.selected-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
    animation: pulse 2s infinite;
}
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
    animation: scaleIn 0.25s ease;
}
.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    padding: 18px 24px;
}
.modal-header .modal-title { font-weight: 600; font-size: 16px; }
.modal-header .close { color: white; opacity: 0.8; transition: opacity 0.15s; }
.modal-header .close:hover { opacity: 1; }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid var(--border-color); padding: 16px 24px; }
.notify {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    max-width: 360px;
    animation: slideInRight 0.25s ease;
}
.notify.success {
    background: linear-gradient(135deg, #e6f4ea 0%, #d4edda 100%);
    color: #155724;
    border-left: 4px solid #34a853;
}
.notify.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #ea4335;
}
.notify.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border-left: 4px solid #fbbc04;
}
.notify.info {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e5ff 100%);
    color: var(--primary-hover);
    border-left: 4px solid var(--primary-color);
}
.notify i { font-size: 18px; }
.context-menu {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 8px 0;
    z-index: 9999;
    min-width: 180px;
    animation: scaleIn 0.15s ease;
}
.context-menu-item {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 2px 6px;
    border-radius: 4px;
}
.context-menu-item:hover {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
    transform: translateX(4px);
}
.context-menu-item.text-danger:hover { background: #fce8e6; color: #ea4335; }
.context-menu-item i { font-size: 14px; width: 18px; text-align: center; }
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.15s ease;
}
.progress-box {
    background: var(--bg-secondary);
    padding: 32px 48px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    text-align: center;
    animation: scaleIn 0.25s ease;
}
.progress-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}
.progress-text { color: var(--text-secondary); font-size: 14px; margin-top: 12px; }
.empty-state { padding: 60px 24px; text-align: center; color: var(--text-muted); }
.empty-state i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}
.empty-state h3 { color: var(--text-secondary); font-size: 16px; margin-bottom: 8px; }
.empty-state p { font-size: 13px; margin-bottom: 20px; }
.loading-state { padding: 60px 24px; text-align: center; }
.loading-state i { font-size: 40px; color: var(--primary-color); animation: spin 1s linear infinite; }
.loading-state p { margin-top: 16px; color: var(--text-muted); font-size: 13px; }
.chmod-panel { background: rgba(0,0,0,0.05); border-radius: 8px; padding: 20px; }
.chmod-table { width: 100%; border-collapse: collapse; background: var(--bg-secondary); border-radius: 8px; overflow: hidden; }
.chmod-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 14px;
    font-weight: 600;
    font-size: 12px;
}
.chmod-table td { padding: 14px; border-bottom: 1px solid var(--border-color); text-align: center; }
.chmod-table tr:hover { background: rgba(0,0,0,0.05); }
.chmod-octal {
    width: 90px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    font-family: monospace;
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    background: var(--bg-secondary);
}
.chmod-presets { display: flex; gap: 10px; margin-top: 18px; }
.chmod-presets button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}
.chmod-presets button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
}
.upload-area {
    border: 2px dashed var(--border-color);
    padding: 48px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(0,0,0,0.03);
}
.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(26, 115, 232, 0.05);
    transform: scale(1.02);
}
.upload-area i { font-size: 56px; color: var(--primary-color); margin-bottom: 16px; animation: float 3s ease-in-out infinite; }
.upload-area p { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
@media (max-width: 1400px) { .file-owner { display: none; } }
@media (max-width: 1200px) { .file-perm { display: none; } .file-size { width: 90px; } }
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
}
@media (max-width: 768px) {
    .header { padding: 12px 16px; }
    .content-area { padding: 16px; }
    .card { padding: 16px; }
    .file-header { display: none; }
    .file-perm, .file-owner, .file-time { display: none; }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::selection { background: rgba(26, 115, 232, 0.3); color: var(--primary-hover); }
.search-highlight { background: #fff3cd; color: #856404; padding: 1px 3px; border-radius: 2px; }
.file-icon.folder { color: #fbbc04; }
.file-icon.image { color: #34a853; }
.file-icon.video { color: #ea4335; }
.file-icon.audio { color: #9c27b0; }
.file-icon.document { color: #2196f3; }
.file-icon.archive { color: #ff9800; }
.file-icon.code { color: #607d8b; }
.file-icon.text { color: #795548; }
.sidebar-toggle {
    position: fixed;
    top: 14px;
    left: 210px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all var(--transition-normal);
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}
.sidebar-toggle:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}
.sidebar-toggle:active { transform: scale(0.95); }
.theme-toggle {
    position: fixed;
    top: 14px;
    left: 250px;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all var(--transition-normal);
    color: var(--text-secondary);
    font-size: 14px;
}
.theme-toggle:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
[data-theme="dark"] .theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon { display: inline; }
.theme-toggle .fa-moon { display: none; }
.search-box { position: relative; }
.search-box input { padding-left: 36px !important; }
.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
/* CodeMirror Editor Styles */
.CodeMirror {
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Fira Code', Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
}
.CodeMirror-gutters {
    background: #f5f5f5;
    border-right: 1px solid #ddd;
}
.CodeMirror-linenumber {
    color: #999;
}
.cm-s-default .cm-string { color: #a11; }
.cm-s-default .cm-number { color: #164; }
.cm-s-default .cm-keyword { color: #219; }
.cm-s-default .cm-comment { color: #a50; }
.cm-s-default .cm-variable { color: #000; }
.cm-s-default .cm-def { color: #0000ff; }
.cm-s-default .cm-property { color: #000; }
[data-theme="dark"] .CodeMirror {
    background: #1e1e1e;
    color: #d4d4d4;
    border-color: #3d3d3d;
}
[data-theme="dark"] .CodeMirror-gutters {
    background: #2d2d2d;
    border-right-color: #3d3d3d;
}
[data-theme="dark"] .CodeMirror-linenumber {
    color: #666;
}
