.random-string-generator{max-width:800px;margin:3rem auto;padding:0 2rem}.generator-header{text-align:center;margin-bottom:3rem}.generator-header h2{font-size:2.5rem;font-weight:700;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:1rem}.generator-description{font-size:1.125rem;color:var(--text-secondary)}.generator-content{background:var(--bg-secondary);border-radius:1rem;padding:2.5rem;box-shadow:var(--shadow-lg);border:1px solid var(--border-color)}.form-group{margin-bottom:1.5rem}.form-group label{display:block;font-weight:600;margin-bottom:.5rem;color:var(--text-primary);font-size:.95rem}.form-group input,.form-group select{width:100%;padding:.875rem 1rem;border:2px solid var(--border-color);border-radius:.5rem;background:var(--bg-primary);color:var(--text-primary);font-size:1rem;transition:var(--transition)}.form-group input:focus,.form-group select:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.button-group{display:flex;gap:1rem;margin-top:2rem}.btn{flex:1;padding:1rem 2rem;border-radius:.5rem;font-weight:600;font-size:1rem;transition:var(--transition);cursor:pointer;border:none;display:flex;align-items:center;justify-content:center;gap:.5rem}.btn-primary{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%);color:#fff;box-shadow:0 4px 12px #2563eb4d;-webkit-tap-highlight-color:transparent;-webkit-transform:translateZ(0);transform:translateZ(0);will-change:transform,box-shadow}.btn-primary:hover:not(:disabled){box-shadow:0 6px 20px #2563eb66;transform:translate3d(0,-2px,0)}.btn-primary:active:not(:disabled){transform:translateZ(0)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{background:var(--bg-tertiary);color:var(--text-primary);border:2px solid var(--border-color)}.btn-secondary:hover{background:var(--primary-light);border-color:var(--primary);color:var(--primary)}.spinning{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.btn{display:flex;align-items:center;justify-content:center;gap:.5rem}.btn-action{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:var(--primary);color:#fff;border:none;border-radius:.375rem;font-weight:600;font-size:.875rem;cursor:pointer;transition:var(--transition)}.btn-action:hover{background:var(--primary-hover)}.btn-action.btn-danger{background:var(--error)}.btn-action.btn-danger:hover{background:#dc2626}.templates-panel{margin-top:2rem;padding-top:2rem;border-top:2px solid var(--border-color)}.templates-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}.template-card{background:var(--bg-primary);padding:1.25rem;border-radius:.75rem;border:2px solid var(--border-color);cursor:pointer;transition:transform .3s ease,border-color .3s ease;-webkit-tap-highlight-color:transparent;-webkit-transform:translateZ(0);transform:translateZ(0);will-change:transform,border-color}.template-card:hover{border-color:var(--primary);transform:translate3d(0,-2px,0)}.template-card:active{transform:translateZ(0)}.template-card h4{font-size:1rem;font-weight:600;color:var(--primary);margin-bottom:.5rem}.template-description{font-size:.875rem;color:var(--text-secondary);margin-bottom:.75rem;line-height:1.5}.template-meta{font-size:.75rem;color:var(--text-tertiary)}.result-panel{margin-top:2rem;padding-top:2rem;border-top:2px solid var(--border-color)}.result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.result-header label{font-weight:600;color:var(--text-primary);font-size:1.125rem}.result-actions{display:flex;gap:.75rem}.results-list{display:flex;flex-direction:column;gap:.75rem;max-height:500px;overflow-y:auto;padding-right:.5rem}.result-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;padding:1rem;background:var(--bg-primary);border:2px solid var(--border-color);border-radius:.5rem;transition:var(--transition)}.result-item:hover{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.result-index{font-weight:700;color:var(--primary);min-width:2rem;flex-shrink:0}.result-text{font-family:Courier New,monospace;font-size:.95rem;word-break:break-all;overflow-wrap:break-word;color:var(--text-primary);line-height:1.5;min-width:0}@media(max-width:640px){.result-item{grid-template-columns:1fr;gap:.5rem}.result-index{grid-column:1;grid-row:1}.result-text{grid-column:1;grid-row:2;font-size:.875rem}.btn-copy{grid-column:1;grid-row:3;width:100%}}.btn-copy{padding:.5rem;background:var(--primary);color:#fff;border-radius:.375rem;border:none;cursor:pointer;transition:var(--transition);display:flex;align-items:center;justify-content:center;min-width:40px;min-height:40px}.btn-copy:hover{background:var(--primary-hover);box-shadow:var(--shadow)}.copy-success{display:block;margin-top:1rem;color:var(--success);font-size:.875rem;font-weight:600;text-align:center}@media(max-width:768px){.random-string-generator{padding:0 1rem;margin:2rem auto}.generator-header{margin-bottom:2rem}.generator-header h2{font-size:1.875rem}.generator-description{font-size:1rem}.generator-content{padding:1.5rem}.button-group{flex-direction:column}.templates-grid{grid-template-columns:1fr}.result-container{flex-direction:column;align-items:stretch}.btn-copy{width:100%}}@media(max-width:480px){.random-string-generator{padding:0 .75rem;margin:1.5rem auto}.generator-header{margin-bottom:1.5rem}.generator-header h2{font-size:1.5rem}.generator-description{font-size:.938rem}.generator-content{padding:1.25rem}.form-group{margin-bottom:1.25rem}.form-group label{font-size:.875rem}.form-group input,.form-group select{padding:.75rem .875rem;font-size:.938rem}.btn{padding:.875rem 1.5rem;font-size:.938rem}.template-card{padding:1rem}.template-card h4{font-size:.938rem}.template-description{font-size:.813rem}.template-meta{font-size:.688rem}.result-text{font-size:.875rem}}@media(max-width:360px){.random-string-generator{padding:0 .5rem;margin:1rem auto}.generator-header h2{font-size:1.375rem}.generator-description{font-size:.875rem}.generator-content{padding:1rem}.form-group label{font-size:.813rem}.form-group input,.form-group select{padding:.625rem .75rem;font-size:.875rem}.btn{padding:.75rem 1.25rem;font-size:.875rem}.template-card{padding:.875rem}.result-text{font-size:.813rem}}.checkbox-group{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}.checkbox-item{display:flex;align-items:center;gap:.5rem;padding:.875rem 1rem;background:var(--bg-primary);border:2px solid var(--border-color);border-radius:.5rem;cursor:pointer;transition:var(--transition);-webkit-user-select:none;user-select:none}.checkbox-item:hover{border-color:var(--primary);background:#2563eb0d}.checkbox-item.active{border-color:var(--primary);background:#2563eb1a}.checkbox-item.disabled{opacity:.5;cursor:not-allowed;background:var(--bg-secondary);border-color:var(--border-color)}.checkbox-item.disabled:hover{border-color:var(--border-color);background:var(--bg-secondary)}.checkbox-item input[type=checkbox]{accent-color:var(--primary);width:18px;height:18px;cursor:pointer;pointer-events:none}.checkbox-item.disabled input[type=checkbox]{cursor:not-allowed;opacity:.6}.checkbox-item span{font-weight:500;color:var(--text-primary);flex:1}.advanced-settings{display:flex;flex-direction:column;gap:1rem;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:.5rem;padding:1rem}.setting-item{display:grid;grid-template-columns:1fr auto 2fr;align-items:center;gap:.75rem}.setting-item.disabled{opacity:.5;pointer-events:none}.setting-label{font-weight:500;color:var(--text-primary);font-size:.938rem}.setting-checkbox{accent-color:var(--primary);width:20px;height:20px;cursor:pointer}.setting-item.disabled .setting-checkbox{cursor:not-allowed;opacity:.6}.setting-item.disabled .setting-label{color:var(--text-secondary)}.setting-item.disabled .setting-hint{color:var(--text-secondary);opacity:.7}.setting-hint{color:var(--text-secondary);font-size:.813rem;font-style:italic}.custom-input{grid-column:1 / -1;padding:.75rem 1rem;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:.375rem;color:var(--text-primary);font-size:.938rem;transition:var(--transition)}.custom-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #2563eb1a}.custom-input::placeholder{color:var(--text-secondary)}.charset-preview{position:relative}.charset-preview-box{padding:1rem;background:var(--bg-primary);border:2px solid var(--border-color);border-radius:.5rem;font-family:Courier New,monospace;font-size:.875rem;color:var(--text-primary);word-break:break-all;max-height:120px;overflow-y:auto;line-height:1.6}.charset-count{margin-top:.5rem;font-size:.813rem;color:var(--text-secondary);font-weight:500;text-align:right}@media(max-width:768px)and (min-width:641px){.checkbox-group{grid-template-columns:repeat(2,1fr);gap:.625rem}.checkbox-item{padding:.75rem .875rem}.checkbox-item span{font-size:.938rem}}@media(max-width:640px){.checkbox-group{grid-template-columns:1fr;gap:.5rem}.checkbox-item{padding:.75rem .875rem}.checkbox-item span{font-size:.938rem}}@media(max-width:768px){.setting-item{grid-template-columns:auto 1fr;gap:.75rem;align-items:start}.setting-label{font-size:.875rem;grid-column:1 / -1}.setting-checkbox{grid-column:1;grid-row:2;justify-self:start}.setting-hint{font-size:.75rem;grid-column:2;grid-row:2;margin-top:.25rem}.custom-input{margin-top:.5rem}.advanced-settings{padding:.875rem}.charset-preview-box{font-size:.813rem;padding:.875rem}}@media(max-width:480px){.checkbox-item{padding:.625rem .75rem}.checkbox-item span{font-size:.875rem}.checkbox-item input[type=checkbox]{width:16px;height:16px}.advanced-settings{padding:.75rem;gap:.875rem}.setting-item{grid-template-columns:1fr;gap:.5rem}.setting-checkbox{grid-column:1;grid-row:2;width:18px;height:18px}.setting-hint{grid-column:1;grid-row:3;font-size:.688rem;margin-top:0}.custom-input{font-size:.875rem;padding:.625rem .75rem}.charset-preview-box{padding:.75rem;font-size:.75rem;max-height:80px;line-height:1.5}.charset-count{font-size:.688rem}}
