* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6f8;
  color: #333;
}
header {
  background: #FF9800;
  color: white;
  padding: 15px 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
header h1 { font-size: 20px; margin-bottom: 8px; }
header nav a {
  color: white;
  text-decoration: none;
  margin-right: 20px;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
}
header nav a:hover, header nav a.active {
  background: rgba(255,255,255,0.25);
}

.container {
  display: flex;
  gap: 20px;
  padding: 20px;
  max-width: 1500px;
  margin: 0 auto;
}
.sidebar {
  width: 340px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: fit-content;
}
.sidebar h3 {
  margin: 15px 0 8px;
  color: #FF9800;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}
.sidebar label {
  display: block;
  font-weight: bold;
  font-size: 12px;
  margin: 8px 0 3px;
  color: #555;
}
.sidebar input, .sidebar select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
}
.input-row { display: flex; gap: 5px; }

.btn-group { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; }
button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  transition: 0.2s;
}
.btn-green { background: #4CAF50; color: white; }
.btn-green:hover { background: #388E3C; }
.btn-red { background: #F44336; color: white; }
.btn-red:hover { background: #D32F2F; }
.btn-orange { background: #FF9800; color: white; }
.btn-orange:hover { background: #F57C00; }
.btn-blue { background: #2196F3; color: white; padding: 8px 12px; }

.main { flex: 1; }
.preview-area {
  background: white;
  border: 2px dashed #ccc;
  border-radius: 10px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 15px;
}
.preview-area img { max-width: 100%; max-height: 300px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
th, td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 12px;
}
th {
  background: #f0f0f0;
  font-weight: bold;
  color: #333;
}
tr:hover { background: #f9f9f9; }
tr.selected { background: #BBDEFB !important; }
td button { padding: 4px 8px; font-size: 11px; margin: 1px; }

.actions-bar {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}
.radio-group { display: flex; gap: 20px; padding: 10px; background: #f9f9f9; border-radius: 6px; }
.radio-group label { font-weight: normal; }