: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;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}}*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%;width:100%;overflow-x:hidden}body{font-family:-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;background-color:#f5f5f5;color:#333}#root{height:100%;width:100%}.admin-app{height:100vh;width:100vw;display:flex;flex-direction:column;max-width:100vw;margin:0 auto}.admin-header{background-color:#2c3e50;color:#fff;padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 4px #0000001a}.admin-header h1{font-size:1.5rem;font-weight:600}.admin-header button{background-color:#e74c3c;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;transition:background-color .2s}.admin-header button:hover{background-color:#c0392b}.admin-nav{background-color:#34495e;padding:0 2rem;display:flex;gap:1rem}.admin-nav button{background:none;border:none;color:#ecf0f1;padding:1rem 1.5rem;cursor:pointer;transition:all .2s;border-bottom:3px solid transparent}.admin-nav button:hover{background-color:#2c3e50}.admin-nav button.active{border-bottom-color:#3498db;background-color:#2c3e50}.admin-content{flex:1;padding:2rem;max-width:1400px;margin:0 auto;width:100%}.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}.login-form{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 4px 6px #0000001a;width:100%;max-width:400px}.login-form h2{margin-bottom:1.5rem;text-align:center;color:#2c3e50}.login-form input{width:100%;padding:.75rem;margin-bottom:1rem;border:1px solid #ddd;border-radius:4px;font-size:1rem}.login-form button{width:100%;padding:.75rem;background-color:#3498db;color:#fff;border:none;border-radius:4px;font-size:1rem;cursor:pointer;transition:background-color .2s}.login-form button:hover{background-color:#2980b9}.dashboard h2{margin-bottom:2rem;color:#2c3e50}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 4px #0000001a;transition:transform .2s,box-shadow .2s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 8px #00000026}.stat-card h3{color:#7f8c8d;font-size:.9rem;margin-bottom:.5rem;text-transform:uppercase;letter-spacing:.5px}.stat-number{font-size:2.5rem;font-weight:700;color:#2c3e50;margin-bottom:.5rem}.stat-detail{color:#27ae60;font-size:.9rem}.users-list h2{margin-bottom:1.5rem;color:#2c3e50}.users-list table{width:100%;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 4px #0000001a}.users-list th,.users-list td{padding:1rem;text-align:left;border-bottom:1px solid #ecf0f1}.users-list th{background-color:#34495e;color:#fff;font-weight:600;text-transform:uppercase;font-size:.85rem;letter-spacing:.5px}.users-list tr:hover{background-color:#f8f9fa}.table{overflow-x:auto}.table table{width:100%;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 4px #0000001a}.table th,.table td{padding:1rem;text-align:left;border-bottom:1px solid #ecf0f1;vertical-align:middle}.table th{background-color:#34495e;color:#fff;font-weight:600;text-transform:uppercase;font-size:.85rem;letter-spacing:.5px;white-space:nowrap}.table tr:hover{background-color:#f8f9fa}.table th:last-child,.table td:last-child{text-align:right;white-space:nowrap}.status{padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:500}.status.active{background-color:#d4edda;color:#155724}.status.inactive{background-color:#f8d7da;color:#721c24}.loading{display:flex;justify-content:center;align-items:center;min-height:100vh;font-size:1.2rem;color:#7f8c8d}@media(min-width:1200px){.admin-content{padding:3rem}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}.stat-card{padding:2rem}.users-list table{font-size:.95rem}.users-list th,.users-list td{padding:1.25rem}}@media(max-width:768px){.admin-header{padding:1rem}.admin-nav{padding:0 1rem;overflow-x:auto}.admin-content{padding:1rem}.stats-grid{grid-template-columns:1fr}.users-list{overflow-x:auto}.users-list table{min-width:600px}}.email-templates-page{max-width:1280px;margin:0 auto;padding:24px}.page-header{margin-bottom:24px}.header-content{display:flex;justify-content:space-between;align-items:flex-start}.page-title{font-size:2rem;font-weight:600;color:#2c3e50;margin:0}.badge{padding:.25rem .5rem;border-radius:12px;font-size:.75rem;font-weight:500}.badge-success{background-color:#d4edda;color:#155724}.badge-warning{background-color:#fff3cd;color:#856404}.badge-danger{background-color:#f8d7da;color:#721c24}.badge-info{background-color:#d1ecf1;color:#0c5460}.btn{padding:.75rem 1.5rem;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s;display:inline-flex;align-items:center;gap:.5rem}.btn-primary{background-color:#3498db;color:#fff}.btn-primary:hover{background-color:#2980b9}.btn-secondary{background-color:#95a5a6;color:#fff}.btn-secondary:hover{background-color:#7f8c8d}.btn-danger{background-color:#e74c3c;color:#fff}.btn-danger:hover{background-color:#c0392b}.gap-16{gap:16px}.header-title{display:flex;align-items:center;gap:12px}.header-icon{font-size:32px}.header-title h1{font-size:28px;font-weight:700;color:#111827;margin:0}.templates-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:20px;margin-top:24px}.template-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;box-shadow:0 1px 3px #0000001a}.template-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.template-header h3{font-size:18px;font-weight:600;color:#111827;margin:0}.template-actions{display:flex;gap:8px}.btn-sm{padding:6px 10px;font-size:12px}.btn-secondary{background:#f3f4f6;color:#374151}.btn-danger{background:#dc2626;color:#fff}.btn-danger:hover{background:#b91c1c}.template-info{display:flex;flex-direction:column;gap:12px}.template-description{color:#6b7280;font-size:14px;margin:0}.template-status{display:flex;align-items:center;gap:8px}.status-label{font-size:12px;font-weight:600;color:#6b7280}.status-value{font-size:12px}.template-variables{display:flex;flex-direction:column;gap:8px}.variables-label{font-size:12px;font-weight:600;color:#6b7280}.variables-list{display:flex;flex-wrap:wrap;gap:6px}.variable-tag{background:#f3f4f6;color:#374151;padding:4px 8px;border-radius:6px;font-size:11px;font-weight:500}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;padding:24px;max-width:90vw;max-height:95vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a}.modal-large{max-width:1400px;width:1400px}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-header-left{flex:1}.modal-header-right{display:flex;gap:8px;align-items:center}.modal-header h2{font-size:20px;font-weight:600;color:#111827;margin:0}.modal-body{margin-bottom:20px}.modal-content-grid{display:grid;gap:24px;min-height:500px}.modal-content-grid.with-preview{grid-template-columns:1fr 1fr}.modal-content-grid.full-width{grid-template-columns:1fr}.form-column{display:flex;flex-direction:column;gap:20px}.preview-column{display:flex;flex-direction:column;gap:16px;border-left:1px solid #e5e7eb;padding-left:24px}.preview-header{border-bottom:1px solid #e5e7eb;padding-bottom:12px}.preview-header h3{font-size:16px;font-weight:600;color:#111827;margin:0 0 8px}.preview-info{font-size:13px;color:#6b7280}.preview-info p{margin:0}.preview-container{flex:1;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#fff}.preview-content{padding:20px;font-family:Arial,sans-serif;font-size:14px;line-height:1.5;color:#374151;max-height:500px;overflow-y:auto}.preview-content img{max-width:100%;height:auto}.preview-content a{color:#4f46e5;text-decoration:underline}.preview-content h1,.preview-content h2,.preview-content h3,.preview-content h4,.preview-content h5,.preview-content h6{color:#111827;margin-top:0;margin-bottom:12px}.preview-content p{margin:0 0 12px}.preview-content ul,.preview-content ol{margin:0 0 12px;padding-left:20px}.modal-footer{display:flex;justify-content:flex-end;gap:12px}.language-tabs{margin-top:20px}.tabs-header{display:flex;gap:4px;border-bottom:1px solid #e5e7eb;margin-bottom:20px}.tab-button{padding:10px 16px;border:none;background:transparent;color:#6b7280;cursor:pointer;border-radius:8px 8px 0 0;display:flex;align-items:center;gap:6px;font-size:14px;font-weight:500;transition:all .2s}.tab-button:hover{background:#f3f4f6}.tab-button.active{background:#4f46e5;color:#fff}.tab-flag{font-size:16px}.tab-check{font-size:12px;color:#10b981}.tab-button.active .tab-check{color:#fff}.tabs-content{min-height:300px}.tab-panel{display:none}.tab-panel.active{display:block}.language-actions{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#f9fafb;border-radius:8px;margin-bottom:16px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:#374151}.copy-actions{display:flex;align-items:center;gap:8px}.copy-label{font-size:12px;color:#6b7280;margin-right:8px}.btn-outline{background:transparent;border:1px solid #d1d5db;color:#374151}.btn-outline:hover{background:#f3f4f6}.form-section{margin-bottom:20px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-control{width:100%;border:1px solid #d1d5db;border-radius:8px;padding:10px 12px;font-size:14px}.form-control:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e526}.textarea-large{min-height:200px;resize:vertical}.alert{padding:12px 16px;border-radius:8px;display:flex;align-items:center;gap:8px;font-size:14px}.alert-error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}.alert-success{background:#f0fdf4;color:#16a34a;border:1px solid #bbf7d0}.page-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px;gap:16px}.loading-spinner{width:32px;height:32px;border:3px solid #e5e7eb;border-top:3px solid #4f46e5;border-radius:50%;animation:spin 1s linear infinite}.email-templates-container{max-width:1280px;margin:0 auto;padding:24px}.email-templates-header{margin-bottom:24px}.email-templates-title{font-size:28px;font-weight:700;color:#111827;margin:0}.email-templates-subtitle{margin-top:6px;color:#6b7280}.email-templates-header-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.email-templates-primary-action{display:inline-flex;align-items:center;gap:10px;background:#4f46e5;color:#fff;border:0;border-radius:10px;padding:10px 14px;font-weight:600;cursor:pointer}.email-templates-primary-action:hover{background:#4338ca}.icon-5{width:20px;height:20px}.icon-6{width:24px;height:24px}.email-templates-toolbar{display:flex;gap:12px;align-items:center;margin-top:18px;flex-wrap:wrap}.search-input-wrapper{flex:1;min-width:240px;position:relative}.search-input{width:100%;padding:10px 12px 10px 40px;border:1px solid #d1d5db;border-radius:10px;font-size:14px}.search-input:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e526}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#9ca3af}.tabs-container{display:inline-flex;background:#f3f4f6;border-radius:10px;padding:4px}.tab-button{border:0;background:transparent;padding:8px 12px;border-radius:8px;font-size:13px;cursor:pointer;color:#6b7280;font-weight:600}.tab-button:hover{color:#111827}.tab-button.active{background:#fff;color:#4f46e5;box-shadow:0 1px 2px #0000000d}.templates-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:16px}@media(min-width:900px){.templates-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1200px){.templates-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.template-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;box-shadow:0 1px 2px #0000000f}.template-card-header{padding:16px;border-bottom:1px solid #e5e7eb}.template-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.template-card-title{font-size:16px;margin:0;color:#111827}.template-card-subject{margin-top:6px;color:#4b5563;font-size:13px}.template-card-preview{margin-top:10px;font-size:13px;color:#6b7280;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.template-status-badge{padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.template-status-badge.active{background:#dcfce7;color:#166534}.template-status-badge.inactive{background:#f3f4f6;color:#4b5563}.template-card-actions{padding:12px;background:#f9fafb;display:flex;flex-wrap:wrap;gap:8px}.template-action-button{border:1px solid #d1d5db;background:#fff;color:#111827;padding:8px 10px;border-radius:10px;font-size:13px;cursor:pointer}.template-action-button:hover{background:#f3f4f6}.template-action-button.primary{background:#4f46e5;color:#fff;border-color:#4f46e5}.template-action-button.primary:hover{background:#4338ca}.template-action-button.toggle-active{background:#fef3c7;border-color:#f59e0b;color:#92400e}.template-action-button.toggle-inactive{background:#dcfce7;border-color:#22c55e;color:#166534}.template-action-button.delete{background:#fee2e2;border-color:#ef4444;color:#991b1b}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;color:#6b7280}.loading-spinner{width:42px;height:42px;border:4px solid #4f46e5;border-top-color:transparent;border-radius:999px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;padding:16px;z-index:1000}.modal-content{width:100%;max-width:980px;max-height:90vh;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 20px 35px #00000040}.modal-content.small{max-width:520px}.modal-header{padding:16px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between}.modal-body{padding:16px;overflow:auto}.modal-footer{padding:16px;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:10px}.modal-close-button{border:0;background:transparent;cursor:pointer;color:#6b7280}.modal-close-button:hover{color:#111827}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}@media(max-width:768px){.form-row{grid-template-columns:1fr}}.form-group{margin-bottom:12px}.form-label{display:block;font-size:13px;font-weight:700;color:#374151;margin-bottom:6px}.form-input,.form-textarea{width:100%;border:1px solid #d1d5db;border-radius:10px;padding:10px 12px;font-size:14px}.form-textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;min-height:320px}.form-input:focus,.form-textarea:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e526}.checkbox-row{display:flex;align-items:center;gap:10px}.btn{border:0;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer}.btn-secondary{background:#f3f4f6;color:#111827}.btn-secondary:hover{background:#e5e7eb}.btn-primary{background:#4f46e5;color:#fff}.btn-primary:hover{background:#4338ca}
