.template-manager{max-width:1200px;margin:0 auto;padding:20px}.template-header{margin-bottom:30px}.template-header h1{margin:0 0 10px;color:#333}.breadcrumb{font-size:14px}.breadcrumb a{color:#007bff;text-decoration:none}.breadcrumb a:hover{text-decoration:underline}.template-actions{margin-bottom:30px}.template-form-card{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;padding:25px;margin-bottom:30px}.template-form-card h2{margin-top:0;margin-bottom:20px;color:#333}.template-form-card h3{margin-top:25px;margin-bottom:15px;color:#555;font-size:16px;border-bottom:1px solid #dee2e6;padding-bottom:8px}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px;margin-bottom:15px}.form-field label{display:block;margin-bottom:5px;font-weight:500;color:#555;font-size:14px}.form-field input[type=text],.form-field input[type=number],.form-field select{width:100%;padding:8px 12px;border:1px solid #ced4da;border-radius:4px;font-size:14px}.form-field.checkbox-field{display:flex;align-items:center}.form-field.checkbox-field label{margin:0;display:flex;align-items:center;gap:8px}.form-field.checkbox-field input[type=checkbox]{width:auto;margin:0}.form-actions{margin-top:25px;display:flex;gap:10px}.templates-list{margin-top:40px}.templates-list h2{margin-bottom:20px;color:#333}.no-templates{text-align:center;color:#6c757d;padding:40px;background:#f8f9fa;border-radius:8px;border:1px dashed #dee2e6}.templates-table{width:100%;border-collapse:collapse;background:#fff;box-shadow:0 2px 4px #0000001a;border-radius:8px;overflow:hidden}.templates-table thead{background:#007bff;color:#fff}.templates-table th{padding:12px 15px;text-align:left;font-weight:600;font-size:14px}.templates-table td{padding:12px 15px;border-bottom:1px solid #dee2e6;font-size:14px}.templates-table tbody tr:hover{background:#f8f9fa}.templates-table tbody tr:last-child td{border-bottom:none}.actions-cell{display:flex;gap:15px}.btn-link{background:none;border:none;color:#007bff;cursor:pointer;padding:0;font-size:14px;text-decoration:underline}.btn-link:hover{color:#0056b3}.btn-link.btn-danger{color:#dc3545}.btn-link.btn-danger:hover{color:#bd2130}.btn{padding:10px 20px;border:none;border-radius:4px;font-size:14px;cursor:pointer;transition:background-color .2s}.btn-primary{background:#007bff;color:#fff}.btn-primary:hover:not(:disabled){background:#0056b3}.btn-primary:disabled{background:#6c757d;cursor:not-allowed}.btn-secondary{background:#6c757d;color:#fff}.btn-secondary:hover:not(:disabled){background:#5a6268}.error-message{background:#f8d7da;color:#721c24;padding:12px 20px;border-radius:4px;margin-bottom:20px;border:1px solid #f5c6cb}.success-message{background:#d4edda;color:#155724;padding:12px 20px;border-radius:4px;margin-bottom:20px;border:1px solid #c3e6cb}*{margin:0;padding:0;box-sizing:border-box}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:#f5f5f5;padding:20px}.app-container{max-width:1200px;margin:0 auto;background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;padding:30px}.app-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}.admin-link{background:#007bff;color:#fff;padding:10px 20px;border-radius:4px;text-decoration:none;font-size:14px;transition:background .2s;white-space:nowrap;margin-top:10px}.admin-link:hover{background:#0056b3}h1{color:#333;margin-bottom:10px;font-size:28px}.subtitle{color:#666;margin-bottom:30px;font-size:14px}h3{color:#444;font-size:18px;margin-bottom:8px}.field-description{color:#777;font-size:13px;margin-top:5px;font-style:italic}.form-section{margin-bottom:25px}.form-section label{display:block;margin-bottom:8px;font-weight:600;color:#333;font-size:14px}.form-section input,.form-section textarea{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;font-family:inherit;transition:border-color .2s}.form-section input:focus,.form-section textarea:focus{outline:none;border-color:#4caf50}.authors-list{display:flex;flex-direction:column;gap:10px}.author-item{display:flex;gap:10px;align-items:center}.author-item input{flex:1}.btn{padding:8px 16px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.btn-secondary{background:#f0f0f0;color:#333}.btn-secondary:hover{background:#e0e0e0}.btn-danger{background:#f44336;color:#fff}.btn-danger:hover{background:#d32f2f}.btn-primary{background:#4caf50;color:#fff;padding:10px 24px;font-size:16px}.btn-primary:hover{background:#45a049}.btn-primary:disabled{background:#ccc;cursor:not-allowed}.sections-container{margin-top:30px}.section-card{background:#f9f9f9;border:1px solid #e0e0e0;border-radius:6px;padding:20px;margin-bottom:15px;transition:box-shadow .2s}.section-card.dragging{box-shadow:0 4px 12px #00000026;background:#fff}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-title-input{flex:1;margin-right:10px;font-weight:600}.section-controls{display:flex;gap:8px;align-items:center}.drag-handle{cursor:grab;padding:5px 10px;color:#666;font-size:18px;-webkit-user-select:none;user-select:none}.drag-handle:active{cursor:grabbing}.ckeditor-wrapper{margin-top:15px}.address-editor{margin-top:10px}.address-editor .ck-editor__editable{min-height:80px}.formatting-controls{margin:15px 0;padding:15px;background:#f9f9f9;border:1px solid #e0e0e0;border-radius:4px}.formatting-group{margin-bottom:15px}.formatting-group:last-child{margin-bottom:0}.formatting-group h4{margin:0 0 10px;font-size:14px;color:#555;font-weight:600}.format-row{display:flex;gap:15px;margin-bottom:10px;flex-wrap:wrap}.format-row:last-child{margin-bottom:0}.format-field{flex:1;min-width:100px}.format-field label{display:block;margin-bottom:5px;font-size:12px;font-weight:500;color:#666}.format-field input[type=number],.format-field select{width:100%;padding:6px 8px;border:1px solid #ddd;border-radius:3px;font-size:13px;background:#fff}.format-field input[type=number]:focus,.format-field select:focus{outline:none;border-color:#4caf50}.checkbox-field{display:flex;align-items:center;min-width:auto}.checkbox-field label{display:flex;align-items:center;margin:0;cursor:pointer;font-weight:400}.checkbox-field input[type=checkbox]{margin-right:6px;cursor:pointer}.ck-editor__editable{min-height:200px}.add-section-btn{margin-top:15px}.submit-section{margin-top:40px;padding-top:30px;border-top:2px solid #e0e0e0;text-align:center}.error-message{background:#ffebee;color:#c62828;padding:12px;border-radius:4px;margin-bottom:20px;border-left:4px solid #c62828}.success-message{background:#e8f5e9;color:#2e7d32;padding:12px;border-radius:4px;margin-bottom:20px;border-left:4px solid #2e7d32}.loading{display:inline-block;margin-left:10px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner{border:2px solid #f3f3f3;border-top:2px solid #4CAF50;border-radius:50%;width:16px;height:16px;animation:spin 1s linear infinite;display:inline-block;vertical-align:middle}
