/* table.css — Tabele, wykresy, spinner */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 98%;
  max-width: 800px;
  font-size: 0.8rem;
  margin-top: 0.6em;
}

th, td {
  border: 1px solid #222;
  padding: 0.3em 0.6em;
  text-align: right;
  font-family: monospace;
}

th {
  background-color: #eee;
  font-weight: 700;
  text-align: center;
}

#rezultat-table-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ccc;
}

/* Wykresy */
#chart-container {
  position: relative;
  margin-bottom: 2em;
  width: 100%;
}

#refractionChart,
#emperatureChart {
  width: 100%;
  height: 100%;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #999;
  border-top: 3px solid #111;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 0.6em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
