.result-box, .result-card {
  max-width: 420px;
  margin: 40px auto;
  background: var(--bg-card);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
}

.result-box h2,
.result-card h2 {
  margin-bottom: 16px;
}

.result-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 16px;
}

.result-box button,
.ai-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
}

.result-card ul {
  list-style: none;
  padding: 0;
  text-align: right;
}

.result-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.error {
  background: #fddede;
  color: #a10000;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ===== Home Page ===== */

.container {
  padding: 16px;
  padding-bottom: 80px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

.card span {
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
}

.home-news h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.news-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.news-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.news-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.news-card a {
  text-decoration: none;
  color: inherit;
}
/* ===== News ===== */

.page-title {
  font-size: 20px;
  margin-bottom: 16px;
}

.article-page h1 {
  font-size: 22px;
  margin-bottom: 10px;
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 12px;
}
/* ===== Materials ===== */

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.filters select,
.filters button {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.material-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.material-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.material-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.material-meta {
  font-size: 13px;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.material-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
}
