@import "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap";
.backtester-theme{--bg-primary:#fff;--bg-secondary:#f8f8f8;--bg-tertiary:#f2f2f2;--bg-card:#fff;--bg-card-hover:#fcfcfc;--bg-glass:#fffc;--bg-glass-strong:#f0f0f0e6;--border-primary:#eee;--border-secondary:#e0e0e0;--border-accent:#ffd43a;--text-primary:#000;--text-secondary:#4a4a4a;--text-tertiary:#888;--text-accent:#683d16;--accent-primary:#ffd43a;--accent-primary-hover:#e5be34;--accent-secondary:#683d16;--accent-gradient:linear-gradient(135deg, #ffd43a 0%, #e5be34 100%);--accent-glow:0 0 20px #ffd43a1a;--green:#27ae60;--green-bg:#27ae601a;--green-border:#27ae6033;--red:#e74c3c;--red-bg:#e74c3c1a;--red-border:#e74c3c33;--yellow:#f1c40f;--blue:#2980b9;--orange:#e67e22;--purple:#8e44ad;--font-sans:"Montserrat", sans-serif;--font-mono:"JetBrains Mono", monospace;--shadow-sm:0 1px 3px #0000000d;--shadow-md:0 4px 12px #00000014;--shadow-lg:0 8px 24px #0000001f;--shadow-glow:0 0 30px #ffd43a1a;--sidebar-width:260px;--sidebar-collapsed:68px;--transition-fast:.15s ease;--transition-normal:.25s ease;--transition-smooth:.4s cubic-bezier(.16, 1, .3, 1)}.backtester-theme *,.backtester-theme :before,.backtester-theme :after{box-sizing:border-box}.backtester-theme{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:var(--font-sans);background:var(--bg-primary);color:var(--text-primary);z-index:1;min-height:100vh;line-height:1.6;position:relative}.backtester-theme ::-webkit-scrollbar{width:8px;height:8px}.backtester-theme ::-webkit-scrollbar-track{background:var(--bg-secondary)}.backtester-theme ::-webkit-scrollbar-thumb{background:var(--border-secondary);border-radius:10px}.backtester-theme ::-webkit-scrollbar-thumb:hover{background:var(--text-tertiary)}.backtester-theme .app-layout{width:100%;min-height:100vh;display:flex;overflow-x:hidden}.backtester-theme .main-content{flex:1;max-width:1200px;margin:0 auto;padding:40px 20px}@media (max-width:1024px){.backtester-theme .main-content{width:100%;margin-left:0;padding:20px 16px}}@media (max-width:768px){.backtester-theme .tax-breakdown{padding:16px}.backtester-theme .tax-bracket-row{flex-direction:column;align-items:flex-start;gap:8px}.backtester-theme .tax-bracket-label{width:100%}.backtester-theme .metrics-grid{grid-template-columns:1fr}.backtester-theme .chart-container{padding:12px;overflow-x:auto}}.backtester-theme .glass-card,.backtester-theme .glass-card-static{background:var(--bg-card);border:1px solid var(--border-primary);transition:all var(--transition-normal);box-shadow:var(--shadow-sm);border-radius:12px}.backtester-theme .glass-card:hover{border-color:var(--accent-primary);box-shadow:var(--shadow-md);transform:translateY(-2px)}.backtester-theme .sidebar{width:var(--sidebar-width);background:var(--bg-secondary);border-right:1px solid var(--border-primary);z-index:100;flex-direction:column;height:100vh;display:flex;position:fixed;top:0;left:0}.backtester-theme .sidebar-header{background:var(--accent-primary);border-bottom:1px solid #0000000d;align-items:center;gap:12px;padding:24px 20px;display:flex}.backtester-theme .sidebar-logo{background:var(--foreground);width:32px;height:32px;color:var(--accent-primary);border-radius:6px;justify-content:center;align-items:center;font-size:1.1rem;font-weight:900;display:flex}.backtester-theme .sidebar-title{color:var(--foreground);font-size:1.1rem;font-weight:900;line-height:1}.backtester-theme .sidebar-subtitle{color:var(--text-accent);text-transform:uppercase;letter-spacing:.05em;margin-top:2px;font-size:.7rem;font-weight:600}.backtester-theme .sidebar-link{color:var(--text-secondary);border-left:4px solid #0000;padding:12px 24px;font-weight:600;transition:all .2s}.backtester-theme .sidebar-link:hover{background:var(--bg-tertiary);color:var(--text-primary)}.backtester-theme .sidebar-link.active{color:var(--text-accent);border-left-color:var(--accent-primary);background:#fffbe6}.backtester-theme .sidebar-section-label{text-transform:uppercase;letter-spacing:.1em;color:var(--text-tertiary);padding:16px 20px 8px;font-size:.65rem;font-weight:800}.backtester-theme .metric-info-trigger{cursor:help;color:var(--text-tertiary);border-radius:50%;justify-content:center;align-items:center;width:18px;height:18px;font-size:13px;transition:all .2s;display:inline-flex}.backtester-theme .metric-info-trigger:hover{background:var(--bg-tertiary);color:var(--text-primary)}.backtester-theme .btn-primary{background:var(--foreground);color:var(--accent-primary);cursor:pointer;text-transform:uppercase;letter-spacing:.1em;border:none;border-radius:8px;padding:12px 32px;font-weight:900;transition:all .2s}.backtester-theme .btn-primary:hover{background:#222;transform:scale(1.02)}.backtester-theme [data-tooltip]{position:relative}.backtester-theme [data-tooltip]:before{content:attr(data-tooltip);background:var(--foreground);color:var(--bg-primary);width:220px;box-shadow:var(--shadow-lg);opacity:0;visibility:hidden;z-index:1000;text-align:left;pointer-events:none;text-transform:none;letter-spacing:normal;border-radius:10px;padding:12px 16px;font-size:.75rem;font-weight:500;line-height:1.5;transition:all .2s;position:absolute;bottom:130%;right:0;transform:translateY(10px)}.backtester-theme [data-tooltip]:after{content:"";border-style:solid;border-width:6px;border-color:var(--foreground) transparent transparent transparent;opacity:0;visibility:hidden;z-index:1000;transition:all .2s;position:absolute;bottom:115%;right:4px}.backtester-theme [data-tooltip]:hover:before,.backtester-theme [data-tooltip]:hover:after{opacity:1;visibility:visible;transform:translateY(0)}.backtester-theme .chart-container{padding:24px}.backtester-theme .chart-tab{background:var(--bg-secondary);border:1px solid var(--border-primary);color:var(--text-secondary);border-radius:6px;margin-right:8px;padding:8px 16px}.backtester-theme .chart-tab.active{background:var(--accent-primary);color:var(--foreground);border-color:var(--accent-primary)}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.backtester-theme .animate-in{animation:.4s forwards fadeIn}.backtester-theme .metrics-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-bottom:32px;display:grid}.backtester-theme .metric-card{z-index:1;flex-direction:column;gap:8px;padding:20px;display:flex;position:relative}.backtester-theme .metric-card:hover{z-index:50}.backtester-theme .metric-label{text-transform:uppercase;color:var(--text-tertiary);letter-spacing:.05em;justify-content:space-between;align-items:center;font-size:.8rem;font-weight:700;display:flex}.backtester-theme .metric-value{color:var(--text-primary);font-size:1.8rem;font-weight:900;font-family:var(--font-mono)}.backtester-theme .metric-sub{color:var(--text-secondary);font-size:.85rem;font-weight:500}.backtester-theme .metric-value.positive{color:var(--green)}.backtester-theme .metric-value.negative{color:var(--red)}.backtester-theme .positive{color:var(--green)}.backtester-theme .negative{color:var(--red)}.backtester-theme .neutral{color:var(--text-primary)}.backtester-theme .skeleton{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%) 0 0/200% 100%;border-radius:4px;animation:1.5s infinite loading}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.backtester-theme .trade-table-container{padding:24px;overflow-x:auto}.backtester-theme .trade-table{border-collapse:collapse;width:100%;margin-top:16px;font-size:.85rem}.backtester-theme .trade-table th{text-align:left;border-bottom:2px solid var(--border-primary);color:var(--text-tertiary);text-transform:uppercase;padding:12px;font-size:.75rem;font-weight:700}.backtester-theme .trade-table td{border-bottom:1px solid var(--border-primary);font-family:var(--font-mono);padding:12px}.backtester-theme .trade-table tr:hover td{background:var(--bg-secondary)}.backtester-theme .trade-type{text-transform:uppercase;border-radius:4px;padding:4px 8px;font-size:.75rem;font-weight:700}.backtester-theme .trade-type.buy{background:var(--green-bg);color:var(--green)}.backtester-theme .trade-type.sell{background:var(--red-bg);color:var(--red)}.backtester-theme .tax-breakdown{margin-top:32px;padding:32px}.backtester-theme .tax-title{margin-bottom:24px;font-size:1.2rem;font-weight:800}.backtester-theme .tax-brackets{flex-direction:column;gap:12px;margin-bottom:32px;display:flex}.backtester-theme .tax-bracket-row{align-items:center;gap:16px;display:flex}.backtester-theme .tax-bracket-label{width:180px;color:var(--text-secondary);font-size:.85rem;font-weight:600}.backtester-theme .tax-bracket-bar{background:var(--bg-tertiary);border-radius:12px;flex:1;height:24px;position:relative;overflow:hidden}.backtester-theme .tax-bracket-fill{color:#fff;border-radius:12px;justify-content:flex-end;align-items:center;height:100%;padding-right:12px;font-size:.75rem;font-weight:700;transition:width .6s ease-out;display:flex}.backtester-theme .tax-bracket-fill.b19{background:#5dade2}.backtester-theme .tax-bracket-fill.b21{background:#3498db}.backtester-theme .tax-bracket-fill.b23{background:#2e86c1}.backtester-theme .tax-bracket-fill.b27{background:#2874a6}.backtester-theme .tax-bracket-fill.b28{background:#21618c}.backtester-theme .tax-summary{border-top:1px solid var(--border-primary);grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:20px;padding-top:24px;display:grid}.backtester-theme .tax-summary-item{flex-direction:column;gap:4px;display:flex}.backtester-theme .tax-summary-label{color:var(--text-tertiary);text-transform:uppercase;font-size:.75rem;font-weight:700}.backtester-theme .tax-summary-value{font-size:1.25rem;font-weight:800;font-family:var(--font-mono)}.backtester-theme .stagger-1{animation-delay:.1s}.backtester-theme .stagger-2{animation-delay:.2s}.backtester-theme .stagger-3{animation-delay:.3s}.backtester-theme .stagger-4{animation-delay:.4s}.backtester-theme .stagger-5{animation-delay:.5s}
