.text-justify-generator{max-width:var(--tool-container-max-width, 1600px);margin:0 auto;padding:2rem}.generator-header{text-align:center;margin-bottom:2rem}.generator-header h1{font-size:2.5rem;background:linear-gradient(135deg,var(--success),var(--info-color));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.5rem}.generator-header p{color:var(--gray-400);font-size:1.1rem}.generator-content{display:grid;grid-template-columns:var(--tool-controls-width, 420px) 1fr;gap:var(--tool-content-gap, 2rem);align-items:start}.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-content{grid-template-columns:1fr}}.controls-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}.controls-section{background:var(--gray-800);border-radius:12px;padding:1.5rem;display:flex;flex-direction:column;gap:1.5rem}.controls-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.control-group{display:flex;flex-direction:column;gap:.75rem}.control-group h3{font-size:1rem;color:var(--gray-100);margin:0;display:flex;align-items:center;gap:.5rem}.control-desc{font-size:.8rem;color:var(--gray-400);margin:0}.preset-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}.preset-btn{padding:.5rem .75rem;background:var(--gray-700);border:1px solid var(--gray-600);border-radius:6px;color:var(--gray-300);cursor:pointer;font-size:.8rem;text-align:center;transition:all .2s}.preset-btn:hover{background:var(--gray-600);border-color:var(--gray-500)}.preset-btn.active{background:linear-gradient(135deg,var(--success),var(--info-color));border-color:transparent;color:var(--white)}.control-group select,.control-group input[type=text]{padding:.625rem .875rem;background:var(--gray-700);border:1px solid var(--gray-600);border-radius:6px;color:var(--gray-100);font-size:.875rem}.control-group select:focus,.control-group input[type=text]:focus{outline:none;border-color:var(--success)}.selector-input{margin-top:.5rem}.option-list{display:flex;flex-direction:column;gap:.5rem}.option-item{display:flex;align-items:flex-start;gap:.75rem;padding:.5rem;background:var(--gray-700);border-radius:6px;cursor:pointer;transition:background .2s}.option-item:hover{background:var(--gray-600)}.option-item input[type=radio]{margin-top:.25rem;accent-color:var(--success)}.option-label{display:flex;flex-direction:column;gap:.25rem}.option-label code{color:var(--gray-900);font-size:1rem}.option-desc{font-size:.75rem;color:var(--gray-400)}.checkbox-label{display:flex;align-items:center;gap:.5rem;color:var(--gray-900);cursor:pointer;font-size:1rem}.checkbox-label input[type=checkbox]{accent-color:var(--gray-900)}.inline-controls{display:flex;flex-wrap:wrap;gap:1rem;align-items:center}.inline-controls label{display:flex;align-items:center;gap:.5rem;color:var(--gray-300);font-size:.85rem}.inline-controls input[type=range]{width:100px;accent-color:var(--success)}.inline-controls select{padding:.375rem .625rem;background:var(--gray-700);border:1px solid var(--gray-600);border-radius:4px;color:var(--gray-100);font-size:.85rem}.spacing-controls{display:flex;flex-direction:column;gap:.5rem}.custom-spacing{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.custom-spacing input[type=range]{flex:1;min-width:100px;accent-color:var(--success)}.custom-spacing input[type=number]{width:70px;padding:.375rem .5rem;background:var(--gray-700);border:1px solid var(--gray-600);border-radius:4px;color:var(--gray-100);font-size:.85rem}.custom-spacing select{padding:.375rem .625rem;background:var(--gray-700);border:1px solid var(--gray-600);border-radius:4px;color:var(--gray-100);font-size:.85rem}.button-group{display:flex;gap:.5rem;flex-wrap:wrap}.button-group button{flex:1;padding:.625rem 1rem;border:none;border-radius:6px;font-size:.85rem;cursor:pointer;transition:all .2s}.btn-save{background:var(--success);color:var(--white)}.btn-save:hover{background:#059669}.btn-load{background:var(--info-color);color:var(--white)}.btn-load:hover{background:#2563eb}.btn-reset{background:var(--gray-500);color:var(--white)}.btn-reset:hover{background:var(--gray-600)}.output-section{display:flex;flex-direction:column;gap:var(--tool-content-gap, 2rem)}.code-output{background:var(--gray-800);border-radius:12px;overflow:hidden}.code-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;background:var(--gray-700)}.code-header h3{margin:0;font-size:1rem;color:var(--gray-100)}.copy-btn{padding:.5rem 1rem;background:linear-gradient(135deg,var(--success),var(--info-color));border:none;border-radius:6px;color:var(--white);font-size:.85rem;cursor:pointer;transition:transform .2s,box-shadow .2s}.copy-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #10b9814d}.code-output pre{margin:0;padding:1.25rem;overflow-x:auto}.code-output code{color:var(--success);font-family:Fira Code,Consolas,monospace;font-size:.875rem;line-height:1.6}.preview-section{background:#f9fafb;border:2px solid #d1d5db;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.preview-section h3{margin:0 0 1rem;font-size:1rem;color:var(--gray-100)}.preview-comparison{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.preview-box{background:#f9fafb;border:2px solid #d1d5db;border-radius:8px;padding:1rem;box-shadow:0 1px 3px #0000001a}.preview-box h4{margin:0 0 1rem;font-size:.875rem;color:var(--gray-400);text-align:center}.preview-content{background:#f9fafb;border:2px solid #d1d5db;border-radius:6px;padding:1rem;margin:0 auto;color:var(--gray-200);box-shadow:0 1px 3px #0000001a}.preview-content.justified{border:1px solid var(--success)}.demo-section{background:var(--gray-800);border-radius:12px;padding:1.5rem}.demo-section h3{margin:0 0 1.25rem;font-size:1rem;color:var(--gray-100)}.demo-grid{display:grid;gap:1rem}.last-line-grid,.justify-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.demo-item{background:var(--gray-900);border-radius:8px;padding:1rem}.demo-item h4{margin:0 0 .75rem;font-size:.8rem;color:var(--success)}.demo-text{background:var(--white);color:var(--gray-800);padding:.75rem;border-radius:4px;margin:0 auto}.examples-section{background:var(--gray-800);border-radius:12px;padding:1.5rem}.examples-section h3{margin:0 0 1.25rem;font-size:1rem;color:var(--gray-100)}.example-block{margin-bottom:1.5rem;background:var(--gray-900);border-radius:8px;overflow:hidden}.example-block:last-child{margin-bottom:0}.example-block h4{margin:0;padding:.875rem 1rem;background:var(--gray-700);font-size:.875rem;color:var(--gray-100)}.example-block pre{margin:0;padding:1rem;overflow-x:auto}.example-block code{color:var(--success);font-family:Fira Code,Consolas,monospace;font-size:.85rem;line-height:1.6}.reference-section{background:var(--gray-800);border-radius:12px;padding:1.5rem}.reference-section h3{margin:0 0 1.25rem;font-size:1rem;color:var(--gray-100)}.reference-block{margin-bottom:1.5rem}.reference-block:last-child{margin-bottom:0}.reference-block h4{margin:0 0 .75rem;font-size:.875rem;color:var(--success)}.reference-block table{width:100%;border-collapse:collapse;background:var(--gray-900);border-radius:8px;overflow:hidden}.reference-block th,.reference-block td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid var(--gray-700)}.reference-block th{background:var(--gray-700);color:var(--gray-100);font-weight:600;font-size:.85rem}.reference-block td{color:var(--gray-300);font-size:.85rem}.reference-block td code{color:var(--success);background:var(--gray-800);padding:.125rem .375rem;border-radius:3px}.reference-block ul{margin:0;padding-left:1.25rem;list-style-type:disc}.reference-block li{color:var(--gray-300);font-size:.875rem;line-height:1.6;margin-bottom:.5rem}.reference-block li strong{color:var(--gray-100)}.reference-block li:last-child{margin-bottom:0}
