@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap";:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;color:#fff;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9;color:#213547}}*{margin:0;padding:0;box-sizing:border-box}html{scroll-behavior:smooth}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.6;color:#1a1a1a;background:#fafafa;overflow-x:hidden}.App{min-height:100vh;width:100vw;overflow-x:hidden;display:flex;flex-direction:column}.App>*:nth-child(2){flex:1;min-height:0}#root{width:100%;min-height:100vh}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:#f8f9fa}::-webkit-scrollbar-thumb{background:#6c757d;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#495057}::selection{background:#667eea33;color:#1a1a1a}*:focus{outline:2px solid #667eea;outline-offset:2px}*{transition:color .2s ease,background-color .2s ease,border-color .2s ease}.certificate-generator{min-height:100vh;background:linear-gradient(135deg,#f8f9fa,#e9ecef);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1a1a1a}.header{background:#fff;border-bottom:1px solid #e9ecef;padding:2rem 0;box-shadow:0 2px 4px #0000000a}.heading-text{text-align:center;max-width:800px;margin:0 auto;padding:0 2rem}.heading-text h1{font-size:clamp(2rem,5vw,3rem);font-weight:800;color:#1a1a1a;margin-bottom:.5rem;letter-spacing:-.02em}.heading-text h2{font-size:clamp(1rem,2.5vw,1.25rem);font-weight:400;color:#6c757d;line-height:1.6;max-width:600px;margin:0 auto}.main{max-width:1400px;margin:0 auto;padding:2rem;display:flex;flex-direction:column;gap:2rem}.controls-section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px #0000000d;border:1px solid #e9ecef}.mode-toggle{display:flex;gap:1rem;margin-bottom:1.5rem;background:#f8f9fa;padding:.5rem;border-radius:8px;border:1px solid #e9ecef}.mode-btn{flex:1;padding:.75rem 1.5rem;border:none;border-radius:6px;font-weight:600;font-size:.875rem;cursor:pointer;transition:all .2s ease;background:transparent;color:#6c757d}.mode-btn.active{background:#1a1a1a;color:#fff;box-shadow:0 2px 4px #0000001a}.mode-btn:hover:not(.active){background:#e9ecef;color:#1a1a1a}.template-controls{display:flex;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap;padding:1rem 0;border-bottom:1px solid #e9ecef}.template-toggle-btn,.config-toggle-btn,.preview-toggle-btn{padding:.75rem 1.5rem;border:1px solid #dee2e6;border-radius:6px;background:#fff;color:#1a1a1a;font-weight:600;font-size:.875rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.5rem;position:relative}.template-toggle-btn:hover,.config-toggle-btn:hover,.preview-toggle-btn:hover{background:#f8f9fa;border-color:#1a1a1a;transform:translateY(-1px)}.template-toggle-btn.active,.config-toggle-btn.active,.preview-toggle-btn.active{background:#28a745;color:#fff;border-color:#28a745;box-shadow:0 2px 4px #28a74533}.template-toggle-btn.active:before,.config-toggle-btn.active:before,.preview-toggle-btn.active:before{content:"✓";margin-right:.5rem;font-weight:700}.template-toggle-btn:not(.active):before,.config-toggle-btn:not(.active):before,.preview-toggle-btn:not(.active):before{content:"▶";margin-right:.5rem;font-size:.75rem}.config-panel{background:#f8f9fa;border-radius:8px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid #e9ecef}.config-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem}.config-item{display:flex;flex-direction:column;gap:.5rem}.config-item label{font-weight:600;font-size:.875rem;color:#1a1a1a}.config-item input{padding:.75rem;border:1px solid #dee2e6;border-radius:6px;font-size:.875rem;background:#fff;transition:border-color .2s ease;color:#1a1a1a;font-weight:500;width:100%}.config-item input:focus{outline:none;border-color:#1a1a1a;box-shadow:0 0 0 3px #1a1a1a1a}.config-item input[type=color]{height:44px;padding:.75rem;cursor:pointer;border:1px solid #dee2e6;border-radius:6px;background:#fff;width:100%}.config-item input[type=color]:focus{outline:none;border-color:#1a1a1a;box-shadow:0 0 0 3px #1a1a1a1a}.config-item input[type=number]{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:600;text-align:center}.reset-config-btn{background:#dc3545;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;font-weight:600;font-size:.875rem;cursor:pointer;transition:all .2s ease}.reset-config-btn:hover{background:#c82333;transform:translateY(-1px)}.certificate-form{background:#f8f9fa;border-radius:8px;padding:1.5rem;border:1px solid #e9ecef;margin-bottom:1.5rem}.submit-btn{background:#1a1a1a!important;color:#fff!important;border:none;padding:1rem 2rem;border-radius:8px;font-weight:700;font-size:1rem;cursor:pointer;transition:all .2s ease;width:100%;margin-top:1rem}.submit-btn:hover:not(:disabled){background:#000!important;transform:translateY(-2px);box-shadow:0 4px 8px #0003}.submit-btn:disabled{background:#6c757d!important;cursor:not-allowed;transform:none;box-shadow:none}.batch-form{background:#f8f9fa;border-radius:8px;padding:1.5rem;border:1px solid #e9ecef;margin-bottom:1.5rem}.file-upload-section{margin-bottom:1.5rem}.file-input{display:none}.file-upload-label{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;border:2px dashed #dee2e6;border-radius:8px;background:#fff;cursor:pointer;transition:all .2s ease;gap:1rem}.file-upload-label:hover{border-color:#1a1a1a;background:#f8f9fa}.upload-icon{font-size:2rem;color:#6c757d}.file-upload-label span{font-weight:600;color:#1a1a1a}.file-upload-label small{color:#6c757d;font-size:.875rem}.names-preview{background:#fff;border-radius:6px;padding:1rem;border:1px solid #e9ecef;max-height:200px;overflow-y:auto}.names-list{display:flex;flex-wrap:wrap;gap:.5rem}.name-tag{background:#1a1a1a;color:#fff;padding:.25rem .75rem;border-radius:20px;font-size:.75rem;font-weight:500}.progress-section{margin-top:1rem}.progress-bar{width:100%;height:8px;background:#e9ecef;border-radius:4px;overflow:hidden;margin-bottom:.5rem}.progress-fill{height:100%;background:#1a1a1a;transition:width .3s ease}.template-upload-panel{background:#f8f9fa;border-radius:8px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid #e9ecef}.template-info{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:1rem;border-radius:6px;border:1px solid #e9ecef;margin-bottom:1rem}.template-info span{font-weight:600;color:#1a1a1a}.remove-template-btn{background:#dc3545;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .2s ease}.remove-template-btn:hover{background:#c82333}.template-upload-section{margin-bottom:1rem}.template-input{display:none}.template-upload-label{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem;border:2px dashed #dee2e6;border-radius:6px;background:#fff;cursor:pointer;transition:all .2s ease;gap:.5rem}.template-upload-label:hover{border-color:#1a1a1a;background:#f8f9fa}.preview-panel{background:#fff;border-radius:12px;padding:2rem;margin-bottom:1.5rem;box-shadow:0 4px 6px #0000000d;border:1px solid #e9ecef}.preview-panel h3{margin-top:0;margin-bottom:1.5rem;color:#1a1a1a;font-size:1.25rem;font-weight:700}.preview-controls{display:flex;justify-content:flex-start;gap:20px;margin-bottom:24px;align-items:flex-end;flex-wrap:wrap}.preview-sample-input{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.preview-sample-input label{font-weight:600;font-size:.875rem;color:#1a1a1a}.sample-name-input{padding:.75rem;border:1px solid #dee2e6;border-radius:6px;font-size:.875rem;background:#fff;color:#1a1a1a;transition:border-color .2s ease;min-width:200px}.sample-name-input:focus{outline:none;border-color:#1a1a1a;box-shadow:0 0 0 3px #1a1a1a1a}.preview-canvas-container{display:flex;justify-content:center;margin-top:1rem;background:#f8f9fa;border-radius:8px;padding:1rem;border:1px solid #e9ecef}.preview-canvas{border:1px solid #dee2e6;border-radius:6px;background:#fff;box-shadow:0 2px 4px #0000001a}.preview-info{margin-top:1rem;text-align:center;color:#6c757d;font-size:.875rem}.generate-btn{background:#1a1a1a;color:#fff;border:none;padding:1rem 2rem;border-radius:8px;font-weight:700;font-size:1rem;cursor:pointer;transition:all .2s ease;width:100%;margin-top:1rem}.generate-btn:hover:not(:disabled){background:#000;transform:translateY(-2px);box-shadow:0 4px 8px #0003}.generate-btn:disabled{background:#6c757d;cursor:not-allowed;transform:none}.error{background:#f8d7da;color:#721c24;padding:1rem;border-radius:6px;margin:1rem 0;border:1px solid #f5c6cb;font-weight:500}.success-message,.success{background:#d4edda;color:#155724;padding:1rem 1.5rem;border-radius:8px;margin:1rem 0;border:1px solid #c3e6cb;font-weight:600;font-size:.95rem;text-align:center;display:flex;align-items:center;justify-content:center;gap:.5rem;box-shadow:0 2px 4px #0000000d}.loading{display:flex;align-items:center;justify-content:center;gap:.5rem;color:#6c757d;font-weight:500}.spinner{width:20px;height:20px;border:2px solid #e9ecef;border-top:2px solid #1a1a1a;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.reset-upload-btn{background:#6c757d;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .2s ease;margin-top:.5rem}.reset-upload-btn:hover{background:#5a6268}.name-input{width:100%;padding:1rem 1.25rem;border:2px solid #dee2e6;border-radius:8px;font-size:1.125rem;font-weight:500;background:#fff;color:#1a1a1a;transition:all .2s ease;font-family:inherit;box-shadow:0 2px 4px #0000000d}.name-input:focus{outline:none;border-color:#1a1a1a;background:#fff;box-shadow:0 0 0 3px #1a1a1a1a,0 4px 8px #0000001a;transform:translateY(-1px)}.name-input::placeholder{color:#6c757d;font-weight:400}.input-group{position:relative;width:100%;margin-bottom:1.5rem}.input-label{position:absolute;top:1rem;left:1.25rem;font-size:1.125rem;color:#6c757d;font-weight:500;transition:all .2s ease;pointer-events:none;background:#fff;padding:0 .5rem;border-radius:4px}.name-input:focus+.input-label,.name-input:not(:placeholder-shown)+.input-label{top:-.5rem;left:1rem;font-size:.875rem;color:#1a1a1a;font-weight:600;background:#fff;box-shadow:0 2px 4px #0000001a}@media (max-width: 768px){.main{padding:1rem}.controls-section{padding:1.5rem}.mode-toggle,.template-controls{flex-direction:column}.config-grid{grid-template-columns:1fr}.preview-controls{flex-direction:column;gap:1rem}.preview-canvas{max-width:100%;height:auto}.heading-text{padding:0 1rem}}.footer{background:#fff;border-top:1px solid #e9ecef;padding:1.5rem 0;margin-top:auto;box-shadow:0 -2px 4px #0000000a;flex-shrink:0}.footer-content{max-width:1400px;margin:0 auto;padding:0 2rem;text-align:center}.footer-content p{margin:0;color:#6c757d;font-size:.875rem;font-weight:500}.footer-link{color:#1a1a1a;text-decoration:none;font-weight:600;transition:color .2s ease}.footer-link:hover{color:#667eea;text-decoration:underline}.desktop-notice{position:fixed;top:20px;right:20px;z-index:1000;background:#fff;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 4px 12px #0000001a;padding:.75rem 1rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);animation:slideIn .3s ease-out}.desktop-notice-content{display:flex;align-items:center;gap:.5rem}.desktop-notice-icon{font-size:1.1rem}.desktop-notice-text{font-size:.875rem;font-weight:500;color:#6c757d;white-space:nowrap}@keyframes slideIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@media (max-width: 768px){.desktop-notice{display:none}}
