.css-math-functions-generator{padding:2rem;max-width:var(--tool-container-max-width, 1600px);margin:0 auto}.css-math-functions-generator h1{margin-bottom:.5rem;color:var(--gray-200)}.css-math-functions-generator .tool-description{color:var(--gray-400);margin-bottom:1.5rem}.function-tabs{display:flex;gap:.5rem;margin-bottom:2rem;flex-wrap:wrap}.tab-btn{padding:.75rem 1.5rem;background:var(--gray-800);border:2px solid var(--gray-700);border-radius:8px;color:var(--gray-400);font-family:Monaco,Menlo,monospace;font-size:1rem;cursor:pointer;transition:all .2s}.tab-btn:hover{border-color:#60a5fa;color:var(--gray-200)}.tab-btn.active{background:var(--info-color);border-color:var(--info-color);color:var(--white)}.generator-layout{display:grid;grid-template-columns:350px 1fr;gap:var(--tool-content-gap, 2rem);margin-bottom:2rem}.control-panel{background-color:#1f2937f2!important;border:2px solid var(--gray-400)!important;border-radius:6px}[data-theme=dark] .control-section{background-color:#1f2937e6!important;border-color:var(--gray-400)!important;border-width:2px}[data-theme=dark] .control-group input,[data-theme=dark] .control-group select,[data-theme=dark] .control-group textarea{background-color:#0f172acc!important;border:2px solid var(--gray-500)!important;color:var(--text-primary)}[data-theme=dark] .control-group label{display:block;color:var(--gray-900);font-size:1rem;margin-bottom:.5rem;font-weight:600;line-height:1.5;letter-spacing:.3px}@media (max-width: 1023px){.generator-layout{grid-template-columns:1fr}}.controls-panel{display:flex;flex-direction:column;gap:1.5rem}.control-section{background:var(--gray-800);border-radius:8px;padding:1rem}.control-section h3{font-size:1.15rem;font-weight:700;color:var(--gray-900);margin-bottom:1.25rem;padding-bottom:.75rem;border-bottom:2px solid var(--primary);letter-spacing:.03em}.presets-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}.preset-btn{padding:.5rem;background:var(--gray-700);border:1px solid var(--gray-600);border-radius:4px;color:var(--gray-200);cursor:pointer;font-size:.75rem;transition:all .2s}.preset-btn:hover{background:var(--info-color);border-color:var(--info-color)}.value-row{display:flex;gap:.5rem;margin-bottom:.5rem}.value-row input[type=number]{flex:1;padding:.5rem;background:var(--gray-900);border:1px solid var(--gray-600);border-radius:4px;color:var(--gray-200);font-size:1rem}.value-row select{width:80px;padding:.5rem;background:var(--gray-900);border:1px solid var(--gray-600);border-radius:4px;color:var(--gray-200)}.value-row.with-remove{position:relative}.remove-btn{background:var(--danger);border:none;border-radius:4px;color:var(--white);width:32px;cursor:pointer;font-size:1.2rem}.remove-btn:hover{background:#dc2626}.add-value-btn{width:100%;padding:.5rem;background:transparent;border:1px dashed var(--gray-600);border-radius:4px;color:var(--gray-400);cursor:pointer;transition:all .2s}.add-value-btn:hover{border-color:var(--info-color);color:var(--info-color)}.function-toggle{display:flex;gap:.5rem;margin-bottom:.75rem}.toggle-btn{flex:1;padding:.75rem;background:var(--gray-700);border:2px solid var(--gray-600);border-radius:6px;color:var(--gray-400);font-family:Monaco,Menlo,monospace;cursor:pointer;transition:all .2s}.toggle-btn:hover{border-color:#60a5fa}.toggle-btn.active{background:var(--info-color);border-color:var(--info-color);color:var(--white)}.function-desc{color:var(--gray-400);font-size:.85rem;font-style:italic}.expression-input,.expression-textarea{width:100%;padding:.75rem;background:var(--gray-900);border:1px solid var(--gray-600);border-radius:4px;color:var(--gray-200);font-family:Monaco,Menlo,monospace;font-size:.875rem}.expression-textarea{resize:vertical;min-height:80px}.help-text{color:var(--gray-400);font-size:.8rem;margin-top:.5rem}.example-patterns{display:flex;flex-direction:column;gap:.5rem}.example-patterns button{padding:.5rem;background:var(--gray-700);border:1px solid var(--gray-600);border-radius:4px;color:var(--gray-200);cursor:pointer;text-align:left;font-size:.8rem;transition:all .2s}.example-patterns button:hover{background:var(--info-color);border-color:var(--info-color)}.control-section select{width:100%;padding:.5rem;background:var(--gray-900);border:1px solid var(--gray-600);border-radius:4px;color:var(--gray-200);font-size:.875rem}.control-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.save-btn{width:100%;padding:.75rem;background:var(--info-color);border:none;border-radius:6px;color:var(--white);font-weight:600;cursor:pointer;transition:background .2s}.save-btn:hover{background:#2563eb}.saved-configs{margin-top:1rem}.saved-configs h4{color:var(--gray-400);font-size:.8rem;margin-bottom:.5rem}.saved-config-item{display:flex;justify-content:space-between;align-items:center;padding:.5rem;background:var(--gray-700);border-radius:4px;margin-bottom:.25rem}.saved-config-item span{color:var(--gray-200);cursor:pointer}.saved-config-item span:hover{color:#60a5fa}.saved-config-item button{background:none;border:none;color:var(--danger);cursor:pointer;font-size:1.2rem}.preview-panel{display:flex;flex-direction:column;gap:1.5rem}.syntax-card{background:linear-gradient(135deg,#1e3a5f 0%,var(--gray-800) 100%);border-radius:8px;padding:1.25rem;border:1px solid var(--info-color)}.syntax-card h3{color:var(--gray-200);margin-bottom:.75rem}.syntax-display{text-align:center}.syntax-display code{display:block;font-size:1.2rem;color:var(--gray-200);margin-bottom:.5rem;padding:.75rem;background:var(--gray-900);border-radius:6px}.syntax-display .min{color:#f87171}.syntax-display .preferred{color:#4ade80}.syntax-display .max{color:#60a5fa}.syntax-display .value{color:#fbbf24}.syntax-display .expression{color:#fff}.syntax-display p{color:var(--gray-400);font-size:.875rem}.clamp-preview-section{background:#f9fafb;border:2px solid #d1d5db;border-radius:8px;padding:1.25rem;box-shadow:0 1px 3px #0000001a}.clamp-preview-section h3{color:var(--gray-200);margin-bottom:1rem}.clamp-graph{background:var(--gray-900);border-radius:8px;padding:1rem}.graph-area{height:80px;display:flex;align-items:center}.graph-line{width:100%;height:40px;display:flex;border-radius:4px;overflow:hidden}.min-zone{background:linear-gradient(90deg,#f87171,#fb923c);display:flex;align-items:center;justify-content:center;font-size:.7rem;color:var(--white);font-weight:600}.preferred-zone{background:linear-gradient(90deg,#fb923c,#4ade80);display:flex;align-items:center;justify-content:center;font-size:.7rem;color:var(--white);font-weight:600}.max-zone{background:linear-gradient(90deg,#4ade80,#60a5fa);display:flex;align-items:center;justify-content:center;font-size:.7rem;color:var(--white);font-weight:600}.graph-labels{display:flex;justify-content:space-between;margin-top:.5rem;font-size:.75rem;color:var(--gray-400)}.live-preview-section{background:#f9fafb;border:2px solid #d1d5db;border-radius:8px;padding:1.25rem;box-shadow:0 1px 3px #0000001a}.live-preview-section h3{color:var(--gray-200);margin-bottom:1rem}.live-preview-box{background:#f9fafb;border:2px solid #d1d5db;border-radius:8px;padding:2rem;min-height:150px;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 1px 3px #0000001a}.live-preview-box p{color:var(--gray-200);text-align:center;transition:font-size .2s}.preview-element{background:linear-gradient(135deg,var(--info-color) 0%,#8b5cf6 100%);border:2px solid #d1d5db;border-radius:8px;padding:1rem;color:var(--white);font-weight:600;text-align:center;transition:all .2s;min-width:100px;min-height:50px;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #0000001a}.output-section{background:var(--gray-800);border-radius:8px;padding:1.25rem}.output-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.output-header h3{color:var(--gray-200);margin:0}.copy-btn{padding:.5rem 1rem;background:var(--info-color);border:none;border-radius:4px;color:var(--white);cursor:pointer;transition:background .2s}.copy-btn:hover{background:#2563eb}.copy-btn.copied{background:var(--success)}.code-output{background:var(--gray-900);border-radius:6px;padding:1rem;overflow-x:auto;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.85rem;color:var(--gray-200);white-space:pre-wrap;margin:0}.full-output-section{background:var(--gray-800);border-radius:8px;padding:1.5rem;margin-bottom:2rem}.full-output{max-height:500px;overflow-y:auto}.reference-section{background:var(--gray-800);border-radius:8px;padding:1.5rem}.reference-section h2{color:var(--gray-200);margin-bottom:1.5rem}.reference-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.reference-card{background:var(--gray-900);border-radius:8px;padding:1.25rem}.reference-card h3{color:#60a5fa;margin-bottom:.75rem;font-size:1rem;font-family:Monaco,Menlo,monospace}.reference-card p{color:var(--gray-400);margin-bottom:.75rem;font-size:.875rem}.reference-card pre{background:var(--gray-800);padding:.75rem;border-radius:4px;overflow-x:auto;font-size:.75rem;color:var(--gray-200);margin:0}.reference-card ul{list-style:none;padding:0;margin:0}.reference-card li{padding:.4rem 0;color:var(--gray-200);font-size:.85rem;border-bottom:1px solid var(--gray-700)}.reference-card li:last-child{border-bottom:none}.reference-card li strong{color:#60a5fa}.reference-card code{color:#fbbf24;background:var(--gray-800);padding:.125rem .375rem;border-radius:3px;font-size:.8rem}
