/* Two-Column Layout */
#ep500-app.ep500-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #f4f7fb;
  min-height: 100vh;
  box-sizing: border-box;
  align-items: start;
}

.ep500-left-col,
.ep500-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ep500-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  padding: 20px;
  overflow-y: auto;
}

/* Ensure preview panel takes remaining space nicely */
.ep500-preview-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ep500-preview-panel iframe {
  flex: 1;
}

/* Fields */
.ep500-field {
  margin-bottom: 12px;
}
.ep500-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #555;
}
.ep500-field input,
.ep500-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}

/* Template Grid */
.ep500-template-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.ep500-category h4 {
  margin: 0 0 5px;
  font-size: 13px;
  color: #777;
  text-transform: uppercase;
}
.ep500-tpl-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ep500-tpl-btn {
  background: #f0f2f5;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}
.ep500-tpl-btn.active {
  background: #1a73e8;
  color: #fff;
}
.ep500-tpl-btn:hover {
  background: #e0e5ec;
}

/* Preview Frame */
#ep500-preview-frame {
  border: none;
  border-radius: 8px;
  background: #fff;
}

/* Canva section */
.ep500-canva-section {
  /* same as before */
}

/* Export Buttons */
.ep500-export-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ep500-export-buttons button {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
  white-space: nowrap;
}
.ep500-export-buttons button:hover {
  background: #1558b0;
}

/* Mobile: single column */
@media (max-width: 768px) {
  #ep500-app.ep500-two-col {
    grid-template-columns: 1fr;
  }
}