body {
  font-family: Arial, sans-serif;
  background-image: url(../img/empty-hallway-background.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  height: calc(80vh - 20px);
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* Header */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
}

.header-button {
  display: flex;
  gap: 10px;
}

.header-logo {
  height: 40px;
  width: auto;
}

/* Button */

button {
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.button {
  max-width: 100%;
  min-width: 40px;
  color: #252537;
}

.btn-login,
.btn-create {
  background-color: #252537;
  color: #fff;
}

.btn-out,
.button--edit {
  border: 2px solid #252537;
  transition: 0.3s;
}

.button--edit:hover {
  background-color: #252537;
  color: #fff;
}

.button--delete {
  transition: color 0.3s ease;
}

.button--delete:hover {
  color: red;
}

/* Створенні картки на екрані */

#textBoard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

#NoItems {
  display: none;
}

.card {
  position: relative;
  height: max-content;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  /* position: relative; */
  background-color: rgb(255, 255, 255);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px;
}

.card-nav {
  display: flex;
  justify-content: space-between;
}

.card-nav .show-more {
  white-space: nowrap;
}

.card-nav button {
  flex: 1;
  margin: 0 5px;
}

.additional-details {
  margin-bottom: 10px;
}

.hidden {
  display: none;
}

p {
  padding: 10px 5px;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
}

/* Фільтр */
#filter-container {
  padding-inline: 100px;
}

/* Модальне вікно: Створити візит */
#createModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.create-modal__content {
  position: relative;
  width: 80%;
  max-width: 400px;
  max-height: 500px;
  background-color: #fff;
  padding: 0 20px 20px 20px;
  border-radius: 5px;
  overflow: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.create-modal__content::-webkit-scrollbar {
  width: 8px;
}

.create-modal__content::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 5px;
}

.create-modal__content::-webkit-scrollbar-thumb {
  background: #252537;
  border-radius: 5px;
}

.create-modal__content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.create-modal__header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
}

.create-modal__title {
  font-size: 18px;
  color: #252537;
}

/* Кнопка закриття Modal */
.close {
  align-self: end;
  cursor: pointer;
  font-size: 24px;
  color: #333;
}

.close img {
  width: 30px;
  height: 30px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

textarea {
  height: 100px;
  resize: none;
}

.create-modal__btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  background-color: #252537;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

#uniqueFields label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

/* Button "Показати більше" */
.show-more {
  background-color: #252537;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
}

/* Button "Редагувати" */
.edit {
  color: #000;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
}

/* Button Видалення */
.delete {
  position: absolute;
  top: 0;
  right: 4px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
}

/*  */
/* Основні стилі форми */

.form-title {
  font-size: 16px;
  text-align: center;
  font-weight: bold;
  margin-top: 30px;
}

.input-field,
.submit-btn {
  border: none;
  padding: 15px;
  margin-bottom: 10px;
}

input:focus,
textarea:focus {
  outline: none;
  border-radius: 4px;
  fill: #fff;
  box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.21);
}

.form {
  width: 320px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}



/* Кнопка закриття */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.close-btn:hover {
  color: #ff0000;
}

/* Стилі для міток */
label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Стилі для полів вводу */
.login-in_input {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border 0.3s ease-in-out;
}

.login-in_input:focus {
  border-color: #252537;
  outline: none;
  box-shadow: 0 0 5px #252537;
}

/* Стилі для кнопок */
.btn {
  font-weight: bold;
  transition: background 0.3s ease-in-out;
}

.btn_in {
  background: rgb(37, 37, 54);
  color: #fff;
}

.btn_in:hover {
  background: #0056b3;
}

.btn_reg {
  background: rgb(150, 150, 150);
  color: #fff;
}

.btn_reg:hover {
  background: #1e7e34;

}

.alert__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  padding-block: 5px;
  padding-inline: 10px;
  background-color: #ffffff;
  border-radius: 5px;
  border: 1px solid #000000;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.alert__text {
  font-size: 14px;

}

.dragzone {
  position: relative;
}