* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #f5f7fb;
  color: #222;
}

.header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header h1 {
  font-size: 20px;
}

.header p {
  font-size: 12px;
  color: #666;
}

.nav a,
.nav .link-btn {
  margin-left: 16px;
  text-decoration: none;
  color: #0077cc;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav a:hover,
.nav .link-btn:hover {
  text-decoration: underline;
}

.container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 12px;
}

.card,
.filter-card,
.list-card,
.answer-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}

h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

h3 {
  margin-top: 12px;
  margin-bottom: 8px;
}

.filters,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 13px;
  color: #555;
}

select,
input,
textarea {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

button,
.btn-secondary {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

button {
  background: #0077cc;
  color: #fff;
}

button:hover {
  background: #005fa3;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background: #cacaca;
}

.note,
.small-note {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
}

.list-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-title {
  font-weight: 600;
}

.list-item-meta {
  font-size: 12px;
  color: #666;
}

.meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.action-buttons {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: #777;
  padding: 10px 0 20px;
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .filters,
  .form-row {
    flex-direction: column;
  }
}
