'), var(--bg-color); } .main-content { display: grid; gap: clamp(1rem, 3vw, 1.5rem); grid-template-columns: 1fr; overflow-y: auto; } @media (min-width: 900px) { .main-content { grid-template-columns: 420px 1fr; } } @media (max-height: 600px) and (min-width: 900px) { .main-content { overflow-y: visible; /* Prevent scroll on wide, short screens */ } } /* Hide scrollbar */ .main-content::-webkit-scrollbar { display: none; } .main-content { -ms-overflow-style: none; scrollbar-width: none; } /* --- Glass Pane Component --- */ .glass-pane { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: 0 8px 32px 0 var(--shadow-color); padding: clamp(1.5rem, 4vw, 2rem); transition: all 0.3s ease; display: flex; flex-direction: column; gap: 1.5rem; } /* --- Header --- */ .app-header { display: flex; justify-content: space-between; align-items: center; } .app-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; } /* --- Theme Toggle --- */ .theme-toggle { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 50px; cursor: pointer; padding: 0.5rem; position: relative; width: 60px; height: 34px; transition: all 0.3s ease; } .theme-toggle i { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1rem; color: var(--text-secondary); transition: opacity 0.3s ease, transform 0.3s ease; } .theme-toggle .fa-sun { left: 8px; } .theme-toggle .fa-moon { right: 8px; } [data-theme="dark"] .theme-toggle .fa-sun { opacity: 0; transform: translateY(-50%) rotate(-90deg); } [data-theme="light"] .theme-toggle .fa-moon { opacity: 0; transform: translateY(-50%) rotate(90deg); } /* --- Controls Pane --- */ .control-group { display: flex; flex-direction: column; gap: 0.5rem; } .control-group label { font-size: clamp(0.9rem, 2vw, 1rem); font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 0.75em; } .control-group label .fa-solid { color: var(--accent-primary); } .input-wrapper { position: relative; } .input-prefix { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-secondary); font-weight: 600; } .custom-input { width: 100%; padding: 0.85rem 1rem 0.85rem 2.5rem; /* Left padding for prefix */ background: var(--input-bg); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-primary); font-family: var(--font-primary); font-size: 1rem; font-weight: 500; transition: border-color 0.2s ease, box-shadow 0.2s ease; -webkit-appearance: none; -moz-appearance: textfield; } .custom-input[type="number"]::-webkit-inner-spin-button, .custom-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } .custom-input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-primary) 25%, transparent); } .custom-input.quantity-input { padding-left: 1rem; } /* --- Results Pane --- */ .results-container { justify-content: center; gap: 2rem; } .net-profit-container { text-align: center; animation: result-pop-in 0.5s ease-out forwards; transition: color 0.3s ease; } .net-profit-label { font-size: clamp(1rem, 2.5vw, 1.1rem); font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5em; } .net-profit-value { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 700; line-height: 1.1; } .net-profit-container.profit { color: var(--color-profit); } .net-profit-container.loss { color: var(--color-loss); } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1.5rem; } .stat-item { text-align: center; animation: result-pop-in 0.5s ease-out forwards; animation-delay: calc(var(--i, 0) * 50ms); } .stat-label { font-size: clamp(0.8rem, 2vw, 0.9rem); color: var(--text-secondary); display: block; margin-bottom: 0.25rem; } .stat-value { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; color: var(--text-primary); } @keyframes result-pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } .animate-update { animation: result-pop-in 0.5s ease-out forwards; }