/* RESET I PODSTAWY */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

h1, h2, h3 {
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #000;
}

/* NAGŁÓWEK I STOPKA */
.header,
.footer {
  background-color: #333;
  color: white;
  text-align: center;
}

.header {
  padding: 15px;
  font-size: 20px;
}

.footer {
  padding: 10px;
  font-size: 14px;
  margin-top: 20px;
}

/* KONTENER GŁÓWNY */
.container {
  padding: 10px;
}

/* MENU */
.menu {
  list-style: none;
  padding: 0;
}

.menu li {
  margin: 5px 0;
}

.menu li a {
  display: block;
  padding: 10px;
  text-decoration: none;
  background: #f0f0f0;
  color: #000;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.menu li a:hover {
  background: #d0d0d0;
}

/* KANWA */
canvas {
  width: 95%;
  height: auto;
  border: 1px solid black;
  margin: auto;
  display: block;
}

/* MAPA */
#map {
  width: 100%;
  height: 400px;
  margin: 5px auto;
}

/* TOOLTIP */
#tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid black;
  font-size: 12px;
  padding: 5px;
}

/* SEKCJE */
.sekcja-ogolna {
  background: #f9f9f9;
  padding: 10px;
  margin: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.sekcja_inne button {
  margin-top: 8px;
  margin-bottom: 12px;
}

.sekcja-ramka {
  border: 1px solid #ccc; 
  padding: 1em; 
  border-radius: 8px; 
  background-color: #f9f9f9;
}

/* FORMULARZE I PRZYCISKI */
input, select, button {
  font-family: monospace;
  font-size: 1rem;
  padding: 0.4em 0.6em;
  border: 1px solid #222;
  background: #fff;
  color: #111;
}

button {
  cursor: pointer;
  font-weight: bold;
  background: none;
  transition: background 0.2s, color 0.2s;
}

button:hover:not(:disabled) {
  background: #111;
  color: #fafafa;
}

button:disabled {
  border-color: #999;
  color: #999;
  cursor: not-allowed;
}

/* PRZYCISKI SPECJALNE */
.button,
.close-btn {
  background: #3399cc;
  color: white;
  border-radius: 5px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

.button:hover,
.close-btn:hover {
  background: #0056b3;
}

.removeRowButton {
  background: grey;
  color: white;
  padding: 5px 7px;
  border-radius: 5px;
  border: none;
}

.przegladaj-button {
  background: #607d8b;
  color: white;
  padding: 7px;
  border-radius: 5px;
  border: none;
}

.controls {
  text-align: center;
  margin: 20px;
}

.controls input,
.controls button {
  margin: 5px;
  padding: 5px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 400px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* TABELKI OGÓLNE */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 98%;
  max-width: 800px;
  margin-top: 0.6em;
  font-size: 0.8rem;
  font-family: monospace;
}

th, td {
  border: 1px solid #222;
  padding: 0.3em 0.6em;
  text-align: right;
}

th {
  background: #eee;
  font-weight: 700;
  text-align: center;
}

tr:nth-child(even) {
  background: #f3f3f3;
}

tr:hover {
  background: #e6f7ff;
  transition: background-color 0.3s;
}

/* TABELKI FLEX */
.tables-container-flex {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.table-box {
  width: 100%;
}


/* TABELKA: CZWÓRKA */
.tabele_inne {
  background: white;
  width: 80%;
  margin: 15px auto;
  padding: 5px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tabele_inne table {
  width: 100%;
  margin: 15px auto;
}

.tabele_inne th,
.tabele_inne td {
  padding: 8px 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.tabele_inne th {
  background: #f9f9f9;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85em;
  color: #333;
}

/* HELP IKONA */
.help-icon {
  display: inline-block;
  color: #007BFF;
  margin-left: 5px;
  cursor: pointer;
}

/* NOTYFIKACJA */
.notification {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: DodgerBlue;
  color: white;
  padding: 20px;
  font-size: 16px;
  border-radius: 5px;
  display: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.notification.show {
  display: block;
  opacity: 1;
}
