body {
  display: flex;
  flex-direction: column;
}

nav {
  padding: 32px 32px 0 32px;
}

main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;

  width: 100%;

  padding: 32px;
}

.board {
  display: flex;
  flex-direction: column;
  gap: 18px;

  padding: 12px;
  width: 100%;
  background-color: #0515240f;

  min-height: 120px;
  max-width: 600px;

  border-radius: 8px;
}

.board-header {
  display: flex;
  align-items: center;
  gap: 22px;

  font-size: 12px;
  font-weight: 500;
}

.board-header-text {
  color: #6b6e76;
  text-transform: uppercase;
}

.board-header-icon {
  padding: 1px 12px;
  background-color: #0515240f;
  border-radius: 4px;
}

.board-tasks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  min-height: 100px;
}

#create-task {
  width: 100%;
  height: 40px;
  padding: 8px;
  margin-top: auto;

  border: none;
  border-radius: 4px;
  cursor: pointer;

  color: #505258;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  background-color: transparent;
}

#create-task:hover {
  background-color: #0b120e24;
}

#loader {
  position: absolute;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  background-color: white;
}

#loader span {
  display: block;
  width: 48px;
  height: 48px;

  border: 6px solid #505258;
  border-bottom-color: transparent;
  border-radius: 50%;

  animation: rotation 1s linear infinite;
}

.nav-btn {
  background: transparent;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

body:has(#theme-toggle:checked) .nav-btn {
  border-color: #555;
  color: white;
}

.users-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background-color: #f5f5f5;
  border-radius: 6px;
}

body:has(#theme-toggle:checked) .user-item {
  background-color: #3a3b3c;
  color: white !important;
}

body:has(#theme-toggle:checked) .user-item span {
  color: white !important;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Styl dla przycisku usuwania usera */
.delete-user-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.5;
}

.delete-user-btn:hover {
  opacity: 1;
  color: red;
}

.search-input {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  font-size: 14px;
  width: 200px;
  transition: width 0.2s ease-in-out;
}

.search-input:focus {
  border-color: #0077ff;
  width: 240px;
}

body:has(#theme-toggle:checked) .search-input {
  background-color: #3a3b3c;
  border-color: #555;
  color: white;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  main {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }
}
