/* Globalne style dla całej witryny */
body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: #f0f2f5;
  color: #333;
}

/* Style dla kontenera logowania (login.php) */
.login-container {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 350px;
  margin: 50px auto;
}

/* Nagłówki */
h1, h2, h3 {
  margin: 0 0 20px 0;
}

/* Style formularzy */
form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"] {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 16px;
}

/* Style przycisków */
button, .btn-submit, .btn-delete {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit {
  background: #28a745;
  color: #fff;
}

.btn-submit:hover {
  background: #218838;
}

.btn-delete {
  background: #dc3545;
  color: #fff;
}

.btn-delete:hover {
  background: #c82333;
}

button:hover {
  opacity: 0.9;
}

/* Style linków */
a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

/* Komunikaty błędów i ogólne komunikaty */
.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  color: #842029;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

.message {
  background-color: #d1e7dd;
  border: 1px solid #badbcc;
  color: #0f5132;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

/* Style nagłówka i nawigacji (używane np. w dashboard.php) */
header {
  background: #007bff;
  color: #fff;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-item {
  margin: 0 15px;
}

.nav-item a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  transition: background 0.3s;
}

.nav-item a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.nav-logout .logout-button {
  background: #dc3545;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-logout .logout-button:hover {
  background: #c82333;
}

/* Style głównej zawartości dashboardu */
.dashboard-content {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Sekcje na dashboardzie */
.section {
  display: none;
  margin-bottom: 20px;
}

.section.active {
  display: block;
}

/* Grupy formularza w dashboardzie */
.form-group {
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.input-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.input-group input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

/* Style dla listy udostępnionych użytkowników */
.shared-list {
  margin-top: 20px;
}

.shared-list h3 {
  margin-bottom: 10px;
}


.box {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #fff;
}

button, .btn-submit, .btn-delete {
    display: inline-block;
    width: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background: #f2f2f2;
}
