/* Основни настройки */
:root {
  --bg: #f9fafb;
  --card-bg: #fff;
  --accent: #0078ff;
  --accent-hover: #005fcc;
  --text: #222;
  --muted: #666;
  --border: #e0e0e0;
  --radius: 12px;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 1rem;
  line-height: 1.6;
}

/* Заглавия */
h2, h3, h4 {
  margin-top: 1.2em;
  color: var(--accent);
}

/* Таблици */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f3f4f6;
  font-weight: 600;
}

tr:hover {
  background: #f8fafc;
}

/* Бутони */
.button, a.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 120, 255, 0.2);
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

/* Карти за анализ */
div.analysis-card {
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

/* Формa резултати */
.form span {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  margin-right: 4px;
  font-weight: bold;
  color: #fff;
}
.W { background: #16a34a; } /* зелено */
.D { background: #f59e0b; } /* жълто/оранжево */
.L { background: #dc2626; } /* червено */

/* Метаданни */
.small {
  font-size: 0.9em;
  color: var(--muted);
}

/* Flex box за двата отбора */
.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.flex > div {
  flex: 1 1 300px;
  background: var(--card-bg);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Responsive таблица */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 1rem;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 0.75rem;
  }
  td {
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  td::before {
    content: attr(data-label);
    font-weight: bold;
    color: var(--muted);
  }
}

/* Линкове */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
