* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  background-color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
}

.wpc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wpc-options-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.wpc-options-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 12px;
}

.wpc-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.wpc-radio-item {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  user-select: none;
}

.wpc-radio-item input[type="radio"] { 
  display: none !important; 
}

.wpc-radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  transition: all 0.2s ease;
  display: inline-block;
}

.wpc-radio-item input[type="radio"]:checked + .wpc-radio-custom {
  border-color: #2563eb;
  background-color: #2563eb;
}

.wpc-radio-item input[type="radio"]:checked + .wpc-radio-custom::after {
  content: "";
  position: absolute;
  top: 5px; 
  left: 5px;
  width: 4px; 
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
}

.wpc-dual-screen {
  display: flex;
  gap: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .wpc-dual-screen { flex-direction: column; }
}

.wpc-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

.wpc-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
}

.wpc-pane-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}

.wpc-pane textarea {
  width: 100%;
  height: 380px;
  padding: 14px;
  border: none;
  outline: none;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #0f172a;
  background: #ffffff;
}

.wpc-pane-right textarea { 
  background: #fafafa; 
}

.wpc-pane textarea:focus { 
  box-shadow: inset 0 0 0 2px #2563eb; 
}

.wpc-pane-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.wpc-stats {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.wpc-status-msg {
  font-size: 0.8rem;
  font-weight: 600;
  color: #16a34a;
}

.wpc-file-upload-btn input[type="file"] { 
  display: none !important; 
}

.wpc-action-group { 
  display: flex; 
  gap: 8px; 
}

.wpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.wpc-btn-sm { padding: 5px 12px; font-size: 0.82rem; }
.wpc-btn-primary { background: #2563eb; color: #ffffff; }
.wpc-btn-primary:hover { background: #1d4ed8; }
.wpc-btn-secondary { background: #e2e8f0; color: #334155; }
.wpc-btn-secondary:hover { background: #cbd5e1; }
.wpc-btn-outline { background: #ffffff; color: #2563eb; border-color: #2563eb; }
.wpc-btn-outline:hover { background: #eff6ff; }