* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
body {
  /* Profesjonalne, subtelne tło: delikatny gradient + akcent */
  background:
    radial-gradient(800px 400px at 85% -10%, var(--primary-50), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
  background-attachment: fixed;
}

:root {
  --primary: #4f46e5;        /* indigo-600 */
  --primary-50: #eef2ff;     /* indigo-50 */
  --success: #16a34a;        /* green-600 */
  --success-50: #f0fdf4;     /* green-50 */
  --danger: #dc2626;         /* red-600 */
  --danger-50: #fef2f2;      /* red-50 */
}

.gradient-line {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, #6d5cff 0%, #4a3ff0 50%, #3e357b 100%);
  border-radius: 5px;
}
.navbar {
  width: 100px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: column;
  align-items: column;
  padding: 10px;
  background-color: #685ebc;
  background-image: linear-gradient(
    180deg,
    #4a3ff0 0%,
    #3623e2 45%,
    #3e357b 100%
  );
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.1);
  border-radius: 0px 4rem 0px 0px;
  position: fixed;
  top: 0;
  left: 0;
}
.UserInfo-name {
  color: #ffffffdf;
}
.UserInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.UserInfo-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.UserInfo-name {
  font-size: 1.2rem;
  font-weight: bold;
}
.navbar-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
  flex: 1;
}
.navbar-menu-item {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  width: 100%;
  flex: 1;
}
.navbar-menu-item ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.navbar-menu-item li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.navbar-menu-item a {
  text-decoration: none;
  color: #ffffffa9;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  padding: 35px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.navbar-menu-item a:hover {
  background-color: #3a3a3aa0;
  color: #000;
}

.navbar-menu-item-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffffa9;
  line-height: 1;
  margin-top: -10px;
}
.navbar-menu-item i {
  font-size: 20px;
  color: #ffffffa9;
  line-height: 1;
}

.navbar-menu-item li:last-child {
  margin-top: auto;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 10px 20px;

  position: fixed;
  top: 0;
  left: 100px;
  right: 0;
  height: 70px;

  z-index: 10;
  font-size: 1.2rem;
}
.date {
  margin-left: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.godzina {
  font-weight: bold;
  color: #383636df;
}
.date-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #555151cb;
}
.butonHeader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  margin-left: 0;
}
.butonHeader ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-right: 0;
}
.butonHeader li {
  display: inline-flex;
  color: var(--primary);
}
.butonHeader li a {
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.butonHeader li a:hover {
  opacity: 0.85;
}
.content {
  display: flex;
  margin-top: 70px;
  margin-left: 100px;


}
.ListaZadan {
  background-color: #ebebebdc;
  width: 100%;
  max-height: 800px;
  margin-top: 20px;
  border-radius: 20px;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* blokuje wychodzenie dzieci poza kartę */
}
.MoreInfoTask {
  display: flex;
  background-color: #ebebebdc;
  width: 40%;
  max-height: 800px;
  margin-right: 40px;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.5);
  padding: 16px 20px;
  flex-direction: column;
  overflow: hidden;
}
.Task {
  display: flex;
  margin-left: 80px;
  gap: 20px;
  justify-content: center;

  width: calc(100% - 100px);
  min-height: calc(100vh - 70px);
}
/* Zapewnij elastyczny układ paneli w wierszu zadań na dużych ekranach */
.Task > .ListaZadan { flex: 1 1 60%; }
.headerListaZadan {
  margin-top: 50px;
  margin-left: 20px;
  margin-right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  width: 100%;
  position: relative;
}

.headerListaZadan h2 {
  margin: 0;
}

.butonHeaderListaZadan ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.butonHeaderListaZadan li {
  display: inline-flex;
}
.butonHeaderListaZadan {
  position: static;
  margin-left: auto;
  margin-right: 36px;
}
.addTask {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #4a3ff0;
  color: #4a3ff0;
  background-color: #ffffff;
  box-shadow: 0 6px 14px rgba(74, 63, 240, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  padding: 0;
  margin-right: 0;
  text-decoration: none;
}
.addTask:hover {
  background-color: #4a3ff0;
  color: #ffffff;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 8px 18px rgba(74, 63, 240, 0.35);
  text-decoration: none;
}
.addTask:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 10px rgba(74, 63, 240, 0.2);
}
.addTask:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 63, 240, 0.35), 0 6px 14px rgba(74, 63, 240, 0.25);
  text-decoration: none;
}
.button-sort {
display: block;
width: 100%;
display: inline-flex;
flex-direction: row;  


gap: 10px;
margin-top: 20px;
margin-left: 0;
}
.button-sort a {
  text-decoration: none;
  color: #383636df;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .navbar {
    width: 100%;
    height: 60px;
    flex-direction: row;
    justify-content: center;
    padding: 8px 12px;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 1rem 1rem 0 0;
    z-index: 11;
  }
  .UserInfo {
    display: none;
  }
  .navbar-menu {
    width: 100%;
    margin-top: 0;
  }
  .navbar-menu-item {
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-top: 0;
  }
  .navbar-menu-item ol {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
  }
  .navbar-menu-item li {
    margin-top: 0;
  }
  .navbar-menu-item li:last-child {
    margin-top: 0;
  }
  .navbar-menu-item a {
    padding: 10px;
    width: 40px;
    height: 40px;
  }
  .navbar-menu-item-text {
    display: none;
  }
  .header {
    left: 0;
    right: 0;
    height: 60px;
    padding: 8px 12px;
  }
  .content {
    margin-left: 0;
    margin-top: 60px;
    width: 100%;
    min-height: auto;
    padding: 10px 12px 80px; /* space for bottom navbar */
    box-sizing: border-box;
  }
  .ListaZadan {
    width: 100%;
    margin-left: 0;
    border-radius: 12px;
  }
  /* Układ sekcji zadań: kolumna na mobile */
  .Task {
    flex-direction: column;
    gap: 12px;
    margin-left: 0;
    width: 100%;
  }
  .Task > .ListaZadan { flex: unset; }
  .MoreInfoTask {
    width: 100%;
    margin-right: 0;
    max-height: 50vh;
    overflow-y: auto;
  }
  .container-task {
    padding: 8px 12px 16px;
    max-height: 45vh;
  }
  .button-sort ol { gap: 16px; flex-wrap: wrap; }
  .button-sort li { gap: 8px; }
  .button-sort-item { width: auto; padding: 6px 8px; }
  .serch { margin: 16px 12px 0; }
  .serch input { height: 38px; }
}

/* Responsive - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .navbar {
    width: 80px;
  }
  .header {
    left: 80px;
  }
  .content {
    margin-left: 80px;
    width: calc(100% - 80px);
  }
  .navbar-menu-item a {
    padding: 28px;
    width: 24px;
    height: 24px;
  }
  /* Układ na tablet: dwa panele obok siebie, proporcje 55/45 */
  .Task { gap: 16px; margin-left: 0; width: 100%; }
  .Task > .ListaZadan { flex: 1 1 55%; }
  .MoreInfoTask { width: 45%; margin-right: 0; }
  .serch { margin: 16px 6% 0; }
  .button-sort ol { gap: 24px; flex-wrap: wrap; }
}

/* Responsive - Laptop/Desktop */
@media (min-width: 1024px) {
  .navbar {
    width: 100px;
  }
  .header {
    left: 100px;
    height: 70px;
  }
  .content {
    margin-left: 100px;
    margin-top: 70px;
    width: calc(100% - 100px);
  }
}
.button-sort ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
} 
.button-sort li {

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 20px;
  width: 100%;
  flex: 1;
}
.button-sort input {
  display: none;
}
.button-sort label {
  cursor: pointer;
}
.button-sort-item {
  padding: 5px;
  width: 40%;}

/* Tylko napisy: kolory i hover dopasowane do liczników; liczniki bez zmian */
.button-sort label.button-sort-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Aktywne */
.button-sort label[for="active"] { color: var(--success); }
.button-sort label[for="active"]:hover { font-weight: 600; }
.button-sort li:has(#active:checked) label[for="active"] { font-weight: 600; margin-top: 4px; }

/* Zakończone */
.button-sort label[for="completed"] { color: var(--danger); }
.button-sort label[for="completed"]:hover { font-weight: 600; }
.button-sort li:has(#completed:checked) label[for="completed"] { font-weight: 600; margin-top: 4px; }

/* Wszystkie */
.button-sort label[for="all"] { color: var(--primary); }
.button-sort label[for="all"]:hover { font-weight: 600; }
.button-sort li:has(#all:checked) label[for="all"] { font-weight: 600; margin-top: 4px; }

/* Liczniki (count) – przywrócone obramowanie i kolory */
.button-sort .button-sort-item span[id$="-count"] {
  text-decoration: none;
}
#active-count {
  font-size: 1.2rem;
  font-weight: bold;
  background-color: var(--success-50);
  color: var(--success);
  border: 1px solid var(--success);
  border-radius: 50%;
  
  padding: 5px;
}
#completed-count {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--danger);
  background-color: var(--danger-50);
  border: 1px solid var(--danger);
  border-radius: 50%;
  padding: 5px;
}
#all-count {
  
  font-size: 1.2rem;
  font-weight: bold;
  background-color: var(--primary-50);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 50%;
  padding: 5px;
}
.serch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 20% 0 20%;
  position: relative;
  
}
.serch input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px  0px 0px 0px solid #494955;
  padding: 10px;
  margin: 0;
  background-color: transparent;
  padding-right: 42px; /* miejsce na ikonę po prawej */
  color: #383636df;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
}
.serch input::placeholder {
  color: #383636df;
  font-size: 1.2rem;
  font-weight: bold;
}
.serch button {
  display: none;
  cursor: pointer;
  /* przeniesiono ikonę do inputa */
}
/* Ikona lupy w inpucie */
.serch .search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
 
  border: none;

}
.container-task {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 20px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #4a3ff0 #ffffff;
}
/* WebKit scrollbar */
.container-task::-webkit-scrollbar { width: 8px; height: 8px; }
.container-task::-webkit-scrollbar-thumb { background: #4a3ff0; border-radius: 8px; }
.container-task::-webkit-scrollbar-track { background: #ffffff; border-radius: 8px; }
.task {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0; /* odstępy zapewnia padding kontenera */
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  cursor: pointer;
  min-width: 0; /* pozwala zawartości się zawijać bez rozszerzania karty */
  position: relative; /* kotwica dla priorytetu w prawym górnym rogu */
}
.avatar-task {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  height: auto;
  background-color: transparent;
  box-shadow: none;
  order: 0;
  margin-left: 0;
}
.task-content {
  display: flex;
  align-items: flex-start;
  margin-left: 20px;
  gap: 16px;
  order: 2;
  flex: 1;
  min-width: 0;
}
.task-content h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #383636df;
  margin: 0;
  overflow-wrap: anywhere;
}
.task-content p {
  font-size: 1.2rem;
  font-weight: bold;
  color: #383636df;
  margin: 0;
  overflow-wrap: anywhere;
}
.avatar-task img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: transparent;
  box-shadow: none;
}
/* subtelny efekt na hover kart zadania */
.task:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* MoreInfoTask - szczegóły */
.MoreInfoTask-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.MoreInfoTask-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.MoreInfoTask-header h3 {
  margin: 0;
  color: #383636df;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.status-active { color: var(--success); border-color: var(--success); background-color: var(--success-50); }
.status-completed { color: var(--danger); border-color: var(--danger); background-color: var(--danger-50); }
.status-all { color: var(--primary); border-color: var(--primary); background-color: var(--primary-50); }

.MoreInfoTask-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.MoreInfoTask-meta .meta-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #555151cb;
}
.MoreInfoTask-section h4,
.MoreInfoTask-subtasks h4 {
  margin: 0 0 6px;
  color: #383636df;
}
.MoreInfoTask-section p {
  margin: 0;
  color: #383636df;
}
.MoreInfoTask-subtasks ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.MoreInfoTask-subtasks li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.MoreInfoTask-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.MoreInfoTask-tags .tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #4a3ff0;
  color: #4a3ff0;
  background-color: #ffffff;
}

.MoreInfoTask-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.MoreInfoTask-actions .btn-outline {
  border: 1px solid #4a3ff0;
  background: #ffffff;
  color: #4a3ff0;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.MoreInfoTask-actions .btn-primary {
  border: 1px solid #4a3ff0;
  background: #4a3ff0;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.MoreInfoTask-actions .btn-outline:hover { background: #f3f2ff; }
.MoreInfoTask-actions .btn-primary:hover { filter: brightness(1.05); }
#task-content-active  {
  background-color: var(--success-50);
  border-left: 4px solid var(--success);
}
#task-content-completed {
  background-color: var(--danger-50);
  border-left: 4px solid var(--danger);
}
.task-content-headers {
  display: flex;
  flex-direction: column;;
  justify-content: space-between;
}
.user-name {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #383636df;
}
.avatar-task span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  color: #383636df;
}

.priority {
  display: flex;
  position: absolute;
  right: 12px;
  top: 12px;
}
#priority-text-high {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  background-color: #ff00002a;
  color: #ff0000df;
  background-color: var(--primary-50);
  border-radius: 10px;
  padding: 5px;
  gap: 6px;
  background-color: #ff00002a;
  margin-left: auto;
  height: 100%;

}
.priority .priority-text {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
#priority-text-medium {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  background-color: #ff00002a;
  color: #fff700df;
  background-color: var(--primary-50);
  border-radius: 10px;
  padding: 5px;
  gap: 6px;
  background-color: #beb61beb;
  margin-left: auto;
  height: 100%;

}
#priority-text-low {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  background-color: #ff00002a;
  color: #3f900ddf;
  background-color: var(--primary-50);
  border-radius: 10px;
  padding: 5px;
  gap: 6px;
  background-color: #a1fd21ee;
  margin-left: auto;
  height: 100%;
}

