/* =========================
   GLOBALNE (stylistyka jak CSS 1)
========================= */
:root{
  /* tło jasne jak w A */
  --bg0:#F6FAFF;
  --bg1:#EEF6FF;

  /* tekst */
  --txt:#0B1B2B;
  --muted: rgba(11,27,43,.72);

  /* akcenty */
  --accent1:#0EA5E9; /* sky */
  --accent2:#22D3EE; /* cyan */
  --accent3:#2563EB; /* blue */

  /* szkło / obrysy */
  --glass: rgba(255,255,255,.70);
  --stroke: rgba(15,23,42,.10);

  /* cienie */
  --shadow: 0 18px 55px rgba(2, 6, 23, .10);
  --shadowHover: 0 26px 80px rgba(2, 6, 23, .14);

  /* kompatybilność z istniejącymi nazwami z CSS 2 */
  --brand-1: var(--accent1);
  --brand-2: var(--accent3);
  --bg-1: var(--bg0);
  --bg-2: var(--bg1);
  --text: var(--txt);
  --radius: 22px;
}

.white { color: #FFFFFF!important; }

* { box-sizing: border-box; }

html{ scroll-behavior: smooth; }
html, body { height: 100%; }

/* =========================================================
   TŁO – „pancerne” (bez ucinania / bez przeskoków)
   Warstwa fixed na body::before + grain na body::after
========================================================= */
html{ background-color: var(--bg0); }

body{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--txt);
  background: transparent;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

/* tło (gradienty) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 12% 12%, rgba(34,211,238,.22), transparent 60%),
    radial-gradient(1100px 700px at 88% 22%, rgba(14,165,233,.18), transparent 62%),
    radial-gradient(900px 650px at 50% 110%, rgba(37,99,235,.10), transparent 62%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* subtelny grain */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 260px 260px;
}

.container { max-width: 960px; }

/* bezpieczne obrazki (modale + lista) */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   TYPOGRAFIA – mały upgrade
========================= */
h1,h2,h3,h4,h5{
  letter-spacing: -0.02em;
  color: rgba(11,27,43,.96);
}
h1{ line-height: 1.06; font-weight: 900; }
h2{ line-height: 1.12; font-weight: 850; }

/* =========================
   KARTY PROJEKTÓW
========================= */
.project-card{
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.62));
  border: 1px solid rgba(15,23,42,.10);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project-card:hover{
  transform: translateY(-6px);
  border-color: rgba(15,23,42,.14);
  box-shadow: var(--shadowHover) !important;
}

/* =========================
   ZADANIA
========================= */
.task-todo { background:#e7f1ff; }
.task-done { background:#e6f4ea; text-decoration: line-through!important; }

.task-todo {
  background: rgba(14,165,233,.10);
  border-left: 4px solid var(--accent1);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}

.task-done {
  background: rgba(34,197,94,.10);
  border-left: 4px solid rgba(34,197,94,.55);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  text-decoration: line-through;
  color: rgba(11,27,43,.70);
  box-shadow: 0 10px 30px rgba(2,6,23,.05);
}

.task-buttons .btn { font-size: 0.85rem; }

/* =========================
   PRIORYTET
========================= */
.priority-badge {
  border: 1px solid rgba(15,23,42,.10);
  cursor: pointer;
  padding: 0.42em 0.78em;
  font-size: 0.75rem;
  border-radius: 999px;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  transition: opacity .12s ease, transform .12s ease, box-shadow .18s ease;
}

.priority-urgent { background: linear-gradient(90deg, #ef4444, #dc2626); color:#fff; border-color: rgba(239,68,68,.35); }
.priority-medium { background: linear-gradient(90deg, #fb923c, #f97316); color:#fff; border-color: rgba(249,115,22,.35); }
.priority-low    { background: linear-gradient(90deg, #22c55e, #16a34a); color:#fff; border-color: rgba(34,197,94,.35); }

.priority-badge:hover { opacity: 0.95; box-shadow: 0 14px 30px rgba(2,6,23,.08); }
.priority-badge:active { transform: scale(0.98); }

/* =========================
   KARTY, PRZYCISKI, FORMULARZE
========================= */
.card {
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.62));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.card-header {
  background: linear-gradient(90deg, var(--accent1), var(--accent3));
  color: #fff;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  border-bottom: 1px solid rgba(255,255,255,.22);
}

.btn {
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info{
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(90deg, var(--accent1), var(--accent3)) !important;
  box-shadow: 0 18px 46px rgba(14,165,233,.22), 0 18px 46px rgba(37,99,235,.18);
}

.btn-primary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 22px 60px rgba(14,165,233,.26), 0 22px 60px rgba(37,99,235,.20);
}

.btn-secondary,
.btn-outline-secondary,
.btn-light{
  background: rgba(255,255,255,.62) !important;
  color: rgba(11,27,43,.88) !important;
  border: 1px solid rgba(15,23,42,.14) !important;
  box-shadow: 0 12px 26px rgba(2,6,23,.06);
}
.btn-secondary:hover,
.btn-outline-secondary:hover,
.btn-light:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.78) !important;
  border-color: rgba(15,23,42,.18) !important;
  box-shadow: 0 16px 34px rgba(2,6,23,.08);
  color: rgba(11,27,43,.95) !important;
}

.btn:hover { transform: translateY(-1px); }

.btn, .form-control, .form-select { min-height: 40px; }

/* =========================
   LISTA / ITEMY
========================= */
.list-group-item {
  border-radius: 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.60));
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(2,6,23,.06);
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.list-group-item:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.66));
  transform: translateY(-2px);
  border-color: rgba(15,23,42,.14);
  box-shadow: 0 16px 40px rgba(2,6,23,.08);
}

/* =========================
   MODALE
========================= */
.modal-content {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.66));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.modal-header {
  background: linear-gradient(90deg, var(--accent1), var(--accent3));
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.22);
}

/* =========================
   FORMULARZE
========================= */
input.form-control,
select.form-select {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea.form-control {
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 90px;
  resize: vertical;
}

input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
  outline: none;
  border-color: rgba(14,165,233,.55);
  background: rgba(255,255,255,.82);
  box-shadow:
    0 0 0 0.25rem rgba(14,165,233,0.16),
    0 12px 30px rgba(2,6,23,.06);
}

/* =========================
   RESPONSYWNOŚĆ (tablet/phone)
========================= */
@media (max-width: 992px) {
  .container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 768px) {
  .d-flex.justify-content-between.mb-3 {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .d-flex.justify-content-between.mb-3 > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  form.d-flex.gap-2 {
    flex-direction: column;
    gap: 10px !important;
  }

  .list-group-item.d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .list-group-item .d-flex.gap-1 {
    flex-wrap: wrap;
    gap: 8px !important;
    width: 100%;
  }

  .list-group-item .d-flex.gap-1 .btn {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .priority-badge { margin-top: 6px; }

  .modal-dialog { margin: 12px; }
}

@media (max-width: 480px) {
  .container { padding-left: 12px; padding-right: 12px; }

  h4 { font-size: 1.15rem; }

  input.form-control,
  select.form-select,
  textarea.form-control {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .modal .col-3 {
    width: 50%;
    flex: 0 0 auto;
  }
}

/* =========================
   LINKI + BADGE
========================= */
a{
  color: var(--accent1);
  text-decoration: none;
  font-weight: 700;
}
a:hover{
  color: var(--accent3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.badge { font-weight: 800; }

/* =========================================================
   TASK ITEM – poprawki layoutu
========================================================= */
.list-group-item > div:first-child { min-width: 0; }

.task-title {
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: rgba(11,27,43,.92);
}

.task-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
}

.list-group-item a.small { white-space: nowrap; opacity: 0.9; }
.list-group-item .badge.bg-secondary { white-space: nowrap; }

.list-group-item small {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(11,27,43,.65);
}

.priority-badge { vertical-align: middle; }

/* =========================================================
   MOBILE / TABLET – kluczowe poprawki dla listy zadań
========================================================= */
@media (max-width: 768px) {

  .list-group-item.d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }

  .list-group-item.d-flex.justify-content-between.align-items-center > div:first-child {
    width: 100%;
  }

  .list-group-item .d-flex.align-items-center.gap-2 {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px !important;
  }

  .task-title {
    flex: 1 1 100%;
    font-size: 1rem;
  }

  .list-group-item a.small { flex: 0 0 auto; }

  .list-group-item form.d-inline.ms-2 {
    margin-left: 0 !important;
    margin-top: 6px;
    display: inline-block;
  }

  .list-group-item small {
    margin-top: 6px;
    display: flex;
    gap: 10px;
  }

  .list-group-item.d-flex.justify-content-between.align-items-center > div.d-flex.gap-1 {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }

  .list-group-item .btn.btn-sm {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    min-height: 42px;
  }
}

@media (max-width: 480px) {
  .list-group-item.d-flex.justify-content-between.align-items-center > div.d-flex.gap-1 {
    grid-template-columns: 1fr;
  }

  .task-title { font-size: 1.05rem; }

  .modal .col-3 {
    width: 50%;
    flex: 0 0 auto;
  }
}

/* Wyrównanie tekstu w przyciskach w taskach (mobile + desktop) */
.list-group-item .btn.btn-sm{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  white-space: nowrap;
}

@media (max-width: 768px){
  .list-group-item .btn.btn-sm{ min-height: 42px; }
}

/* =========================
   UX
========================= */
:focus-visible {
  outline: 3px solid rgba(14,165,233,0.55);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.modal-footer .btn { min-width: 140px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .list-group-item:hover { transform: none !important; }
}

/* =========================
   LOGIN – remember me + captcha w jednej linii
========================= */
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.login-row .remember-me {
  font-size: 0.85rem;
  white-space: nowrap;
  color: rgba(11,27,43,.78);
}

.login-row .remember-me .form-check-input { margin-top: 0.15rem; }

.captcha-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(11,27,43,.78);
}

.captcha-inline .form-control {
  width: 56px;
  padding: 4px 8px;
  font-size: 0.85rem;
  height: 32px;
}

@media (max-width: 480px) {
  .login-row { justify-content: space-between; }
  .captcha-inline .form-control { width: 48px; }
}

.login-logo img {
  display: block;
  margin: 0 auto;
  max-width: 180px;
  height: auto;
}

/* =========================
   APP HEADER / FOOTER
========================= */
.app-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.app-header {
  z-index: 1030;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15,23,42,.10);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.app-header .navbar-brand span { font-size: 1.1rem; }

.app-header .navbar-toggler { border: 1px solid rgba(15,23,42,.14); }
.app-header .navbar-toggler-icon { background-image: var(--bs-navbar-toggler-icon-bg); }

@media (max-width: 767.98px) {
  .app-header .btn { width: 100%; }
}

.app-header .navbar-brand small {
  font-size: 0.7rem;
  padding-top: 6px;
  letter-spacing: 0.03em;
  color: rgba(11,27,43,.72);
}

.app-footer {
  border-top: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.60);
}

@media (min-width: 768px) {
  .app-footer {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.navbar-toggler {
  position: relative;
  z-index: 1060;
}

.navbar-collapse { z-index: 1050; }

.app-header .navbar-collapse{
  position: relative;
  z-index: 1050;
}

.app-header .navbar-toggler{
  position: relative;
}

@media (min-width: 768px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* =========================
   EXTRA UPIĘKSZENIE: delikatny glow na hover dla kart
========================= */
.card:hover,
.project-card:hover,
.list-group-item:hover{
  box-shadow:
    0 26px 80px rgba(2,6,23,.14),
    0 0 0 1px rgba(34,211,238,.10) inset;
}

/* =========================================================
   PROJECTS GRID – STYLE (kontrast do niebieskiego tła strony)
   Wymaga użycia klas z mojej przeróbki HTML:
   .project-section-head, .project-pill, .project-tile, .project-title-text,
   .project-count, .project-user-badge, .project-footer, .project-arrow,
   .project-icon, .project-link
========================================================= */
.project-section-head{ overflow: hidden; }

.project-head-icon{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 12px 26px rgba(2,6,23,.06);
}

.project-pill{
  background: rgba(255,255,255,.62) !important;
  color: rgba(11,27,43,.86) !important;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 2 12px 26px rgba(2,6,23,.06);
  font-weight: 1200;
  padding: .55rem .9rem;
}

.project-link:focus-visible{
  outline: 3px solid rgba(14,165,233,0.45);
  outline-offset: 6px;
  border-radius: 22px;
}

/* Kafelek – jaśniejszy, neutralny (nie niebieski) */
.project-tile{
  position: relative;
  overflow: hidden;
  transform: translateZ(0);

  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.72)) !important;
  border: 1px solid rgba(15,23,42,.12);
}

/* neutralne „światło” (bez niebieskiego) */
.project-tile::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(600px 220px at 20% 0%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(600px 220px at 80% 0%, rgba(255,255,255,.35), transparent 60%);
  opacity:.9;
  pointer-events:none;  
  z-index: -1;
}

.project-link:hover .project-tile::before{
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(14,165,233,.22), transparent 65%),
    radial-gradient(600px 220px at 80% 0%, rgba(34,211,238,.18), transparent 65%);
}




/* Delikatne kolorystyczne podświetlenie kafla na hover */
.project-link:hover .project-card{
  border-color: rgba(14,165,233,.45);

  box-shadow:
    0 26px 80px rgba(2,6,23,.14),
    0 0 0 1px rgba(14,165,233,.35),
    0 0 40px rgba(14,165,233,.18);
}






/* tytuł */
.project-title{
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000!;
  text-shadow: 0 1px 0 rgba(255,255,255,.6)!;
  word-break: break-word;
  overflow-wrap: anywhere;
    position: relative;
  z-index: 0;

}
.project-title,
.project-title-text{
  color: #0B1B2B !important;
}


/* clamp na samym tekście */
.project-title-text{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-strong{
  color: rgba(11,27,43,.92);
  font-weight: 800;
}

/* Ikona domu przed tytułem */
.project-icon{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  font-size: 1.05rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

/* licznik zadań */
.project-count{
  border: 0 !important;
  color: #fff !important;
  font-weight: 900;
  padding: .6rem .9rem;
  background: linear-gradient(90deg, var(--accent1), var(--accent3)) !important;
  box-shadow: 0 18px 46px rgba(14,165,233,.22), 0 18px 46px rgba(37,99,235,.18);
}

/* badge userów */
.project-user-badge{
  background: rgba(255,255,255,.62) !important;
  color: rgba(11,27,43,.86) !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  font-weight: 700;
  padding: .35rem .6rem;
}

/* stopka */
.project-footer{
  background: transparent;
  padding: 0 1.25rem 1.1rem;
}

.project-arrow{
  font-weight: 900;
  color: var(--accent3);
  transition: transform .18s ease, filter .18s ease;
}

/* hover */
.project-link:hover .project-card{
  transform: translateY(-8px);
}
.project-link:hover .project-arrow{
  transform: translateX(4px);
  filter: brightness(1.05);
}
.project-link:hover .project-icon{
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(2,6,23,.10);
}

/* touch: mniej agresywnie */
@media (hover: none){
  .project-link:hover .project-card{ transform:none; }
  .project-link:hover .project-arrow{ transform:none; }
  .project-link:hover .project-icon{ transform:none; }
}






/* =========================
   Bootstrap cards – oryginalne (bez animacji)
========================= */

/* cienka ramka gradientowa */
.card::before{
  content:"";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(34,211,238,.45),
    rgba(14,165,233,.30),
    rgba(37,99,235,.25)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .35;
  pointer-events: none;
}



/* =========================
   Stats block – cool UI
========================= */
.stats-wrap{
  overflow: hidden;
}

.stats-note{
  display:flex;
  gap: 10px;
  align-items:flex-start;
}

.stats-note-ico{
  width: 38px;
  height: 38px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 12px 26px rgba(2,6,23,.06);
  flex: 0 0 auto;
}

.stats-grid{
  display:grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1200px){
  .stats-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 768px){
  .stats-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px){
  .stats-grid{ grid-template-columns: 1fr; }
}

.stats-item{
  position: relative;
  overflow:hidden;
  border-radius: 18px;
  padding: 12px 12px 10px;

  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.72));
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 14px 40px rgba(2,6,23,.08);
}

.stats-item::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 180px at 20% 0%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(520px 180px at 80% 0%, rgba(14,165,233,.10), transparent 60%);
  opacity:.95;
  pointer-events:none;
  z-index: 0;
}

.stats-item > *{ position: relative; z-index: 1; }

.stats-item-top{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-bottom: 8px;
}

.stats-ico{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.stats-label{
  font-size: .68rem;
  color: rgba(11,27,43,.70);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.stats-value{
  font-size: 1rem;
  line-height: 1.05;
  font-weight: 950;
  color: #0B1B2B;
  letter-spacing: -0.02em;
  text-align: center;
}

/* subtelne rozróżnienie priorytetów */
.stats-item-urgent::before{
  background:
    radial-gradient(520px 180px at 25% 0%, rgba(239,68,68,.14), transparent 62%),
    radial-gradient(520px 180px at 85% 0%, rgba(14,165,233,.08), transparent 62%);
}
.stats-item-medium::before{
  background:
    radial-gradient(520px 180px at 25% 0%, rgba(249,115,22,.14), transparent 62%),
    radial-gradient(520px 180px at 85% 0%, rgba(14,165,233,.08), transparent 62%);
}
.stats-item-low::before{
  background:
    radial-gradient(520px 180px at 25% 0%, rgba(34,197,94,.14), transparent 62%),
    radial-gradient(520px 180px at 85% 0%, rgba(14,165,233,.08), transparent 62%);
}


/* =========================
   Quick actions (buttons) – cool, spójne z glass UI
========================= */
.quick-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.qa-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,.62);
  border: 1px solid rgba(15,23,42,.14);
  color: rgba(11,27,43,.90);
  font-weight: 850;
  text-decoration: none;

  box-shadow: 0 12px 26px rgba(2,6,23,.06);
  backdrop-filter: blur(12px);

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}

.qa-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(2,6,23,.10);
  border-color: rgba(15,23,42,.18);
  color: rgba(11,27,43,.96);
  text-decoration: none!important;
}

.qa-btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(2,6,23,.06);
}

.qa-btn:focus-visible{
  outline: 3px solid rgba(14,165,233,0.45);
  outline-offset: 4px;
}

.qa-ico{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;

  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);

  font-size: 1.05rem;
  flex: 0 0 auto;
}

.qa-txt{
  line-height: 1.1;
  white-space: nowrap;
}

/* warianty kolorystyczne – subtelna poświata, bez krzykliwości */
.qa-new:hover{
  box-shadow: 0 18px 40px rgba(2,6,23,.10), 0 0 42px rgba(14,165,233,.16);
  border-color: rgba(14,165,233,.30);
}
.qa-done:hover{
  box-shadow: 0 18px 40px rgba(2,6,23,.10), 0 0 42px rgba(34,197,94,.14);
  border-color: rgba(34,197,94,.28);
}
.qa-urgent:hover{
  box-shadow: 0 18px 40px rgba(2,6,23,.10), 0 0 42px rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.28);
}
.qa-notes:hover{
  box-shadow: 0 18px 40px rgba(2,6,23,.10), 0 0 42px rgba(34,211,238,.14);
  border-color: rgba(34,211,238,.28);
}

/* mobile: przyciski bardziej „kafelkowe”, pełna szerokość */
@media (max-width: 576px){
  .quick-actions{ gap: 8px; }
  .qa-btn{
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
  }
  .qa-txt{ white-space: normal; }
}

@keyframes pulsePink {
  0% {
    background-color: rgba(214, 51, 132, 0.06); /* soft pink */
    box-shadow: 0 0 0 0 rgba(214, 51, 132, 0.25);
  }
  70% {
    background-color: rgba(214, 51, 132, 0.14);
    box-shadow: 0 0 0 8px rgba(214, 51, 132, 0);
  }
  100% {
    background-color: rgba(214, 51, 132, 0.06);
    box-shadow: 0 0 0 0 rgba(214, 51, 132, 0);
  }
}

.qa-new-feature {
  animation: pulsePink 3s ease-in-out infinite;
}


.badge-status-clean {

  font-weight: 400!important;

}


/* =========================
   STATYSTYKI – MOBILE TUNING
========================= */

@media (max-width: 768px){

  /* 2 kolumny */
  .stats-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* mniejszy box */
  .stats-item{
    padding: 10px;
    border-radius: 12px;
  }

  /* mniejsza ikonka */
  .stats-ico{
    font-size: 1rem;
  }

  /* mniejszy tytuł */
  .stats-label{
    font-size: 0.6rem;
  }

  /* mniejsza liczba */
  .stats-value{
    font-size: 1.15rem;
    font-weight: 700;
  }

  /* ciaśniejszy top layout */
  .stats-item-top{
    gap: 6px;
    margin-bottom: 4px;
  }
}

/* DONE: przekreślaj tylko tytuł, nie przyciski */
.task-done { 
  text-decoration: none !important; 
}

.task-done .task-title {
  text-decoration: line-through !important;
}

/* asekuracyjnie: przyciski nigdy nie są przekreślone */
.task-done .task-buttons,
.task-done .task-buttons .btn,
.task-done .task-buttons a,
.task-done .task-buttons button,
.task-done .task-buttons svg,
.task-done .task-buttons i {
  text-decoration: none !important;
}


/* DONE – delikatne zielone glass tło */
.task-done{
  background: linear-gradient(
    180deg,
    rgba(34,197,94,.12),
    rgba(34,197,94,.06)
  ) !important;

  border-left: 4px solid rgba(34,197,94,.55);
  box-shadow: 0 10px 30px rgba(34,197,94,.08);
  color: rgba(11,27,43,.75);
}

@media (max-width: 576px){
  .quick-actions{
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .quick-actions .qa-left,
  .quick-actions .qa-right{
    width: 100% !important;
  }
  .quick-actions .qa-btn{
    width: 100% !important;
  }
}


@media (max-width: 767.98px){
  .quick-actions .qa-right{
    display: none !important;
  }
}