body,
html,
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 750px;
  margin: auto;
  padding: 30px;
  border-radius: 8px;
  font-size: 1.2rem;
  background: #1e1e1e;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

h1,
h2 {
  text-align: center;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #555;
}

input[type='text'],
input[type='number'],
textarea,
select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

input[type='file'] {
  padding: 5px 0;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #5cb85c;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  background-color: #4cae4c;
}

#responseContainer {
  margin-top: 20px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  display: none;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

#recordsContainer {
  margin-top: 40px;
}

#recordsTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#recordsTable th,
#recordsTable td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.loader {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#recordsTable th:nth-child(1),
#recordsTable td:nth-child(1),
#recordsTable th:nth-child(6),
#recordsTable td:nth-child(6) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body {
  background-color: #121212;
  color: #e0e0e0;
}

h1,
h2 {
  color: #ffffff;
}

label {
  color: #cccccc;
}

input[type='text'],
input[type='number'],
textarea,
select {
  background-color: #2c2c2c;
  color: #ffffff;
  border: 1px solid #444444;
  font-size: 1rem;
}

input[type='file'] {
  background-color: #2c2c2c;
  color: #ffffff;
  border: 1px solid #444444;
}

button {
  background-color: #bb86fc;
  font-size: 1.2rem;
}

button:hover {
  background-color: #9a67ea;
}

#responseContainer {
  background: #1e1e1e;
  color: #e0e0e0;
}

#formattedResponseContainer {
  background: #1e1e1e;
  color: #e0e0e0;
}

#recordsTable th,
#recordsTable td {
  border: 1px solid #333333;
}

#recordsTable th {
  background-color: #333333;
  color: #ffffff;
}

#recordsTable img {
  max-width: 200px;
  height: auto;
  display: block;
}

/* #recordsTable tbody tr:nth-child(odd) {
  background-color: #212121;
} */

#recordsTable tbody tr:nth-child(odd) {
  background-color: #202020; /* Cięższy kolor dla lepszej widoczności */
}

#recordsTable tbody tr:nth-child(even) {
  background-color: #191919; /* Lżejszy kolor */
}

pre {
  font-size: 0.8rem;
}

ul,
ol,
p {
  margin: 10px 0;
}

/* Drag-and-Drop Area */
#drop-area {
  border: 2px dashed #cccccc;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
  color: #cccccc;
  background-color: #2c2c2c;
}

#drop-area.dragover {
  background-color: #444444;
  color: #ffffff;
  border-color: #3498db;
}

/* Image Preview */
#imagePreview img {
  max-width: 300px;
  height: auto;
  margin-top: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#error {
  color: red;
  margin-bottom: 10px;
}

.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 20px;
  background: #1e1e1e;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.login-container button {
  /* width: 100%; */
  margin: 0 auto;
  display: block;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-container .form-group {
  margin-bottom: 15px;
}

.login-container input[type='password'] {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid #444444;
  border-radius: 4px;
  background-color: #2c2c2c;
  color: #ffffff;
}

.error {
  color: red;
  text-align: center;
  margin-bottom: 10px;
}
