/* === Γενικές Ρυθμίσεις === */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 1rem;
}

header {
  background: #007bff;
  color: white;
  padding: 1rem;
  text-align: center;
}

/* === Κοινό Μενού Πλοήγησης === */
nav.main-nav {
  background-color: #007bff;
  color: white;
  padding: 1rem;
}

nav.main-nav .menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  text-align: right;
}

nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

nav.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav.main-nav a:hover {
  text-decoration: underline;
}

/* === Responsive για κινητά === */
@media (max-width: 768px) {
  nav.main-nav .menu-toggle {
    display: block;
  }

  nav.main-nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #007bff;
    padding: 0.5rem;
  }

  nav.main-nav ul.show {
    display: flex;
  }
}

/* === Container === */
.container {
  max-width: 1000px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* .container {
      padding: 2rem;
      max-width: 800px;
      margin: auto;
      background: white;
      border-radius: 8px;
      margin-top: 1.5rem;
    } */

h2 {
  text-align: center;
}

.token-box {
  background: #e9f7ef;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

th,
td {
  border: 1px solid #ccc;
  padding: 0.8rem;
  text-align: center;
}

th {
  background: #f0f0f0;
}

.paypal-button {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: center;
  }
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 90%;
}

button {
  background: #28a745;
  color: white;
  padding: 0.8rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #218838;
}

button#predictBtn {
  width: 60%;
  display: block;
  margin: 16px auto;
  text-align: center;
}

.token-table {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
}

.token-table th,
.token-table td {
  padding: 0.7rem 0.2rem;
  border: 1px solid #ddd;
  text-align: center;
}

.token-table th {
  background-color: #f8f9fa;
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .container {
    padding: 1rem;
  }

  .token-table,
  .token-table thead,
  .token-table tbody,
  .token-table th,
  .token-table td,
  .token-table tr {
    display: block;
    width: 98%;
  }

  .token-table thead tr {
    display: none;
  }

  .token-table tr {
    margin-bottom: 1rem;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.5rem;
  }

  .token-table td {
    text-align: right;
    padding-left: 1%;
    position: relative;
  }

  .token-table td::before {
    position: absolute;
    left: 1rem;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    text-align: left;
  }

  .token-table td:nth-of-type(1)::before {
    content: "Πακέτο";
  }
  .token-table td:nth-of-type(2)::before {
    content: "Τιμή";
  }
  .token-table td:nth-of-type(3)::before {
    content: "Προβλέψεις";
  }
  .token-table td:nth-of-type(4)::before {
    content: "Κέρδος";
  }
}

/* .container {
      max-width: 700px;
      margin: auto;
      background: white;
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    } */

/* === Τίτλοι === */
h2 {
  text-align: center;
  color: #333;
  font-size: 1.5rem;
}

/* === Πλήκτρα === */
button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin: 1rem 0;
}

/* === Πίνακες === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background-color: #fff;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.6rem;
  border: 1px solid #ddd;
  text-align: center;
  white-space: nowrap;
}

thead {
  background-color: #eef2f7;
}

/* === Mobile-Friendly Tables === */
@media (max-width: 600px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead tr {
    display: none;
  }

  tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.5rem;
    background: #f9f9f9;
  }

  td {
    text-align: right;
    padding-left: 34%;
    position: relative;
  }

  td::before {
    position: absolute;
    left: 0.5rem;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    text-align: left;
  }

  td:nth-of-type(1)::before {
    content: "Κλήρωση";
  }
  td:nth-of-type(2)::before {
    content: "R1";
  }
  td:nth-of-type(3)::before {
    content: "R2";
  }
  td:nth-of-type(4)::before {
    content: "R3";
  }
  td:nth-of-type(5)::before {
    content: "Χρώματα";
  }
  td:nth-of-type(6)::before {
    content: "O/U";
  }
  td:nth-of-type(7)::before {
    content: "Μ/Ζ";
  }
}

/* === Συνδυαστική Ανάλυση Responsive === */
@media (max-width: 600px) {
  .combo-table {
    display: none;
  }

  .combo-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  .combo-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background: #f9f9f9;
  }

  .combo-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
  }

  .combo-card p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
  }
}

@media (min-width: 601px) {
  .combo-cards {
    display: none;
  }

  .combo-table {
    display: table;
  }
}

/* === Μπλοκ Μεταδεδομένων και Σφαλμάτων === */
.meta {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
}

.error {
  color: red;
  margin-top: 1rem;
}

/* === Πρόβλεψη Grid === */
.prediction-grid {
  display: grid;
  gap: 0.5em;
  background: #f5faff;
  padding: 1em;
  border-radius: 12px;
  font-size: 1.1em;
  text-align: center;
}

.prediction-grid .draw-id {
  font-weight: bold;
  grid-column: span 3;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.prediction-grid .row {
  display: contents;
}

.prediction-grid .row div {
  border: 1px solid #ccc;
  padding: 0.5em;
  border-radius: 8px;
  background: white;
}
.evaluation {
  background: #f0f8ff;
  padding: 0.8rem;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  font-weight: 500;
}

#evaluation {
  margin-top: 2em;
  background: #fdfdfd;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.evaluation-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-family: sans-serif;
}

.evaluation-table th,
.evaluation-table td {
  border: 1px solid #eeebeb;
  padding: 0.5rem;
  text-align: center;
}

.evaluation-table th {
  background-color: #ecf0f5;
  font-weight: bold;
}

.row-even {
  background-color: #f0f8ff;
}

.row-odd {
  background-color: #ffffff;
}

.group-odd {
  background-color: #faf2f2;
}

.group-even {
  background-color: #f6fafd;
}

/* Responsive */
@media (max-width: 768px) {
  .evaluation-table,
  .evaluation-table thead,
  .evaluation-table tbody,
  .evaluation-table th,
  .evaluation-table td,
  .evaluation-table tr {
    display: block;
  }

  .evaluation-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 0.5rem;
  }

  .evaluation-table td {
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  .evaluation-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.5rem;
    font-weight: bold;
    text-align: left;
  }

  .evaluation-table td:nth-of-type(1)::before {
    content: "Κλήρωση";
  }
  .evaluation-table td:nth-of-type(2)::before {
    content: "Τροχός";
  }
  .evaluation-table td:nth-of-type(3)::before {
    content: "Πρόβλεψη";
  }
  .evaluation-table td:nth-of-type(4)::before {
    content: "Πραγματικό";
  }
  .evaluation-table td:nth-of-type(5)::before {
    content: "✅";
  }
}
