'), var(--bg-color); } .main-content { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; overflow-y: auto; } @media (max-width: 1024px) {.glass-pane{width: 90vw;}} @media (min-width: 1024px) { .main-content { grid-template-columns: minmax(380px, 420px) 1fr; overflow: hidden; } } .main-content::-webkit-scrollbar { display: none; } .main-content { -ms-overflow-style: none; scrollbar-width: none; } .glass-pane { background: var(--glass-bg); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: 0 8px 32px 0 var(--shadow-color); padding: clamp(1.2rem, 3vw, 2rem); transition: all 0.3s ease; display: flex; flex-direction: column; } .app-header { display: flex; justify-content: space-between; align-items: center; } .app-title { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; } .theme-toggle { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 50px; cursor: pointer; padding: 0.5rem; position: relative; width: 56px; height: 32px; transition: all 0.3s ease; } .theme-toggle i { position: absolute; top: 50%; transform: translateY(-50%); font-size: 0.9rem; color: var(--text-secondary); transition: opacity 0.3s ease; } .theme-toggle .fa-sun { left: 8px; } .theme-toggle .fa-moon { right: 8px; } [data-theme="dark"] .theme-toggle .fa-sun { opacity: 0; } [data-theme="light"] .theme-toggle .fa-moon { opacity: 0; } /* Controls Pane */ .controls-container { gap: 1rem; } .control-group { display: flex; flex-direction: column; gap: 0.5rem; } .control-group label { font-size: clamp(0.85rem, 2vw, 0.9rem); font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 0.75em; } .control-group label .fa-solid { color: var(--accent-primary); width: 14px; text-align: center; } .input-wrapper { position: relative; } .input-prefix { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; } .custom-input, .custom-select { width: 100%; padding: 0.75rem 1rem; background: var(--input-bg); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-primary); font-family: var(--font-primary); font-size: 0.9rem; font-weight: 500; transition: border-color 0.2s ease, box-shadow 0.2s ease; } .custom-input { padding-left: 2.2rem; -moz-appearance: textfield; } .custom-input.no-prefix { padding-left: 1rem; } .custom-input:focus, .custom-select:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-primary) 25%, transparent); } .custom-select { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a0a0b4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1em; } .toggle-group { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; } .switch { position: relative; display: inline-block; width: 44px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--input-bg); transition: .4s; border-radius: 24px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: var(--text-secondary); transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: var(--accent-primary); } input:checked + .slider:before { transform: translateX(20px); background-color: white; } #periodic-contributions-group { display: grid; gap: 1rem; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out, opacity 0.3s ease-out, margin-top 0.5s ease-out; opacity: 0; } #periodic-contributions-group.visible { max-height: 200px; opacity: 1; margin-top: 1rem; } /* Results Pane */ .results-container { gap: 1.5rem; } .metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem 1rem; } .metric-item { text-align: center; animation: result-pop-in 0.5s ease-out forwards; animation-delay: calc(var(--i, 0) * 50ms); } .metric-item.hero { grid-column: 1 / -1; } .metric-label { font-size: clamp(0.8rem, 2vw, 0.9rem); color: var(--text-secondary); display: block; margin-bottom: 0.25rem; } .metric-value { font-weight: 700; line-height: 1.1; } .hero .metric-value { font-size: clamp(2.5rem, 7vw, 4rem); color: var(--accent-primary); } .standard .metric-value { font-size: clamp(1.1rem, 3vw, 1.4rem); color: var(--text-primary); } .profit .metric-value { color: var(--accent-profit); } .chart-container { flex-grow: 1; min-height: 250px; position: relative; } @keyframes result-pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } .animate-update { animation: none; } .animate-update.visible { animation: result-pop-in 0.5s ease-out forwards; }