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

body {
  background: #f5f5f5;
  font-family: Arial, sans-serif;
  padding: 20px;
}

.login-box,
table {
  background: white;
  padding: 20px;
  border-radius: 6px;
  width: 350px;
  margin: auto;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
}

button {
  padding: 10px 20px;
  background: #0066ff;
  color: white;
  border: none;
  cursor: pointer;
}

button.warning {
  background: #ff8800;
}

.error {
  color: red;
}

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

table th,
table td {
  border-bottom: 1px solid #ddd;
  padding: 8px;
}

.nav {
  margin-bottom: 20px;
}
.nav a {
  text-decoration: none;
  color: #333;
}

textarea {
  font-family: monospace;
  padding: 10px;
  border-radius: 4px;
}
.success {
  color: green;
}

/* ------------------- */
/*   RESPONSYWNOŚĆ     */
/* ------------------- */

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .login-box,
  table {
    width: 100%;
    margin: 0;
    padding: 15px;
  }

  .nav {
    text-align: center;
    margin-bottom: 15px;
  }
  .nav a {
    font-size: 16px;
  }

  /* Formularze – pełna szerokość */
  input[type='text'],
  input[type='password'],
  input[type='number'],
  input[type='time'],
  textarea {
    width: 100% !important;
    box-sizing: border-box;
  }

  button {
    width: 100%;
    margin-top: 10px;
  }

  /* ------------------------------ */
  /*    TABELA – WERSJA MOBILNA     */
  /* ------------------------------ */
  table thead {
    display: none; /* ukrywamy nagłówki */
  }

  table,
  table tbody,
  table tr,
  table td {
    display: block;
    width: 100%;
  }

  table tr {
    background: white;
    margin-bottom: 12px;
    border-radius: 6px;
    padding: 12px;
  }

  table td {
    border: none;
    padding: 5px 0;
  }

  table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
    color: #555;
  }

  /* Tekst w textarea – wygodne czytanie */
  textarea {
    height: 200px !important;
  }

  ul {
    padding-left: 15px;
  }
}
