:root { --primary: #2563eb; --dark: #0f172a; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }
body { display: flex; min-height: 100vh; background: #e2e8f0; }
.sidebar { width: 320px; background: #fff; padding: 20px; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.sidebar h2 { font-size: 18px; margin-bottom: 5px; }
.sidebar p { font-size: 12px; color: #64748b; margin-bottom: 15px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 4px; }
.form-group input { width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 5px; }
.color-options { display: flex; gap: 8px; margin-top: 5px; }
.color-btn { width: 25px; height: 25px; border-radius: 50%; cursor: pointer; border: 1px solid #ccc; }
.preview-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 15px; }
.top-bar { width: 100%; max-width: 1050px; background: #1e293b; color: #fff; padding: 10px 15px; border-radius: 8px 8px 0 0; display: flex; justify-content: space-between; align-items: center; }
.device-btns button { background: #334155; color: #fff; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; margin-right: 5px; }
.device-btns button.active { background: var(--primary); }
.book-btn { background: #10b981; color: #fff; padding: 7px 14px; border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: bold; }
.template-frame { width: 100%; max-width: 1050px; height: 80vh; background: #fff; overflow-y: auto; border-radius: 0 0 8px 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.15); transition: 0.3s; }
.tpl-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; background: #fff; border-bottom: 1px solid #eee; }
.tpl-logo { font-size: 20px; font-weight: bold; color: var(--primary); }
.tpl-nav-links { display: flex; gap: 15px; font-size: 14px; }
.tpl-call-btn { background: var(--primary); color: #fff; padding: 7px 15px; border-radius: 20px; text-decoration: none; font-size: 13px; }
.tpl-hero { background: linear-gradient(135deg, var(--dark), var(--primary)); color: #fff; padding: 60px 30px; text-align: center; }
.tpl-hero h1 { font-size: 32px; margin-bottom: 10px; }
.tpl-hero p { font-size: 15px; margin-bottom: 20px; }
.btn-white { background: #fff; color: var(--dark); padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; margin: 5px; display: inline-block; }
.btn-wa { background: #25D366; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; margin: 5px; display: inline-block; }
.tpl-section { padding: 40px 30px; text-align: center; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 25px; }
.tpl-card { padding: 20px; background: #f8fafc; border-bottom: 3px solid var(--primary); text-align: left; border-radius: 8px; }
.tpl-contact { background: #f1f5f9; padding: 35px; text-align: center; }
.badge { background: #fff; padding: 10px 15px; border-radius: 6px; display: inline-block; margin: 5px; font-weight: bold; font-size: 13px; }
.tpl-footer { background: var(--dark); color: #ccc; text-align: center; padding: 15px; font-size: 12px; }

/* Mobile View Active */
.template-frame.mobile-view { max-width: 375px; border: 8px solid #1e293b; border-radius: 25px; }
.template-frame.mobile-view .tpl-nav-links { display: none; }
.template-frame.mobile-view .tpl-hero { padding: 35px 15px; }
.template-frame.mobile-view .tpl-hero h1 { font-size: 22px; }
.template-frame.mobile-view .tpl-grid { grid-template-columns: 1fr; }
.template-frame.mobile-view .badge { display: block; width: 100%; }
@media (max-width: 768px) { body { flex-direction: column; } .sidebar { width: 100%; } }
