:root {
  --primary: #0d6efd;
  --accent: #f4f6fb;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --table-head: #0b4870;
  --table-head-text: #f1f5f9;
  --table-row-alt: #f6f9ff;
}

html, body {
  height: 100%;
}

@font-face {
  font-family: "IRANYekan";
  font-style: normal;
  font-weight: 400;
  src: local("IRANYekan"), url("/fonts/iranyekan.woff2") format("woff2");
}

@font-face {
  font-family: "IRANYekan";
  font-style: normal;
  font-weight: 700;
  src: local("IRANYekan"), url("/fonts/iranyekan-bold.woff2") format("woff2");
}

body {
  display: flex;
  flex-direction: column;
  font-family: "IRANYekan", "Vazirmatn", "Segoe UI", "Tahoma", sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(13,110,253,0.08), transparent 30%),
              radial-gradient(circle at 90% 10%, rgba(16,185,129,0.1), transparent 30%),
              linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
  color: var(--text);
}
main {
  flex: 1;
}


.site-header {
  background: linear-gradient(135deg, #0d6efd, #0c4fb7);
  color: #f8fafc;
  padding: 16px 0;
  box-shadow: 0 5px 18px rgba(13, 110, 253, 0.25);
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: #e5e7eb;
}

.page-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.eyebrow {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.page-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.option-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fdfdfd;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.option-card:hover, .option-card:focus-within {
  border-color: rgba(13,110,253,0.6);
  box-shadow: 0 10px 20px rgba(13,110,253,0.1);
  transform: translateY(-2px);
}

.option-check {
  width: 1.3rem;
  height: 1.3rem;
  cursor: pointer;
  accent-color: var(--primary);
}

.option-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.option-id {
  color: var(--muted);
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 4px;
}

.category-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-accordion {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fdfefe;
  overflow: hidden;
}

.category-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(13,110,253,0.08), rgba(13,110,253,0.02));
}

.category-accordion summary::-webkit-details-marker {
  display: none;
}

.category-title {
  font-weight: 800;
  font-size: 1.1rem;
}

.category-body {
  padding: 12px 16px 16px;
  background: #fff;
}

.course-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fbfbff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.course-title {
  font-weight: 700;
}

.session-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.session-row {
  border: 1px dashed #d6d8e0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.18s ease;
}

.session-row:hover, .session-row:focus-within {
  border-color: rgba(13,110,253,0.5);
  box-shadow: 0 6px 14px rgba(13,110,253,0.08);
}

.session-check {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--primary);
}

.session-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: #eef2ff;
  color: #312e81;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid #c7d2fe;
}

.summary-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.emoji {
  font-size: 2.6rem;
}

.site-footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 16px 0;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-success {
  background-color: #16a34a;
  border-color: #16a34a;
}

.btn-success:hover {
  background-color: #15803d;
  border-color: #15803d;
}

/* جداول ادمین و گزارش */
.table thead th {
  background: var(--table-head);
  color: var(--table-head-text);
  border-color: #0b3d5c;
  font-weight: 700;
}

.table tbody tr:nth-child(even) {
  background: var(--table-row-alt);
}

.table tbody td {
  vertical-align: middle;
}
