* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1117;
  color: #e4e4e7;
  min-height: 100vh;
}

header {
  background: #16181d;
  padding: 18px 24px;
  border-bottom: 1px solid #2a2d35;
  position: sticky;
  top: 0;
  z-index: 100;
}
header h1 { font-size: 20px; font-weight: 700; }

main { max-width: 900px; margin: 0 auto; padding: 20px 16px; }

/* Card */
.card {
  background: #16181d;
  border: 1px solid #2a2d35;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.card h2 { font-size: 16px; margin-bottom: 16px; color: #a1a1aa; font-weight: 600; }

/* Form */
.form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.flex-1 { flex: 1; }
.form-group.flex-2 { flex: 2; }
.form-group label { font-size: 12px; font-weight: 600; color: #71717a; text-transform: uppercase; letter-spacing: .5px; }

input, textarea, select {
  background: #1e2028;
  border: 1px solid #2a2d35;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e4e4e7;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #3b82f6;
}
textarea { resize: vertical; }
select { cursor: pointer; }

.btn-primary {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  width: 100%;
}
.btn-primary:hover { background: #2563eb; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

/* Toast */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #065f46;
  color: #d1fae5;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: fadeIn .2s ease;
}
.toast.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar select {
  padding: 8px 12px;
  font-size: 13px;
  min-width: 140px;
}
.count { font-size: 13px; color: #71717a; margin-left: auto; }

/* Feedback list */
.feedback-list { display: flex; flex-direction: column; gap: 10px; }

.feedback-item {
  background: #16181d;
  border: 1px solid #2a2d35;
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color .15s;
}
.feedback-item:hover { border-color: #3b82f6; }

.fi-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 8px; }
.fi-title { font-size: 15px; font-weight: 600; flex: 1; }
.fi-badges { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.badge-bug { background: #7f1d1d; color: #fca5a5; }
.badge-feature { background: #14532d; color: #86efac; }
.badge-improvement { background: #713f12; color: #fde68a; }
.badge-frage { background: #3b0764; color: #d8b4fe; }

.badge-tool { background: #1e3a5f; color: #93c5fd; }

.badge-new { background: #1e3a5f; color: #93c5fd; }
.badge-reviewed { background: #164e63; color: #67e8f9; }
.badge-planned { background: #3b0764; color: #d8b4fe; }
.badge-inprogress { background: #713f12; color: #fde68a; }
.badge-done { background: #14532d; color: #86efac; }
.badge-wontfix { background: #27272a; color: #a1a1aa; }

.fi-desc { font-size: 13px; color: #a1a1aa; line-height: 1.5; margin-bottom: 8px; white-space: pre-wrap; }
.fi-meta { display: flex; gap: 16px; font-size: 12px; color: #52525b; }

.loading, .empty { text-align: center; padding: 40px; color: #52525b; font-size: 14px; }
.hidden { display: none; }

/* Responsive */
@media (max-width: 600px) {
  .form-row { flex-direction: column; }
  .filter-bar { flex-direction: column; }
  .filter-bar select { width: 100%; }
  .fi-header { flex-direction: column; }
  main { padding: 12px 8px; }
}
