.flexbox-playground{max-width:var(--tool-container-max-width, 1600px);margin:0 auto;padding:2rem}.flexbox-playground h1{text-align:center;margin-bottom:.5rem;color:#1a1a2e}.flexbox-playground .tool-description{text-align:center;color:#666;margin-bottom:2rem}.playground-layout{display:grid;grid-template-columns:350px 1fr;gap:var(--tool-content-gap, 2rem);margin-bottom:2rem}.controls-panel{display:flex;flex-direction:column;gap:1.5rem;max-height:none;overflow-y:auto}.panel-section{background:#f8f9fa;border-radius:12px;padding:1.5rem}.panel-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}.panel-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.control-group{margin-bottom:1rem}.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}.button-group{display:flex;gap:.25rem;flex-wrap:wrap}.button-group.wrap{flex-wrap:wrap}.button-group button{flex:1;min-width:fit-content;padding:.5rem;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer;font-size:.7rem;transition:all .2s;white-space:nowrap}.button-group button:hover{border-color:#673ab7;background:#f5f0ff}.button-group button.active{background:#673ab7;border-color:#673ab7;color:#fff}.control-group input[type=range]{width:100%}.control-group input[type=text],.control-group select{width:100%;padding:.5rem;border:1px solid #ddd;border-radius:6px;font-size:.875rem}.presets-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}.preset-btn{padding:.5rem;font-size:.75rem;border:1px solid #ddd;background:#fff;border-radius:6px;cursor:pointer;transition:all .2s;text-transform:capitalize}.preset-btn:hover{background:#673ab7;border-color:#673ab7;color:#fff}.preview-panel{display:flex;flex-direction:column;gap:1rem}.preview-header{display:flex;justify-content:space-between;align-items:center}.preview-header h3{margin:0;font-size:1.1rem;color:#333}.preview-actions{display:flex;align-items:center;gap:1rem}.preview-actions button{padding:.5rem 1rem;background:#673ab7;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.875rem}.preview-actions button:hover{background:#5e35b1}.item-count{font-size:.875rem;color:#666}.preview-container{background:#f9fafb;border:2px solid #d1d5db;border-radius:12px;min-height:300px;position:relative;transition:all .3s}.preview-item{min-width:60px;min-height:60px;padding:1rem;background:#f9fafb;border:2px solid #d1d5db;border-radius:8px;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;transition:all .2s;color:#fff;font-weight:600;box-shadow:0 2px 8px #0003;box-shadow:0 1px 3px #0000001a}.preview-item:hover{transform:scale(1.02)}.preview-item.selected{outline:3px solid #333;outline-offset:2px}.item-text{font-size:1.2rem}.remove-item{position:absolute;top:-8px;right:-8px;width:22px;height:22px;background:#f44336;color:#fff;border:2px solid white;border-radius:50%;cursor:pointer;font-size:1rem;line-height:1;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s}.preview-item:hover .remove-item{opacity:1}.remove-item:hover{background:#d32f2f}.item-legend{text-align:center;font-size:.875rem;color:#666;padding:.5rem;background:#f8f9fa;border-radius:8px}.output-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;margin-bottom:2rem}.output-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.output-header h3{margin:0;font-size:1.1rem;color:#333}.output-actions{display:flex;gap:.5rem}.output-actions button{padding:.5rem 1rem;background:#673ab7;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.875rem}.output-actions button:hover{background:#5e35b1}.output-actions button:last-child{background:#4caf50}.output-actions button:last-child:hover{background:#43a047}.output-section pre{background:#1a1a2e;color:#e0e0e0;padding:1rem;border-radius:8px;overflow-x:auto;font-size:.875rem;line-height:1.6;margin:0;max-height:300px}.saved-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;margin-bottom:2rem}.saved-section h3{margin:0 0 1rem;font-size:1.1rem;color:#333}.saved-list{display:flex;flex-direction:column;gap:.5rem}.saved-item{display:flex;align-items:center;gap:1rem;padding:.75rem;background:#f8f9fa;border-radius:8px}.saved-name{flex:1;font-weight:500}.saved-info{font-size:.75rem;color:#666;background:#e0e0e0;padding:.25rem .5rem;border-radius:4px}.saved-item button{padding:.4rem .8rem;background:#673ab7;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.8rem}.saved-item button:hover{background:#5e35b1}.saved-item .delete-btn{background:#f44336}.saved-item .delete-btn:hover{background:#d32f2f}.tips-section{background:linear-gradient(135deg,#ede7f6,#e8eaf6);border-radius:12px;padding:1.5rem}.tips-section>h3{margin:0 0 1.5rem;color:#333;text-align:center}.tips-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}.tip-card{background:#fff;border-radius:8px;padding:1rem;box-shadow:0 2px 4px #0000001a}.tip-card h4{margin:0 0 .75rem;color:#673ab7;font-size:1rem}.tip-card ul{margin:0;padding-left:1.25rem;font-size:.8rem}.tip-card li{margin-bottom:.4rem;color:#555;line-height:1.4}.tip-card li strong{color:#333}.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: 1000px){.playground-layout{grid-template-columns:1fr}.controls-panel{max-height:none}.tips-grid{grid-template-columns:1fr}}@media (max-width: 600px){.flexbox-playground{padding:1rem}.preview-header,.output-header{flex-direction:column;gap:1rem;align-items:flex-start}.output-actions{width:100%}.output-actions button{flex:1}.button-group button{flex:1 1 auto;min-width:calc(50% - .25rem)}.presets-grid{grid-template-columns:1fr}.saved-item{flex-wrap:wrap}}
