/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}
body {
  background: #f4f6f9;
  color: #333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
} /* Karta (logowanie, dashboard) */
.container,
.login-container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  text-align: center;
  transition: transform 0.2s ease-in-out;
} /* Usuń efekt hover dla całej karty */
.container:hover,
.login-container:hover {
  transform: none;
}
h1,
h2,
h3 {
  margin-bottom: 1.5rem;
  color: #222;
} /* Formularze logowania */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
label {
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
}
input[type="email"],
input[type="password"],
input[type="text"] {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out;
}
input:focus {
  border-color: #4a90e2;
  outline: none;
} /* Przyciski */
button {
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
}
button.primary {
  background: #4a90e2;
  color: #fff;
}
button.primary:hover {
  background: #357abd;
  transform: translateY(-2px);
}
button.full-width {
  width: 100%;
}
button[type="submit"] {
  background: #4a90e2;
  color: #fff;
}
button[type="submit"]:hover {
  background: #357abd;
  transform: translateY(-2px);
}
button.link-btn {
  background: none;
  color: #4a90e2;
  text-decoration: underline;
  font-size: 0.9rem;
  padding: 0;
  cursor: pointer;
}
button.link-btn:hover {
  color: #2d5f9e;
} /* Opcje logowania */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
} /* Komunikaty */
.error {
  margin-top: 0.5rem;
  color: #d9534f;
  font-size: 0.9rem;
}
.success {
  margin-top: 0.5rem;
  color: #28a745;
  font-size: 0.9rem;
} /* Dashboard */
.dashboard-header {
  margin-bottom: 2rem;
}
.dashboard-header p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #555;
}
.dashboard-content {
  margin-top: 1rem;
  text-align: center;
} /* Menu sekcji */
.menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.menu-btn {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  background: #f4f6f9;
  color: #333;
  transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.menu-btn:hover {
  background: #e0e7ef;
  transform: translateY(-2px);
} /* Responsywność */
@media (max-width: 600px) {
  .container,
  .login-container {
    padding: 1.5rem;
    max-width: 90%;
  }
  .menu-btn {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
} /* USTAWIENIA */ /* Modal zmiany hasła */
#password-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#password-modal .modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#password-modal input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
#password-modal #modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 1.2rem;
} /* Komunikaty błędów i sukcesu */
.error-msg {
  color: #d9534f;
  font-size: 0.85rem;
  text-align: left;
  display: block;
  margin-top: 2px;
}
.success-msg {
  color: #28a745;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
  text-align: center;
} /* Odstęp między przyciskami w dashboard-content */
.dashboard-content button {
  margin-bottom: 1rem;
} /* Szersza tabela */
.container.wide {
  max-width: 1000px;
} /* Tabela użytkowników */
.users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.users-table th,
.users-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
  vertical-align: middle; /* środek komórki */
  position: relative; /* dla przesunięcia przycisku */
}
.users-table th {
  background: #f4f4f4;
} /* Nieaktywni użytkownicy */
.inactive-row {
  background: #f9f9f9;
  color: #999;
} /* Wszystkie przyciski akcji w tabeli (Archiwizuj, Przywróć, zablokowane) */
.users-table td .action-btn {
  display: inline-flex;
  align-items: center; /* wyśrodkowanie pionowe tekstu w przycisku */
  justify-content: center; /* wyśrodkowanie poziome */
  height: 36px; /* stała wysokość przycisku */
  line-height: normal;
  padding: 0 1rem;
  position: relative;
  top: 25%; /* przesunięcie w dół o 25% wysokości */
  transform: translateY(25%); /* uwzględnia przesunięcie */
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
} /* Hover dla przycisków aktywnych */
.users-table td .action-btn:hover {
  background: #0056b3;
  color: #fff;
  transform: translateY(25%) scale(1.03); /* zachowuje przesunięcie */
} /* Konkretny styl akcji */
.archive-btn {
  background: #d9534f;
  color: #fff;
}
.restore-btn {
  background: #28a745;
  color: #fff;
}
.disabled-btn {
  background: #ccc;
  color: #666;
  cursor: not-allowed; /* dla przycisku nieaktywnego */
} /* Modal dodawania użytkownika */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal .modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 1.2rem;
}
