*{box-sizing:border-box;margin:0;padding:0}body{color:#111827;background:#f8fafc;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6}.template-editor{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);min-height:100vh}.template-editor .editor-header{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);z-index:100;background:rgba(255,255,255,.95);border-bottom:1px solid rgba(255,255,255,.2);justify-content:space-between;align-items:center;padding:2rem;display:flex;position:-webkit-sticky;position:sticky;top:0}.template-editor .editor-header .header-content h1{background:linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-bottom:.5rem;font-size:2.5rem;font-weight:800}.template-editor .editor-header .header-content p{color:#6b7280;font-size:1.1rem}.template-editor .editor-header .header-actions{align-items:center;gap:1rem;display:flex}.template-editor .editor-header .header-actions .mode-btn{cursor:pointer;color:#111827;background:#fff;border:2px solid #e5e7eb;border-radius:.75rem;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-weight:600;text-decoration:none;transition:all .3s;display:inline-flex}.template-editor .editor-header .header-actions .mode-btn:hover{transform:translateY(-2px);box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .editor-header .header-actions .mode-btn.active{color:#fff;background:linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%);border-color:transparent}.template-editor .editor-header .header-actions .mode-btn:hover{border-color:#6366f1}.template-editor .editor-header .header-actions .download-btn{cursor:pointer;color:#fff;background:linear-gradient(135deg,#10b981 0%,#059669 100%);border:none;border-radius:.75rem;align-items:center;gap:.5rem;padding:1rem 2rem;font-size:1.1rem;font-weight:600;text-decoration:none;transition:all .3s;display:inline-flex}.template-editor .editor-header .header-actions .download-btn:hover{background:linear-gradient(135deg,#059669 0%,#047857 100%);transform:translateY(-2px);box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .language-selector{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:rgba(255,255,255,.9);border-bottom:1px solid #e5e7eb;padding:1.5rem 2rem}.template-editor .language-selector .language-tabs{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.template-editor .language-selector .language-tabs .lang-tab{cursor:pointer;color:#111827;background:#fff;border:2px solid #e5e7eb;border-radius:2rem;align-items:center;gap:.5rem;padding:.5rem 1rem;font-weight:600;text-decoration:none;transition:all .3s;display:inline-flex}.template-editor .language-selector .language-tabs .lang-tab:hover{transform:translateY(-2px);box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .language-selector .language-tabs .lang-tab.active{color:#fff;background:linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%);border-color:transparent}.template-editor .language-selector .language-tabs .lang-tab:hover{border-color:#6366f1;transform:translateY(-1px)}.template-editor .language-selector .language-tabs .add-lang-btn{cursor:pointer;color:#fff;background:#10b981;border:none;border-radius:2rem;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.9rem;font-weight:600;text-decoration:none;transition:all .3s;display:inline-flex}.template-editor .language-selector .language-tabs .add-lang-btn:hover{background:#059669;transform:translateY(-2px);box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .editor-content{max-width:1200px;margin:0 auto;padding:2rem}.template-editor .template-view .template-hero{text-align:center;background:#fff;border-radius:1.5rem;margin-bottom:2rem;padding:3rem;box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .template-view .template-hero h1{background:linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-bottom:1rem;font-size:3rem;font-weight:900}.template-editor .template-view .template-hero p{color:#6b7280;margin-bottom:2rem;font-size:1.3rem}.template-editor .template-view .template-hero .hero-meta{flex-wrap:wrap;justify-content:center;gap:2rem;display:flex}.template-editor .template-view .template-hero .hero-meta span{color:#6366f1;background:rgba(99,102,241,.1);border-radius:2rem;padding:.5rem 1rem;font-size:.9rem;font-weight:600}.template-editor .template-view .template-sections{margin-bottom:3rem}.template-editor .template-view .template-sections .template-section{background:#fff;border-radius:1.5rem;gap:1.5rem;margin-bottom:1.5rem;padding:2rem;display:flex;box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .template-view .template-sections .template-section .section-number{color:#fff;background:#6366f1;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:3rem;height:3rem;font-size:1.2rem;font-weight:700;display:flex}.template-editor .template-view .template-sections .template-section .section-content{flex:1}.template-editor .template-view .template-sections .template-section .section-content h3{color:#111827;margin-bottom:1rem;font-size:1.5rem;font-weight:700}.template-editor .template-view .template-sections .template-section .section-content p{color:#6b7280;margin-bottom:1.5rem;line-height:1.7}.template-editor .template-view .template-sections .template-section .section-content .code-example{background:#1e293b;border-radius:1rem;overflow:hidden}.template-editor .template-view .template-sections .template-section .section-content .code-example .code-header{background:#334155;justify-content:space-between;align-items:center;padding:1rem 1.5rem;display:flex}.template-editor .template-view .template-sections .template-section .section-content .code-example .code-header span{color:#94a3b8;text-transform:uppercase;font-size:.8rem;font-weight:600}.template-editor .template-view .template-sections .template-section .section-content .code-example .code-header button{cursor:pointer;color:#fff;background:rgba(255,255,255,.1);border:none;border-radius:.75rem;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.8rem;font-weight:600;text-decoration:none;transition:all .3s;display:inline-flex}.template-editor .template-view .template-sections .template-section .section-content .code-example .code-header button:hover{background:rgba(255,255,255,.2);transform:translateY(-2px);box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .template-view .template-sections .template-section .section-content .code-example pre{margin:0;padding:1.5rem;overflow-x:auto}.template-editor .template-view .template-sections .template-section .section-content .code-example pre code{color:#e2e8f0;font-family:JetBrains Mono,Fira Code,monospace;font-size:.9rem;line-height:1.6}.template-editor .template-view .template-actions .action-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;display:grid}.template-editor .template-view .template-actions .action-grid .action-card{cursor:pointer;text-align:center;background:#fff;border:2px solid #e5e7eb;border-radius:1.5rem;flex-direction:column;align-items:center;gap:.5rem;padding:2rem;font-weight:600;text-decoration:none;transition:all .3s;display:inline-flex}.template-editor .template-view .template-actions .action-grid .action-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .template-view .template-actions .action-grid .action-card svg{color:#6366f1;width:3rem;height:3rem;margin-bottom:1rem}.template-editor .template-view .template-actions .action-grid .action-card h4{color:#111827;margin-bottom:.5rem;font-size:1.2rem;font-weight:700}.template-editor .template-view .template-actions .action-grid .action-card p{color:#6b7280;font-size:.9rem;line-height:1.5}.template-editor .template-view .template-actions .action-grid .action-card:hover{border-color:#6366f1;transform:translateY(-4px)}.template-editor .template-view .template-actions .action-grid .action-card:hover svg{color:#8b5cf6}.template-editor .edit-mode .edit-hero{background:#fff;border-radius:1.5rem;margin-bottom:2rem;padding:2rem;box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .edit-mode .edit-hero h3{color:#111827;margin-bottom:1.5rem;font-size:1.5rem;font-weight:700}.template-editor .edit-mode .edit-hero .input-group{margin-bottom:1.5rem}.template-editor .edit-mode .edit-hero .input-group label{color:#111827;margin-bottom:.5rem;font-weight:600;display:block}.template-editor .edit-mode .edit-hero .input-group input,.template-editor .edit-mode .edit-hero .input-group textarea{border:2px solid #e5e7eb;border-radius:.75rem;width:100%;padding:.75rem 1rem;font-size:1rem;transition:border-color .3s}.template-editor .edit-mode .edit-hero .input-group input:focus,.template-editor .edit-mode .edit-hero .input-group textarea:focus{border-color:#6366f1;outline:none;box-shadow:0 0 0 3px rgba(99,102,241,.1)}.template-editor .edit-mode .edit-sections .sections-header{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.template-editor .edit-mode .edit-sections .sections-header h3{color:#111827;font-size:1.5rem;font-weight:700}.template-editor .edit-mode .edit-sections .sections-header .add-section-btn{cursor:pointer;color:#fff;background:#10b981;border:none;border-radius:.75rem;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-weight:600;text-decoration:none;transition:all .3s;display:inline-flex}.template-editor .edit-mode .edit-sections .sections-header .add-section-btn:hover{background:#059669;transform:translateY(-2px);box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .edit-mode .edit-sections .edit-section{background:#fff;border-radius:1.5rem;margin-bottom:1.5rem;padding:2rem;box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .edit-mode .edit-sections .edit-section .section-header{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.template-editor .edit-mode .edit-sections .edit-section .section-header h4{color:#111827;font-size:1.2rem;font-weight:700}.template-editor .edit-mode .edit-sections .edit-section .section-header .delete-btn{cursor:pointer;color:#fff;background:#ef4444;border:none;border-radius:.75rem;align-items:center;gap:.5rem;padding:.5rem;font-weight:600;text-decoration:none;transition:all .3s;display:inline-flex}.template-editor .edit-mode .edit-sections .edit-section .section-header .delete-btn:hover{background:#dc2626;transform:translateY(-2px);box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .edit-mode .edit-sections .edit-section .input-group{margin-bottom:1.5rem}.template-editor .edit-mode .edit-sections .edit-section .input-group label{color:#111827;margin-bottom:.5rem;font-weight:600;display:block}.template-editor .edit-mode .edit-sections .edit-section .input-group input,.template-editor .edit-mode .edit-sections .edit-section .input-group textarea{border:2px solid #e5e7eb;border-radius:.75rem;width:100%;padding:.75rem 1rem;font-size:1rem;transition:border-color .3s}.template-editor .edit-mode .edit-sections .edit-section .input-group input:focus,.template-editor .edit-mode .edit-sections .edit-section .input-group textarea:focus{border-color:#6366f1;outline:none;box-shadow:0 0 0 3px rgba(99,102,241,.1)}.template-editor .edit-mode .edit-sections .edit-section .input-group .code-input{color:#e2e8f0;background:#1e293b;border-color:#334155;font-family:JetBrains Mono,Fira Code,monospace}.template-editor .edit-mode .edit-sections .edit-section .input-group .code-input:focus{border-color:#6366f1}.template-editor .preview-mode .preview-hero{text-align:center;background:#fff;border-radius:1.5rem;margin-bottom:2rem;padding:3rem;box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .preview-mode .preview-hero h1{background:linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-bottom:1rem;font-size:3rem;font-weight:900}.template-editor .preview-mode .preview-hero p{color:#6b7280;font-size:1.3rem}.template-editor .preview-mode .preview-sections .preview-section{background:#fff;border-radius:1.5rem;margin-bottom:1.5rem;padding:2rem;box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .preview-mode .preview-sections .preview-section h2{color:#111827;border-bottom:3px solid #6366f1;margin-bottom:1rem;padding-bottom:.5rem;font-size:1.8rem;font-weight:700;display:inline-block}.template-editor .preview-mode .preview-sections .preview-section p{color:#6b7280;margin-bottom:1.5rem;font-size:1.1rem;line-height:1.7}.template-editor .preview-mode .preview-sections .preview-section .code-preview{background:#1e293b;border-radius:1rem;margin-top:1rem;padding:1.5rem;overflow-x:auto}.template-editor .preview-mode .preview-sections .preview-section .code-preview code{color:#e2e8f0;font-family:JetBrains Mono,Fira Code,monospace;font-size:.9rem;line-height:1.6}.template-editor .editor-footer{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:rgba(255,255,255,.95);border-top:1px solid rgba(255,255,255,.2);justify-content:space-between;align-items:center;margin-top:3rem;padding:2rem;display:flex}.template-editor .editor-footer p{color:#6b7280;font-size:1.1rem;font-weight:500}.template-editor .editor-footer .footer-stats{gap:2rem;display:flex}.template-editor .editor-footer .footer-stats span{color:#6366f1;background:rgba(99,102,241,.1);border-radius:2rem;padding:.5rem 1rem;font-size:.9rem;font-weight:600}.template-editor .template-loader{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);justify-content:center;align-items:center;min-height:100vh;display:flex}.template-editor .template-loader .loader{color:#111827;background:#fff;border-radius:1.5rem;padding:2rem 3rem;font-size:1.2rem;font-weight:600;box-shadow:0 10px 25px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.template-editor .template-loader .loader:after{content:"";border:2px solid #6366f1;border-top-color:transparent;border-radius:50%;width:1rem;height:1rem;margin-left:1rem;animation:1s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideIn{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@media (max-width:1024px){.template-editor .editor-header{text-align:center;flex-direction:column;gap:1.5rem}.template-editor .editor-header .header-actions{flex-wrap:wrap;justify-content:center}.template-editor .template-view .template-hero h1{font-size:2.5rem}.template-editor .template-view .template-actions .action-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}}@media (max-width:768px){.template-editor .editor-content{padding:1rem}.template-editor .template-view .template-hero{padding:2rem 1.5rem}.template-editor .template-view .template-hero h1{font-size:2rem}.template-editor .template-view .template-hero p{font-size:1.1rem}.template-editor .template-view .template-hero .hero-meta{flex-direction:column;gap:1rem}.template-editor .template-sections .template-section{flex-direction:column;padding:1.5rem}.template-editor .template-sections .template-section .section-number{align-self:flex-start;margin-bottom:1rem}.template-editor .language-selector{padding:1rem}.template-editor .language-selector .language-tabs{justify-content:center}.template-editor .editor-footer{text-align:center;flex-direction:column;gap:1rem}.template-editor .editor-footer .footer-stats{flex-wrap:wrap;justify-content:center;gap:1rem}}@media (max-width:480px){.template-editor .editor-header{padding:1.5rem 1rem}.template-editor .editor-header .header-content h1{font-size:2rem}.template-editor .editor-header .header-actions{gap:.5rem}.template-editor .editor-header .header-actions .mode-btn{padding:.5rem 1rem;font-size:.9rem}.template-editor .editor-header .header-actions .download-btn{padding:.75rem 1.5rem;font-size:1rem}.template-editor .template-view .template-actions .action-grid{grid-template-columns:1fr}.template-editor .edit-mode .edit-hero,.template-editor .edit-mode .edit-section{padding:1.5rem}}@media (prefers-color-scheme:dark){.template-editor .template-editor{background:linear-gradient(135deg,#1e3a8a 0%,#581c87 100%)}.template-editor .template-editor .editor-header,.template-editor .template-editor .language-selector,.template-editor .template-editor .editor-footer{background:rgba(17,24,39,.95);border-color:rgba(55,65,81,.5)}.template-editor .template-editor .editor-header h1,.template-editor .template-editor .editor-header p,.template-editor .template-editor .language-selector h1,.template-editor .template-editor .language-selector p,.template-editor .template-editor .editor-footer h1,.template-editor .template-editor .editor-footer p{color:#f9fafb}.template-editor .template-editor .template-view .template-hero,.template-editor .template-editor .template-sections .template-section,.template-editor .template-editor .edit-mode .edit-hero,.template-editor .template-editor .edit-mode .edit-section,.template-editor .template-editor .preview-mode .preview-hero,.template-editor .template-editor .preview-mode .preview-section{background:rgba(17,24,39,.8);border:1px solid rgba(55,65,81,.3)}.template-editor .template-editor .template-view .template-hero h1,.template-editor .template-editor .template-view .template-hero h2,.template-editor .template-editor .template-view .template-hero h3,.template-editor .template-editor .template-view .template-hero h4,.template-editor .template-editor .template-sections .template-section h1,.template-editor .template-editor .template-sections .template-section h2,.template-editor .template-editor .template-sections .template-section h3,.template-editor .template-editor .template-sections .template-section h4,.template-editor .template-editor .edit-mode .edit-hero h1,.template-editor .template-editor .edit-mode .edit-hero h2,.template-editor .template-editor .edit-mode .edit-hero h3,.template-editor .template-editor .edit-mode .edit-hero h4,.template-editor .template-editor .edit-mode .edit-section h1,.template-editor .template-editor .edit-mode .edit-section h2,.template-editor .template-editor .edit-mode .edit-section h3,.template-editor .template-editor .edit-mode .edit-section h4,.template-editor .template-editor .preview-mode .preview-hero h1,.template-editor .template-editor .preview-mode .preview-hero h2,.template-editor .template-editor .preview-mode .preview-hero h3,.template-editor .template-editor .preview-mode .preview-hero h4,.template-editor .template-editor .preview-mode .preview-section h1,.template-editor .template-editor .preview-mode .preview-section h2,.template-editor .template-editor .preview-mode .preview-section h3,.template-editor .template-editor .preview-mode .preview-section h4{color:#f9fafb}.template-editor .template-editor .template-view .template-hero p,.template-editor .template-editor .template-sections .template-section p,.template-editor .template-editor .edit-mode .edit-hero p,.template-editor .template-editor .edit-mode .edit-section p,.template-editor .template-editor .preview-mode .preview-hero p,.template-editor .template-editor .preview-mode .preview-section p{color:#d1d5db}.template-editor .template-editor .template-loader .loader{color:#f9fafb;background:rgba(17,24,39,.95)}}@media print{.template-editor .editor-header,.template-editor .language-selector,.template-editor .editor-footer,.template-editor .template-actions{display:none}.template-editor .template-editor{background:#fff}.template-editor .template-view .template-hero,.template-editor .template-sections .template-section{box-shadow:none;background:#fff;border:1px solid #e5e7eb}}.template-editor ::-webkit-scrollbar{width:8px;height:8px}.template-editor ::-webkit-scrollbar-track{background:rgba(255,255,255,.1);border-radius:4px}.template-editor ::-webkit-scrollbar-thumb{background:rgba(99,102,241,.6);border-radius:4px}.template-editor ::-webkit-scrollbar-thumb:hover{background:rgba(99,102,241,.8)}.template-editor ::selection{color:#111827;background:rgba(99,102,241,.2)}.template-editor ::selection{color:#111827;background:rgba(99,102,241,.2)}
