  /*========= BASIC COLORS =========*/
  /*#b1aec0 -- világos -- háttér */
  /*#8d8b99 -- sötétebb -- háttér */
  /*#6a6873 -- sötét -- háttér */
  html,
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  body {
      display: flex;
      flex-direction: column;
      min-height: 100vh; /* teljes viewport magasság */
  }

  header {
    background: #333;
    color: white;
    padding: 10px 20px;
  }
  nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  nav ul li a {
    color: white;
    text-decoration: none;
  }
  nav ul li a:hover {
    text-decoration: underline;
  }

  footer {
    background: #eee;
    text-align: center;
    padding: 10px;
  }
  .title-container {
    display: flex;
    width: 100vw;
    height: auto;
    background: #6a6873;
    color: cyan;
    align-items: center;
    justify-content: center;
  }
  .sub-title-container {
    display: flex;
    width: 100%;
    align-items: start;
    justify-content: start;
    background-color: #8d8b99;
    padding-left: 20px;
  }
  .main-body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
  }
  .main-table-container {
      display: grid;
      grid-template-rows: auto auto; /* 2 sor */
      gap: 20px; /* távolság sorok és oszlopok között */
      padding: 20px;
  }

  .top-tables {
      display: grid;
      grid-template-columns: 1fr 1fr; /* 2 oszlop */
      gap: 20px;
  }

  .bottom-table {
      /* Teljes szélesség */
      margin: 0px;
  }
  .table {
          border-radius: 12px;
          overflow: hidden;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          border-collapse: separate;
          border-spacing: 0;
      }

      .table th, 
      .table td {
          border: none;
          vertical-align: middle;
          background-color: #b1aec0;
      }

      .small-table-container {
          padding: 12px;
          margin-bottom: 25px;
      }

      .table thead th {
          background-color: #8d8b99;
          font-weight: 600;
      }


  .main-simulation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .result-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    justify-content: center;
    padding: 10px;
  }

  .result-container > :nth-last-child(-n + 2) {
    grid-column: span 1; 
  }

  .result-card {
    display: grid;
    grid-template-rows: 10% 80% 10%; 
    width: 300px; 
    height: 400px;
    border: 1px solid #555;
    background-color: #f0f0f0;
    overflow: hidden;
    border-radius: 15px;
    border: none;
  }

  .card-header,
  .card-body,
  .card-footer {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }

  .card-header {
    background-color: #6a6873;
    color: white;
  }

  .card-body {
    background-color: #ddd;
  }

  .card-footer {
    background-color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
  }




  /* SIMULATION STYLES */


  .main-simulation-container{
    padding: 10px
  }

/* --- konténer a két tábla mellé helyezéséhez --- */
.tables-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 100px;
  align-items: start;
  margin-top: 20px;
}

/* --- már meglévő sim-table marad érintetlenül --- */
.sim-table {
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 14px;
}

.sim-table th {
  background-color: #2b3a55;
  color: #ffffff;
  text-align: left;
  font-weight: 600;
  padding: 8px 12px;
  white-space: nowrap;
}

.sim-table td {
  padding: 6px 12px;
  border-top: 1px solid #e2e2e2;
  white-space: nowrap;
}

.sim-table tr:nth-child(even) {
  background-color: #f5f6f8;
}

.sim-table tr:hover {
  background-color: #e9f2ff;
  transition: background 0.2s ease-in-out;
}
.sim-table tr.no-border td {
  border-top: none !important;
}
