@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400&display=swap");

p {
  color: var(--black);
}
:root {
  --main-color: #ffb703;
  --main-color-add: #cb960e;
  --yellow: #f39c12;
  --red: #ff3232;
  --blue: #007bff;
  --green: #28a745;
  --purple: #6f42c1;
  --teal: #20c997;
  --pink: #e83e8c;
  --gray: #6c757d;
  --black: #333;
  --black2: #282a35;
  --black3: #77838f;
  --grey: #ccc;
  --white: #f2f2f2;
  --white2: #c5c5c5;
  --white3: #a2b3ca;
  --border: 0.1rem solid var(--black);
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --text-main: #f1efdb;

  --accent: var(--green);
  --accent-2: #81c784;
  --tint: transparent;
  --tint-yellow: rgba(255, 183, 3, 0.1);
  --tint-red: rgba(255, 50, 50, 0.08);
  --tint-blue: rgba(0, 123, 255, 0.08);
  --tint-green: rgba(40, 167, 69, 0.06);
  --bar-thickness: 4px;

  --main-bg: #fff8e1;
  --main-text: #b38000;
  --green-bg: #e8f5e9;
  --green-text: #1e7e34;
  --red-bg: #ffebee;
  --red-text: #c62828;
  --orange: #fd7e14;
  --orange-bg: #fff3e0;
  --orange-text: #e65100;
  --blue-bg: #e3f2fd;
  --blue-text: #0056b3;
  --purple-bg: #f3e5f5;
  --purple-text: #6a1b9a;
  --teal-bg: #e0f2f1;
  --teal-text: #00695c;
  --pink-bg: #fce4ec;
  --pink-text: #c2185b;
  --gray-bg: #eaebec;
  --gray-text: #495057;
}

.dark {
  --main-color: #cc9600;
  --yellow: #c87f0a;
  --red: #cc1f1f;
  --blue: #3a84cc;
  --green: #3aa63a;
  --purple: #b39ddb;
  --teal: #80cbc4;
  --pink: #f48fb1;
  --gray: #90a4ae;
  --black: #f8f9fa;
  --black2: #c5c5c5;
  --black3: #90a4ae;
  --grey: #555;
  --white: #2d323b;
  --white2: #1c212b;
  --white3: #353a48;
  --border: 0.1rem solid var(--white2);
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  --text-main: #f1efdb;

  --accent: var(--green);
  --accent-2: #6bd688;
  --tint: transparent;
  --tint-yellow: rgba(200, 127, 10, 0.16);
  --tint-red: rgba(204, 31, 31, 0.14);
  --tint-blue: rgba(58, 132, 204, 0.14);
  --tint-green: rgba(58, 166, 58, 0.12);
  --bar-thickness: 4px;

  --main-bg: rgba(255, 183, 3, 0.15);
  --main-text: #ffb703;
  --green-bg: rgba(58, 166, 58, 0.15);
  --green-text: #6bd688;
  --red-bg: rgba(204, 31, 31, 0.15);
  --red-text: #ff8a80;
  --orange: #ff9800;
  --orange-bg: rgba(255, 152, 0, 0.15);
  --orange-text: #ffb74d;
  --blue-bg: rgba(58, 132, 204, 0.15);
  --blue-text: #64b5f6;
  --purple-bg: rgba(156, 39, 176, 0.15);
  --purple-text: #ce93d8;
  --teal-bg: rgba(0, 150, 136, 0.15);
  --teal-text: #80cbc4;
  --pink-bg: rgba(233, 30, 99, 0.15);
  --pink-text: #f48fb1;
  --gray-bg: rgba(158, 158, 158, 0.15);
  --gray-text: #b0bec5;
}
:root {
  --rem-base: 16px;
}

html {
  font-size: var(--rem-base);
}

html:has(body.bigertext) {
  --rem-base: calc(16px * 1.2);
}

html:has(body.hugetext) {
  --rem-base: calc(16px * 1.4);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}
.anim-blink {
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-3px);
  }

  40%,
  80% {
    transform: translateX(3px);
  }
}
* {
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}
ul {
  list-style: none;
}
*::selection {
  background-color: var(--main-color);
  color: var(--white);
}

::-webkit-scrollbar {
  height: 0.5rem;
  width: 7px;
}

::-webkit-scrollbar-track {
  background-color: none;
}

::-webkit-scrollbar-thumb {
  background-color: var(--black);
  border-radius: 3px;
}
:root {
  --sidebar-w: 17rem;
  --sidebar-min-w: 5rem;
  /* Usunięto nadmiarowe zmienne, korzystamy z głównej palety */
}

* {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

body.body-with-sidebar {
  padding-left: calc(var(--sidebar-w) + 2rem);
  padding-right: 2rem;
  padding-bottom: 0;
  transition: padding-left 0.3s ease;
}

body.body-with-sidebar-min {
  padding-left: calc(var(--sidebar-min-w) + 1rem);
  padding-right: 1rem;
  padding-bottom: 0;
  transition: padding-left 0.3s ease;
}

.desktop-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: var(--white2);
  border-right: 1px solid var(--white3);
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  z-index: 8000;
  overflow-x: hidden;
}

.desktop-sidebar.minimized {
  width: var(--sidebar-min-w);
}

.sidebar-header {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  border-bottom: 1px solid var(--white3);
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--main-color);
  white-space: nowrap;
}

.desktop-sidebar.minimized .sidebar-logo-text {
  display: none;
}

.sidebar-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--main-bg);
  transition: 0.2s;
}

.sidebar-toggle:hover {
  color: var(--main-color);
}

.desktop-sidebar.minimized .sidebar-toggle {
  margin: 0 auto;
  transform: rotate(180deg);
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: var(--black); /* Zmieni się na jasnoszary w trybie ciemnym */
  transition: 0.2s;
  white-space: nowrap;
  overflow: hidden;
  border-left: 4px solid transparent;
  cursor: pointer;
  width: 100%;
  position: relative;
}

.sidebar-link:hover {
  background: var(
    --gray-bg
  ); /* Użycie tła dynamicznego zamiast sztywnego rgba */
  color: var(--main-color);
}

.sidebar-link.active {
  color: var(--main-color);
  font-weight: 700;
  background: var(--tint-yellow); /* Użycie systemowego tintu */
  border-left-color: var(--main-color);
  opacity: 1;
}

.sidebar-link i {
  min-width: 2.5rem;
  font-size: 1.1rem;
  text-align: center;
  margin-right: 0;
}

.sidebar-link.has-notification {
  background: var(--red-bg);
  border-left: 4px solid var(--red);
  font-weight: 600;
}

.desktop-sidebar.minimized .sidebar-link span,
.desktop-sidebar.minimized .sidebar-link .chevron-icon {
  display: none !important;
}

.desktop-sidebar.minimized .sidebar-link {
  justify-content: center;
  padding: 0.6rem 0;
  border-left: none;
}

.desktop-sidebar.minimized .sidebar-link i {
  min-width: auto;
  font-size: 1.3rem;
}

.notif-badge-desktop {
  margin-left: auto;
  background: var(--red);
  color: var(--text-main);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
}

.desktop-sidebar.minimized .notif-badge-desktop {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.6rem;
  padding: 2px 5px;
  margin: 0;
}

.sidebar-divider-line {
  border: 0;
  border-top: 1px solid var(--white3);
  margin: 0.5rem 1.2rem;
}

.admin-footer {
  padding: 10px;
  border-top: 1px solid var(--white3);
  flex-shrink: 0;
  background: var(--white2);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 8px;
  background: var(--gray-bg);
  color: var(--black);
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.footer-btn:hover {
  background: var(--main-color);
  color: var(--text-main);
}

.desktop-sidebar.minimized .admin-grid {
  grid-template-columns: 1fr;
}

.mobile-nav-container {
  display: none;
}

.menu-overlay {
  display: none;
}

@media (max-width: 768px) {
  .desktop-sidebar {
    display: none !important;
  }

  body {
    padding-left: 0.2em !important;
    padding-right: 0.2rem !important;
    padding-bottom: 6rem !important;
  }

  .mobile-nav-container {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4.5rem;
    background: var(--white);
    box-shadow: var(--box-shadow);
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    z-index: 9000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
    -webkit-user-select: none;
    user-select: none;
  }

  .nav-item i {
    font-size: 1.4rem;
    margin-bottom: 3px;
    z-index: 2;
    position: relative;
  }

  .balance-text {
    font-weight: 900;
    font-size: 1.1rem;
    color: inherit;
    letter-spacing: 0.5px;
  }

  .nav-item.is-active {
    color: var(--black);
  }

  .nav-item.is-active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.5rem;
    height: 3rem;
    background: var(--main-color);
    opacity: 0.2;
    border-radius: 16px;
    z-index: 1;
    box-shadow: 0 0 15px var(--tint-yellow);
  }

  .nav-item.is-active .balance-text {
    color: var(--main-color);
  }

  .fab-wrapper {
    position: relative;
    width: 70px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    z-index: 9005;
  }

  .fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--main-color);
    border: 5px solid var(--white);
    color: var(--black);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px var(--tint-yellow);
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .fab-btn.is-open {
    transform: rotate(135deg);
    background: var(--white2);
    color: var(--black2);
  }

  .badge-dot {
    position: absolute;
    top: 10px;
    right: 20%;
    background: var(--red);
    color: var(--text-main);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--white);
  }

  .menu-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 8999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: flex-end;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .menu-drawer {
    width: 100%;
    max-width: 600px;
    background: var(--white2);
    padding: 30px;
    transform: translateY(100%);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding-bottom: 6rem;
  }

  .menu-overlay.active .menu-drawer {
    transform: translateY(0);
  }

  .menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--black);
    font-weight: 600;
    font-size: 0.8rem;
    background: transparent;
    cursor: pointer;
  }

  .menu-icon-box {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--black2);
    box-shadow: var(--box-shadow);
    transition: transform 0.2s;
  }

  .menu-item:hover .menu-icon-box {
    transform: scale(1.1);
  }

  .mobile-separator {
    width: 100%;
    height: 1px;
    background: var(--white3);
    margin: 20px 0;
  }
}

.bg-blue {
  background: var(--blue);
}

.bg-yellow {
  background: var(--yellow);
}

.bg-green {
  background: var(--green);
}

.bg-red {
  background: var(--red);
}

.bg-main {
  background: var(--main-color);
}

.bg-purple {
  background: var(--purple);
}

.bg-teal {
  background: var(--teal);
}
body {
  background: var(--white);
}
.messages {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  width: min(920px, calc(100% - 20px));
  z-index: 99999;
  pointer-events: none;
  transition:
    left 0.3s ease,
    width 0.3s ease;
}

.message {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    color-mix(
      in oklab,
      var(--msg-accent, var(--main-color)) 16%,
      var(--black2)
    ),
    var(--black)
  );
  border: 1px solid
    color-mix(in oklab, var(--msg-accent, var(--main-color)) 28%, var(--white3));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--white);
  position: relative;
  overflow: hidden;
  animation: msg-in 0.25s ease-out both;
}

.message::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--msg-accent, var(--main-color));
  transform-origin: left;
  animation: msg-timer 5s linear forwards;
  border-radius: 0 0 12px 12px;
  opacity: 0.9;
}

.message__left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.message__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(
    in oklab,
    var(--msg-accent, var(--main-color)) 78%,
    transparent
  );
  color: var(--white);
  box-shadow: inset 0 0 0 1px
    color-mix(in oklab, var(--msg-accent, var(--main-color)) 45%, transparent);
  flex: 0 0 36px;
}

.message span {
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--white);
  word-break: break-word;
}

.message__close {
  font-size: 1.8rem;
  color: var(--white);
  opacity: 0.75;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 0.6rem;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    background-color 0.15s ease;
  flex: 0 0 auto;
}
.message__close:hover {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.08);
}

.message--success {
  --msg-accent: var(--green);
}
.message--warning {
  --msg-accent: var(--yellow);
}
.message--error {
  --msg-accent: var(--red);
}
.message--info {
  --msg-accent: var(--blue);
}

.error {
  border-color: var(--red) !important;
}
.error-message {
  color: var(--red);
  font-size: 1.2rem;
  margin-top: 0.25rem;
  padding: 0.4rem 0.6rem;
  border-left: 3px solid var(--red);
  background: color-mix(in oklab, var(--red) 12%, transparent);
  border-radius: 0.5rem;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes msg-timer {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .message {
    animation: none;
  }
  .message::after {
    animation: none;
  }
}
@media (min-width: 768px) {
  body.body-with-sidebar .messages {
    left: calc(50% + (var(--sidebar-w) / 2));
    width: min(920px, calc(100% - var(--sidebar-w) - 40px));
  }

  body.body-with-sidebar-min .messages {
    left: calc(50% + (var(--sidebar-min-w) / 2));
    width: min(920px, calc(100% - var(--sidebar-min-w) - 40px));
  }
}
.pwa-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.pwa-modal.hidden {
  display: none;
}

.pwa-modal__card {
  width: min(520px, 92vw);
  background: var(--white);
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.pwa-modal__close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  color: var(--gray);
  cursor: pointer;
}

.pwa-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-bg);
  color: var(--green-text);
  margin-bottom: 8px;
}

.pwa-modal h3 {
  margin: 0.1rem 0 0.25rem;
  font:
    800 1.15rem/1.2 system-ui,
    Segoe UI,
    Roboto,
    Arial;
  color: var(--black2);
}

.pwa-modal__text {
  color: var(--black3);
  margin: 0.25rem 0 0.9rem;
}

.pwa-modal__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.push-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.push-modal.hidden {
  display: none;
}

.push-modal__card {
  width: min(520px, 92vw);
  background: var(--white);
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.push-modal__close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  color: var(--gray);
  cursor: pointer;
}

.push-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-bg);
  color: var(--blue-text);
  margin-bottom: 8px;
}

.push-modal h3 {
  margin: 0.1rem 0 0.25rem;
  font:
    800 1.15rem/1.2 system-ui,
    Segoe UI,
    Roboto,
    Arial;
  color: var(--black2);
}

.push-modal__text {
  color: var(--black3);
  margin: 0.25rem 0 0.9rem;
}

.push-modal__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.push-modal__hint {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 0.35rem;
}

.btn,
.accept-btn,
.option-btn,
.delete-btn {
  margin-top: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--black);
  background: var(--white2);
  padding: 0.5rem 1.5rem;
  text-transform: capitalize;
  text-align: center;
  transition:
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  font-weight: bold;

  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px currentColor;
}
button a {
  color: var(--black);
}
.flex-btn-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.flex-btn-row .btn,
.flex-btn-row .accept-btn,
.flex-btn-row .option-btn,
.flex-btn-row .delete-btn {
  flex: 1 1 0;
  box-sizing: border-box;
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  cursor: pointer;
  text-transform: capitalize;
  text-align: center;
  transition:
    box-shadow 0.3s ease,
    background-color 0.3s ease;

  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px currentColor;
}

.flex-btn-row:has(.btn:only-child) .btn {
  max-width: 50%;
  margin: 0 auto;
}

.flex-btn-row .btn,
.flex-btn-row .accept-btn,
.flex-btn-row .option-btn,
.flex-btn-row .delete-btn {
  padding: 0.5rem 1rem;
}
.flex-btn-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.full-btn-bg {
  width: 100%;
  display: flex;
  justify-content: center;
}
.full-btn {
  width: 100%;
}
.btn-center {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.btn:hover,
.accept-btn:hover,
.option-btn:hover,
.delete-btn:hover {
  background-color: var(--white2);
}
/*
.btn {
  background: var(--black2);
}
.accept-btn {
  background: var(--green);
}
.option-btn {
  background: var(--yellow);
}
.delete-btn {
  background: var(--red);
}
  */
.btn {
  color: var(--main-color);
}
.accept-btn {
  color: var(--green);
}
.option-btn {
  color: var(--yellow);
}
.delete-btn {
  color: var(--red);
}

.btn:hover,
.accept-btn:hover,
.option-btn:hover,
.delete-btn:hover {
  box-shadow: inset 0 0 0 5px currentColor;
}

.small-btn {
  margin-top: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--white);
  padding: 0.5rem 1rem;
  text-transform: capitalize;
  text-align: center;
}
.small-btn :hover {
  background-color: var(--black);
}
.small-btn {
  background: var(--black);
}
.btn.btn-bigger {
  font-size: clamp(2rem, 3.5vw, 3rem);
  padding: 2rem 0;
}
.btn.copied {
  background-color: var(--main-color) !important;
  color: var(--black);
}
.btn-halo {
  padding: 10px;
}
.btn-halo .btn,
.btn-halo .accept-btn,
.btn-halo .option-btn,
.btn-halo .delete-btn {
  margin-top: 0;
}
.btn-halo.accept-halo {
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 0.1rem solid color-mix(in srgb, var(--green) 40%, transparent);
  border-radius: 0.3rem;
}
h1.heading,
h1.heading-white,
h1.heading-side,
h1.heading-side-white,
h1.box-heading {
  margin: 0.1rem 0 0.3rem;
  text-transform: capitalize;
  font-size: clamp(2rem, 5vw, 4rem);
}

h1.box-heading {
  font-size: 2rem;
}

h1.heading,
h1.heading-white,
h1.box-heading {
  text-align: center;
  animation: fadeInDown 0.8s ease both;
}

h1.heading-side,
h1.heading-side-white {
  text-align: left;
}

h2.heading,
h2.heading-white,
h2.heading-side,
h2.heading-side-white,
h2.box-heading {
  margin: 0.1rem 0 0.2rem;
  text-transform: capitalize;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h2.heading,
h2.heading-white {
  text-align: center;
  animation: fadeInDown 0.8s ease both;
}

h3.heading,
h3.heading-white,
h3.heading-side,
h3.heading-side-white,
h3.box-heading {
  margin: 1rem 0 1.5rem;
  text-transform: capitalize;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h3.heading,
h3.heading-white {
  text-align: center;
  animation: fadeInDown 0.8s ease both;
}

h4.heading,
h4.heading-white,
h4.heading-side,
h4.heading-side-white,
h4.box-heading {
  margin: 0.5rem 0 1.5rem;
  text-transform: capitalize;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h4.heading,
h4.heading-white {
  text-align: center;
  animation: fadeInDown 0.8s ease both;
}

h1.heading,
h1.heading-side,
h1.box-heading,
h2.heading,
h2.heading-side,
h2.box-heading,
h3.heading,
h3.heading-side,
h3.box-heading,
h4.heading,
h4.heading-side,
h4.box-heading {
  color: var(--black);
}

h1.heading-white,
h1.heading-side-white,
h2.heading-white,
h2.heading-side-white,
h3.heading-white,
h3.heading-side-white,
h4.heading-white,
h4.heading-side-white {
  color: var(--white);
}
.title {
  font-size: 2rem;
  color: var(--black);
  padding: 0.5rem 0;
  min-width: 100%;
  text-align: center;

  overflow: hidden;
  white-space: wrap;
  text-overflow: clip;
  position: relative;
}

.title::after {
  content: "";
  position: absolute;
  right: 0;
  height: 100%;
  width: 6rem;
  background-image: linear-gradient(to right, transparent, var(--white));
  pointer-events: none;
}
.box-container {
  display: grid;
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 1rem 0.5rem;
  gap: 1.25rem;
}
.boxes-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.boxes-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.boxes-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.boxes-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.boxes-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.boxes-auto {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.box-container.boxes-2-all,
.box-container.boxes-3-all,
.box-container.boxes-4-all,
.box-container.boxes-5-all {
  display: grid !important;
  width: 100% !important;
  gap: 1.25rem;
  min-width: 0;
  box-sizing: border-box;
}

.box-container.boxes-2-all {
  grid-template-columns: repeat(2, 1fr) !important;
}

.box-container.boxes-3-all {
  grid-template-columns: repeat(3, 1fr) !important;
}

.box-container.boxes-4-all {
  grid-template-columns: repeat(4, 1fr) !important;
}

.box-container.boxes-5-all {
  grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 1300px) {
  .box-container.boxes-5-all {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 1100px) {
  .box-container.boxes-4-all {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .box-container.boxes-3-all {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .box-container.boxes-2-all,
  .box-container.boxes-3-all,
  .box-container.boxes-4-all,
  .box-container.boxes-5-all {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 0 4px;
  }
}
.box-container-column {
  display: grid;
  justify-content: center;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 50px 30px;
}

.box-bg,
.box-bg-left {
  align-self: start;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease both;

  --accent: var(--green);
  --accent-2: #81c784;
  --tint: transparent;
  --bar-thickness: 4px;
}

@media (hover: hover) {
  .box-bg:hover,
  .box-bg-left:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
}

.box-bg::before,
.box-bg-left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.box-bg::before {
  width: 100%;
  height: var(--bar-thickness);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.box-bg-left {
  --bar-thickness: 6px;
}
.box-bg-left::before {
  width: var(--bar-thickness);
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
}

.box-bg.active,
.box-bg.yellow,
.box-bg-left.active,
.box-bg-left.yellow {
  --accent: var(--main-color);
  --accent-2: var(--yellow);
  --tint: rgba(255, 183, 3, 0.1);
}
.box-bg.green,
.box-bg-left.green {
  --accent: var(--green);
  --accent-2: #81c784;
  --tint: rgba(40, 167, 69, 0.06);
}
.box-bg.desactive,
.box-bg.red,
.box-bg-left.desactive,
.box-bg-left.red {
  --accent: var(--red);
  --accent-2: #e57373;
  --tint: rgba(255, 50, 50, 0.08);
}
.box-bg.blue,
.box-bg-left.blue {
  --accent: var(--blue);
  --accent-2: #64b5f6;
  --tint: rgba(0, 123, 255, 0.08);
}
.box-bg.none,
.box-bg-left.none {
  --tint: transparent;
}

.box-bg.none::before,
.box-bg-left.none::before {
  display: none;
  content: none;
}
.box {
  background: linear-gradient(var(--tint), var(--tint)), var(--white);
  border: var(--border);
  padding: 20px;
  background: var(--white2);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box.error {
  border: 2px solid var(--red) !important;
}
.box.active {
  border: 2px solid var(--main-color) !important;
}

.box-bg:focus-within,
.box-bg-left:focus-within {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.06),
    0 0 0 6px rgba(0, 0, 0, 0.04);
}
.box-bg.is-clickable,
.box-bg-left.is-clickable {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .box-bg,
  .box-bg-left {
    animation: none;
    transition: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.form form button,
.form form .question label,
.form form .question input[type="text"] {
  -moz-transition: all 0.25s cubic-bezier(0.53, 0.01, 0.35, 1.5);
  -o-transition: all 0.25s cubic-bezier(0.53, 0.01, 0.35, 1.5);
  -webkit-transition: all 0.25s cubic-bezier(0.53, 0.01, 0.35, 1.5);
  transition: all 0.25s cubic-bezier(0.53, 0.01, 0.35, 1.5);
}
.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 90vh;
  padding: 30px 25px;
  border-radius: 20px;
}
.form.not-full {
  min-height: auto;
  height: auto;
}
.form form {
  width: 90%;
  background: var(--white2);
  border: var(--border);
  box-sizing: border-box;
}

.input {
  position: relative;
  margin-bottom: 1.5rem;
  width: 100%;
}

.input {
  position: relative;
  margin-bottom: 1.5rem;
  width: 100%;
}
.input:has(.help-icon:hover),
.input:has(.help-icon:focus) {
  margin-bottom: 6rem;
  transition: margin-bottom 0.3s;
}

.input input::placeholder,
.input textarea::placeholder {
  color: transparent;
}
.input input:hover,
.input input:focus,
.input select:hover,
.input select:focus,
.input textarea:hover,
.input textarea:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 8px var(--main-color);
  outline: none;
}
tr:hover .input input,
tr:hover .input select,
tr:hover .input textarea {
  border-color: var(--black);
  box-shadow: 0 0 8px var(--black);
}
.input input:-webkit-autofill,
.input input:-webkit-autofill:hover,
.input input:-webkit-autofill:focus,
.input input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px var(--white) inset !important;
  box-shadow: 0 0 0px 1000px var(--white) inset !important;
  -webkit-text-fill-color: var(--black) !important;
}
.input select {
  font-size: 2rem;
  padding: 1.2rem 1rem 0.4rem 2.5rem;
}
.input textarea {
  resize: vertical;
  min-height: 6rem;
  padding: 1rem 1rem 1rem 2.5rem;
}
.input input + label,
.input textarea + label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: transparent;
  padding: 0 0.2rem;
  font-size: 1.5rem;
  color: var(--black2);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 3rem);
  transition:
    top 0.3s,
    font-size 0.3s,
    color 0.3s,
    left 0.3s;
}
.input input,
.input select,
.input textarea {
  width: 100%;
  background: transparent;
  border: 2px solid var(--black2);
  border-radius: 12px;
  padding: 1rem 1rem 1rem 1rem;
  font-size: 1rem;
  color: var(--black);
  transition:
    background 0.5s,
    border-color 0.3s,
    box-shadow 0.3s,
    padding 0.3s;
}

tr:nth-child(even) .input input + label,
tr:nth-child(even) .input textarea + label {
  background: var(--white2);
}
tr:hover .input input + label,
tr:hover .input textarea + label {
  background: var(--main-color);
  color: var(--black);
}
.input input:focus + label,
.input input:not(:placeholder-shown) + label,
.input textarea:focus + label,
.input textarea:not(:placeholder-shown) + label,
.input select:focus + label,
.input select:valid + label {
  top: -0.4rem;
  font-size: 1rem;
  color: var(--black2);
  background: var(--white);
  transform: lowercase;
  max-width: 95%;
}
.input select:focus + label,
.input select:valid + label {
  top: 0;
}
.input select + label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  padding: 0 0.5rem;
  font-size: 1.5rem;
  color: var(--black);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 4rem);
  transition:
    top 0.3s,
    left 0.3s,
    transform 0.3s,
    font-size 0.3s,
    color 0.3s,
    background 0.3s;
}

.input input.required-star + label::after,
.input select.required-star + label::after,
.input textarea.required-star + label::after {
  content: " *";
  color: var(--red);
  margin-left: 0.2rem;
  font-weight: bold;
}
.input input[type="date"]::-webkit-calendar-picker-indicator {
  background-color: var(--black);

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/%3E%3C/svg%3E");

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  mask-position: center;

  background-size: contain;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;

  background-image: none;
}
@media (max-width: 768px) {
  .input input + label,
  .input textarea + label,
  .input select + label {
    font-size: 1.1rem;
    top: 0.6rem;
  }

  .input select + label {
    top: 50%;
  }

  .input input,
  .input select,
  .input textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}
.help-icon ~ input,
.help-icon ~ select,
.help-icon ~ textarea {
  padding-left: 2.5rem;
}
.help-icon ~ input + label {
  left: 2.5rem;
}
.help-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--black2);
  cursor: pointer;
  z-index: 2;
}
.tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  background: var(--black2);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}
.tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 1.5rem;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent var(--black2) transparent;
}
.help-icon:hover + .tooltip,
.help-icon:focus + .tooltip {
  visibility: visible;
  opacity: 1;
}
.input.select {
  position: relative;
  display: inline-block;
  width: 100%;
}

.input.select select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 0.75rem 2rem 0.75rem 1rem;
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--black2);
  border-radius: 12px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

.input.select select:hover,
.input.select select:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 8px var(--main-color);
  outline: none;
}

.input.select select::-ms-expand {
  display: none;
}

.input.select::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--black);
  font-size: 1rem;
  transition: transform 0.3s;
}

.input.select:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
}

.input.select select option {
  background: var(--white2);
  color: var(--black);
  padding: 0.5rem 1rem;
}

.input.select select option:hover,
.input.select select option:checked {
  background: var(--main-color);
  color: var(--white);
}

.input.select select::-webkit-scrollbar {
  width: 6px;
}

.input.select select::-webkit-scrollbar-thumb {
  background: var(--black2);
  border-radius: 3px;
}
/* --- Główny kontener --- */
.file-input {
  position: relative;
  margin-bottom: 1.5rem;
}

.file-input > label {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-50%);
  background: var(--white); /* Tło zgodne z motywem */
  padding: 0 0.5rem;
  color: var(--black2);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2;
}

/* --- Obszar upuszczania --- */
.file-input .file-drop {
  position: relative;
  border: 2px dashed var(--black3); /* Użyłem black3 (szary) dla nieaktywnego stanu */
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Efekt po najechaniu (Hover) */
.file-input .file-drop.hover {
  border-color: var(--main-color);
  background: var(--tint-yellow); /* Delikatne żółte tło z Twoich zmiennych */
  box-shadow: 0 0 15px var(--tint-yellow);
}

.file-input .file-drop.has-preview {
  padding: 1rem;
  justify-content: flex-start;
  border-style: solid;
  border-color: var(--white2); /* Subtelniejsza ramka gdy są już pliki */
}

/* --- Placeholder (ikona i tekst zachęty) --- */
.file-input .file-drop .placeholder {
  pointer-events: none;
  animation: fadeIn 0.3s;
}

.file-input .file-drop .placeholder i {
  font-size: 2.5rem;
  color: var(--black3); /* Szary kolor ikon w stanie spoczynku */
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}

.file-input .file-drop.hover .placeholder i {
  color: var(--main-color); /* Ikona zmienia kolor na główny po najechaniu */
}

.file-input .file-drop .placeholder p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--black2);
  line-height: 1.4;
}

/* --- Ukryty input --- */
.file-input .file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.file-drop.has-preview input[type="file"] {
  display: none;
}

/* --- Kontener podglądu --- */
.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

/* --- Pojedynczy plik (Karta) --- */
.file-item {
  position: relative;
  width: 110px;
  background: var(--white); /* Jasne tło */
  border: 1px solid var(--white2);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.file-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow); /* Twoja zmienna cienia */
  border-color: var(--main-color);
}

/* --- Miniaturka / Ikona --- */
.file-item .file-thumb {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--gray-bg); /* Szare tło pod obrazek/ikonę */
}

.file-item .file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-item .file-thumb.icon i {
  font-size: 2.5rem;
  color: var(--black2);
}

/* --- Metadane (Nazwa i rozmiar) --- */
.file-item .file-meta {
  text-align: center;
}

.file-item .name {
  font-size: 0.75rem;
  color: var(--black2);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-bottom: 2px;
}

.file-item .size {
  font-size: 0.65rem;
  color: var(--black3);
}

.file-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s;
  z-index: 20;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.file-item:hover .file-remove {
  opacity: 1;
  transform: scale(1);
}

.file-remove:hover {
  background: var(--red-text);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  from {
    box-shadow: 0 0 8px var(--main-color);
  }
  to {
    box-shadow: 0 0 16px var(--main-color);
  }
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: var(--bg);
  opacity: 0.7;
  transition: opacity 0.2s;
  margin: 10px 0 20px;
}
.slider:hover {
  opacity: 1;
}
.slider::-webkit-slider-runnable-track {
  height: 15px;
  border-radius: 5px;
  background: var(--black);
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--main-color);
  cursor: pointer;
  margin-top: -12.5px;
}
.slider::-moz-range-track {
  height: 15px;
  border-radius: 5px;
  background: var(--white);
}
.slider::-moz-range-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--main-color);
  cursor: pointer;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}
.toggle input {
  display: none;
}
.toggle-align {
}
.toggle-group {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}

.toggle-group.toggle-one {
  grid-template-columns: repeat(1, 1fr);
}

.toggle-group.toggle-two {
  grid-template-columns: repeat(2, 1fr);
}

.toggle-group.toggle-three {
  grid-template-columns: repeat(3, 1fr);
}

.toggle-group.toggle-four {
  grid-template-columns: repeat(4, 1fr);
}

.toggle-group .toggle {
  justify-content: start;
  padding: 0.5rem;
}

/* BAZA */
.toggle {
  /* rozmiar (SM domyślnie) */
  --tgl-w: 56px;
  --tgl-h: 32px;
  --tgl-pad: 2px;

  --tgl-bg-off: var(--white2);
  --tgl-bg-on: var(--green);
  --tgl-knob: calc(var(--tgl-h) - var(--tgl-pad) * 2);
  --tgl-move: calc(var(--tgl-w) - var(--tgl-h)); /* przesunięcie gałki */
  --tgl-outline: var(--blue);

  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  user-select: none;
}

/* rozmiary (opcjonalnie) */
.toggle--xs {
  --tgl-w: 48px;
  --tgl-h: 26px;
}
.toggle--sm {
  --tgl-w: 56px;
  --tgl-h: 32px;
} /* użyte wyżej */
.toggle--md {
  --tgl-w: 72px;
  --tgl-h: 40px;
}
.toggle--lg {
  --tgl-w: 80px;
  --tgl-h: 44px;
} /* Twój stary rozmiar */

.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.toggle-switch {
  position: relative;
  width: var(--tgl-w);
  height: var(--tgl-h);
  border-radius: var(--tgl-h);
  background: var(--tgl-bg-off);
  box-shadow: inset 0 0 0 1px var(--grey);
  transition: background 0.25s ease;
}
.toggle-switch::before {
  content: "";
  position: absolute;
  top: var(--tgl-pad);
  left: var(--tgl-pad);
  width: var(--tgl-knob);
  height: var(--tgl-knob);
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.toggle input:checked + .toggle-switch {
  background: var(--tgl-bg-on);
}
.toggle input:checked + .toggle-switch::before {
  transform: translateX(var(--tgl-move));
}

.toggle input:focus-visible + .toggle-switch {
  outline: 2px solid var(--tgl-outline);
  outline-offset: 2px;
}

.toggle input:disabled + .toggle-switch {
  background: var(--grey);
  box-shadow: inset 0 0 0 1px var(--white2);
  cursor: not-allowed;
  opacity: 0.8;
}
.toggle input:disabled ~ .toggle-body,
.toggle input:disabled ~ .toggle-text {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-text {
  color: var(--black);
  font-size: 1.1rem;
  line-height: 1.2;
}

.toggle-body {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.toggle-title {
  font-weight: 600;
  color: var(--black);
  font-size: 1.05rem;
}
.toggle-desc {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  color: var(--black3, #77838f);
}

.checkbox-aligment {
  margin: 0.6rem 0;
}

@keyframes shake {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-2px);
  }
  40%,
  60% {
    transform: translateX(2px);
  }
}
.toggle:active input:disabled + .toggle-switch {
  animation: shake 0.35s;
}

.radio-group {
  padding-top: 10px;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
}
.radio-option input[type="radio"] {
  display: none;
}
.radio-option label {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--black);
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition:
    border-color 0.3s,
    background 0.3s,
    color 0.3s;
}
.radio-option label:hover {
  border-color: var(--main-color);
}
.radio-option input:checked + label {
  background: var(--main-color);
  border-color: var(--black);
  color: var(--black);
}
.checkbox-group {
  column-count: 3;
  column-gap: 1rem;
  padding: 2rem 0;
}

.checkbox-group > label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  break-inside: avoid-column;
  margin-bottom: 1rem;
  width: 100%;
}

.checkbox-positive,
.checkbox-negative {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.checkbox-positive input,
.checkbox-negative input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkmark {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid var(--black2);
  border-radius: 4px;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.checkmark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: var(--white);
  transition: transform 0.2s;
}
.checkbox-positive .checkmark::after {
  content: "✔";
}
.checkbox-negative .checkmark::after {
  content: "✕";
}
.checkbox-positive input:checked + .checkmark {
  background: var(--green);
  border-color: var(--green);
}
.checkbox-positive input:checked + .checkmark::after {
  transform: translate(-50%, -50%) scale(1);
}
.checkbox-negative input:checked + .checkmark {
  background: var(--red);
  border-color: var(--red);
}
.checkbox-negative input:checked + .checkmark::after {
  transform: translate(-50%, -50%) scale(1);
}
.label-text {
  font-size: 1rem;
  color: var(--black);
}
.form-box-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Kontener na kafelki - używamy Grid dla równych odstępów */
#fontSizePicker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Wygląd pojedynczego kafelka */
.input-type-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  /* Używamy white2/white w zależności od motywu, border dla kontrastu */
  background: var(--white);
  border: 2px solid var(--grey);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Ikona w środku */
.input-type-box i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--black2); /* Lub var(--grey) jeśli wolisz jaśniejsze */
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* Tekst pod ikoną */
.input-type-box span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  transition: color 0.3s ease;
}

/* --- Efekty najechania (Hover) --- */
.input-type-box:hover {
  border-color: color-mix(in srgb, var(--main-color) 50%, var(--grey));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.input-type-box:hover i {
  color: var(--main-color);
}

/* --- Stan Aktywny (Wybrany) --- */
.input-type-box.active {
  border-color: var(--main-color);
  background: color-mix(
    in srgb,
    var(--main-color) 8%,
    var(--white)
  ); /* Delikatne tło w kolorze głównym */
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--main-color) 20%, transparent); /* Efekt glow */
}

.input-type-box.active i {
  color: var(--main-color);
  transform: scale(1.1);
}

.input-type-box.active span {
  color: var(--main-color);
  font-weight: 800;
}

.option-content {
  display: none;
}
.input-type-box:nth-child(1) i {
  font-size: 1.4rem;
}
.input-type-box:nth-child(2) i {
  font-size: 1.9rem;
}
.input-type-box:nth-child(3) i {
  font-size: 2.4rem;
}
.input-radio-group {
  margin: 1.5rem 0;
}
.input-radio-group__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.input-radio-options {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}
.input-radio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.input-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.input-radio-custom {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--black);
  border-radius: 50%;
  box-sizing: border-box;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.input-radio-item:hover .input-radio-custom {
  border-color: var(--main-color);
}
.input-radio:checked + .input-radio-custom {
  background: var(--main-color);
  border: 2px dotted var(--black2);
}
.input-radio-num {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--black2);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: var(--white);
  transition: box-shadow 0.3s ease;
  margin: 10px 0 30px;
}

table:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

table caption {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--black2);
}

table thead th {
  background: var(--main-color);
  color: var(--black2);
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1;
}

table tbody td {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--white2);
  color: var(--black);
}

table tbody tr:nth-child(even) {
  background: var(--white2);
}

table tbody tr {
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

table tbody tr:hover {
  background: var(--main-color);
  transform: translateX(4px);
}

table tbody td:first-child {
  position: relative;
}

table tbody tr:hover td:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--black);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.positive,
.positive td {
  color: var(--green) !important;
  font-weight: 900;
}
.negative,
.negative td {
  color: var(--red) !important;
  font-weight: 900;
}

@media (max-width: 1300px) {
  .header {
    width: 20rem;
  }
  .body-with-sidebar {
    padding-left: 21rem;
    padding-right: 1rem;
    transition: padding-left 0.3s ease;
  }
  .header-minimized {
    width: 5rem;
  }
  .logo {
    display: none;
  }

  .boxes-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .boxes-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .boxes-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .boxes-2,
  .boxes-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  /* ------------------------------------------
     3) Tablety poziomo (≤1199px)
     ------------------------------------------ */
}

@media (max-width: 899px) {
  .body-with-sidebar {
    padding-left: 21rem;
    padding-right: 1rem;
  }
  .form form {
    width: 100%;
  }
}

@media (max-width: 599px) {
  body {
    padding: 0 1rem;
    margin-bottom: 4rem;
  }
  .body-with-sidebar {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
  table {
    display: block;
    width: auto;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table th,
  table td {
    white-space: nowrap;
  }
  .flex-btn-row {
    flex-direction: column;
  }
  .box-container {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    gap: 0.5rem;
  }

  .box-container-column {
    padding: 2rem 0;
  }
  .box-container .box:last-child {
    margin-bottom: 10px;
  }
  .box-bg .box {
    padding: 10px;
  }

  .box-bg-left .box {
    padding: 1.5rem 1rem;
  }

  .boxes-1,
  .boxes-2,
  .boxes-3,
  .boxes-4,
  .boxes-5 {
    grid-template-columns: 1fr;
  }

  .form {
    align-items: center;
    padding: 30px 0;
  }
  .form form {
    width: 100%;
  }
  .checkbox-group {
    column-count: 1;
    padding-bottom: 2rem;
    margin-left: 1rem;
  }
  .checkbox-group > label {
    margin-bottom: 0.7rem;
  }
  .checkbox-aligment {
    margin-left: 1.5rem;
  }

  .toggle-group.toggle-two,
  .toggle-group.toggle-three,
  .toggle-group.toggle-four {
    grid-template-columns: repeat(1, 1fr);
  }
  .form-box-options {
    flex-wrap: wrap;
  }
  .form-box-options {
    gap: 2px;
  }
  .input-type-box {
    padding: 0.7rem 0.3rem;
  }
  h1.heading,
  h1.heading-white,
  h1.heading-side,
  h1.heading-side-white,
  h1.box-heading {
    margin: 0.4rem 0 0.6rem;
  }
  h2.heading,
  h2.heading-white,
  h2.heading-side,
  h2.heading-side-white,
  h2.box-heading {
    margin: 0.5rem 0 0.4rem;
  }
  .btn,
  .accept-btn,
  .option-btn,
  .delete-btn {
    margin-top: 0;
  }
}
/* === STEPper: baseline + animowany progress === */
.wizard-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 1rem;
  padding: 0 0.75rem;
  list-style: none;
  overflow: hidden;
}
.wizard-steps--icons {
  --progress: 0%;
} /* sterujemy tym z JS */
.wizard-steps--icons::before {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 1.5rem;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--line);
}
.wizard-steps--icons::after {
  content: "";
  position: absolute;
  left: 2rem;
  top: 1.5rem;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--green);
  width: var(--progress);
  transition: width 0.45s ease;
}

/* kroki z ikonami */
.wizard-step {
  min-width: 0;
  flex: 1 1 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.wizard-step .step-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white2);
  border: 3px solid var(--line);
  color: var(--ink);
  font-size: 1.1rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.wizard-step .step-label {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
}
@media (min-width: 820px) {
  .wizard-step .step-label {
    font-size: 0.82rem;
  }
}

.wizard-step.is-active .step-icon {
  border-color: var(--main-color);
  background: var(--main-color);
  color: #111;
  box-shadow: 0 0 0 0.25rem rgba(255, 183, 3, 0.18);
}
.wizard-step.is-active .step-label {
  color: var(--ink);
  font-weight: 700;
}
.wizard-step.is-done .step-icon {
  border-color: var(--green);
  background: var(--green);
  color: var(--white2);
}

/* subtelna animacja ikon */
@keyframes wobble-in {
  0% {
    transform: scale(0.9) rotate(-4deg);
  }
  60% {
    transform: scale(1.04) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}
.step-icon.do-intro {
  animation: wobble-in 0.6s ease both;
}
.step-icon.pulse {
  animation: pulse-soft 6s ease-in-out infinite;
}

/* dół strony – dodatkowy padding, żeby sticky przyciski miały oddech */
.wizard-wrap {
  padding-bottom: 3.5rem;
}
/* ikona w kartach typu + warianty ramek */
.type-card__icon {
  font-size: 1.25rem;
  width: 1.25rem;
  color: var(--ink-muted);
}
.type-card--green:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 0.18rem rgba(40, 167, 69, 0.12);
}
.type-card--yellow:has(input:checked) {
  border-color: var(--yellow);
  box-shadow: 0 0 0 0.18rem rgba(243, 156, 18, 0.14);
}
.type-card--blue:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.18rem rgba(0, 123, 255, 0.14);
  background: rgba(0, 123, 255, 0.06); /* delikatne tło dla „Specjalny” */
}
.type-card--blue:has(input:checked) .type-card__icon {
  color: var(--blue);
}
/* kolory ikon nagłówków na podstawie stanu karty */
.card.state-green .card-title i {
  color: var(--green);
}
.card.state-yellow .card-title i {
  color: var(--yellow);
}
.card.state-red .card-title i {
  color: var(--red);
}
.card.state-off .card-title i {
  color: var(--grey);
}
.card.state-blue .card-title i {
  color: var(--blue);
}

/* „mignięcie” przy zmianie stanu */
@keyframes flashCard {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    background: rgba(40, 167, 69, 0.07);
  }
  100% {
    box-shadow: var(--shadow);
    background: var(--paper);
  }
}
.card.flash {
  animation: flashCard 0.6s ease;
}

/* Progres – kolory dla zaznaczonego wiersza (1: wył / 2: wł / 3: wymagany) */
.progress-options > label:nth-child(1):has(input:checked) {
  border-color: var(--red);
  background: rgba(255, 50, 50, 0.06);
}
.progress-options > label:nth-child(2):has(input:checked) {
  border-color: var(--green);
  background: rgba(40, 167, 69, 0.07);
}
.progress-options > label:nth-child(3):has(input:checked) {
  border-color: var(--yellow);
  background: rgba(243, 156, 18, 0.08);
}

/* Priorytet włączony – podkoloruj opis przełącznika */
.card.state-green .toggle.big .toggle-text strong {
  color: var(--green);
}
.card.state-yellow .toggle.big .toggle-text strong {
  color: var(--yellow);
}
.card.state-red .toggle.big .toggle-text strong {
  color: var(--red);
}

/* Subprojekt kompletny – delikatne zielone tło */
.subcard.is-complete {
  background: #f3fbf6;
  border-color: rgba(40, 167, 69, 0.35);
}
.map-wrap {
  height: 220px;
} /* była 260 – można dopasować */
.card.map-off .card-title i {
  color: var(--grey);
}
/* padding dolny dla całej strony */
.wizard-wrap {
  padding-bottom: 4rem;
}

/* Stepper – brak overflow, mniejszy podpis, animowana zielona linia */
.wizard-steps {
  padding: 0 0.75rem;
  overflow: hidden;
}
.wizard-steps--icons {
  --progress: 0%;
}
.wizard-steps--icons::after {
  content: "";
  position: absolute;
  left: 2rem;
  top: 1.5rem;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--green);
  width: var(--progress);
  transition: width 0.45s ease;
}
.wizard-step .step-label {
  font-size: 0.78rem;
}

/* usuń ewentualne łączniki między pojedynczymi krokami (żeby nie było „kreski w prawo”) */
.wizard-step::after {
  display: none !important;
}

/* Type cards – kolory i delikatne tła dla WSZYSTKICH wariantów */
.type-card--green:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 0.18rem rgba(40, 167, 69, 0.12);
  background: rgba(40, 167, 69, 0.07);
}
.type-card--green:has(input:checked) .type-card__icon {
  color: var(--green);
}
.type-card--yellow:has(input:checked) {
  border-color: var(--yellow);
  box-shadow: 0 0 0 0.18rem rgba(243, 156, 18, 0.14);
  background: rgba(243, 156, 18, 0.09);
}
.type-card--yellow:has(input:checked) .type-card__icon {
  color: var(--yellow);
}
.type-card--blue:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.18rem rgba(0, 123, 255, 0.14);
  background: rgba(0, 123, 255, 0.06);
}
.type-card--blue:has(input:checked) .type-card__icon {
  color: var(--blue);
}

/* Stany kart – kolory ikon w nagłówku + flash i tła stanów */
.card.state-green .card-title i {
  color: var(--green);
}
.card.state-yellow .card-title i {
  color: var(--yellow);
}
.card.state-red .card-title i {
  color: var(--red);
}
.card.state-blue .card-title i {
  color: var(--blue);
}
.card.state-off .card-title i {
  color: var(--grey);
}

@keyframes flashCard {
  0% {
    background: rgba(40, 167, 69, 0.07);
  }
  100% {
    background: var(--paper);
  }
}
.card.flash {
  animation: flashCard 0.6s ease;
}

/* Progres – kolorowanie wiersza (1: off / 2: on / 3: required) */
.progress-options > label:nth-child(1):has(input:checked) {
  border-color: var(--red);
  background: rgba(255, 50, 50, 0.06);
}
.progress-options > label:nth-child(2):has(input:checked) {
  border-color: var(--green);
  background: rgba(40, 167, 69, 0.07);
}
.progress-options > label:nth-child(3):has(input:checked) {
  border-color: var(--yellow);
  background: rgba(243, 156, 18, 0.08);
}

/* Subprojekty – po wypełnieniu */
.subcard.is-complete {
  background: #f3fbf6;
  border-color: rgba(40, 167, 69, 0.35);
}

/* ——— Wejśćie (git) ——— */

.entry-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}
.mb-6 {
  margin-bottom: 6px;
}
.mt-6 {
  margin-top: 6px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-10 {
  margin-top: 10px;
}
.mt-14 {
  margin-top: 14px;
}
.text-center {
  text-align: center;
}
.is-hidden {
  display: none;
}
.fade-prep {
  opacity: 0;
  transform: translateY(6px);
}
.toggle-bar {
  margin: 8px 0 16px;
}
.actions-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.edit-slot {
  display: inline-block;
  width: 210px;
}
.w-100 {
  width: 100%;
}
.note-center {
  color: var(--black);
  text-align: center;
  margin-top: 6px;
}
.note {
  color: var(--black);
  margin-top: 6px;
}
.btns-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}
.mini-map-wrap {
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
}
.mini-map {
  height: 100%;
  width: 100%;
}

.location-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--black3);
}
.loc-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--black2);
  color: var(--main-color);
}
.location-line i {
  font-size: 0.9rem;
  opacity: 0.8;
}

.progress {
  margin-top: 10px;
}
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.progress-title {
  color: var(--black2);
  opacity: 0.8;
}
.progress-val {
  color: var(--black2);
  font-weight: 600;
  text-align: right;
  margin-top: 4px;
}
.progress-track {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: var(--white2);
  overflow: hidden;
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: var(--blue);
  transition:
    width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 0.25s ease;
  will-change: width, background-color;
}
.progress.blue .progress-fill,
.box-bg.blue .progress .progress-fill {
  background: var(--blue);
}
.progress.green .progress-fill,
.box-bg.green .progress .progress-fill {
  background: var(--green);
}
.progress.yellow .progress-fill,
.box-bg.yellow .progress .progress-fill {
  background: var(--yellow);
}
.progress.red .progress-fill,
.box-bg.red .progress .progress-fill {
  background: var(--red);
}

.days-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  background: var(--green);
  color: var(--white2);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04) inset,
    0 2px 10px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}
.days-badge i {
  font-size: 0.9em;
}
.days-badge.blue {
  background: var(--blue);
  color: var(--white2);
}
.days-badge.green {
  background: var(--green);
  color: var(--white2);
}
.days-badge.yellow {
  background: var(--yellow);
  color: #111;
}
.days-badge.red {
  background: var(--red);
  color: var(--white2);
}
.days-right {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.time-editor-inline {
  color: var(--main-color);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.time-input {
  font-size: 1.05rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--black3);
  border-radius: 12px;
  background: var(--white2);
  color: var(--black);
  outline: none;
}
.pb-10 {
  padding-bottom: 10px;
}
.ptb-10 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.break-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.break-btn {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--white2);
  border-radius: 12px;
  background: var(--white2);
  color: var(--black2);
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.break-btn:active {
  transform: translateY(1px);
}
.break-btn.active {
  background: var(--main-color);
  border-color: var(--main-color-add);
  color: #111;
}

.progress-track.sm {
  height: 10px;
}
.progress-track.xs {
  height: 8px;
}

.progress-ctl {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.progress-ctl-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--white2);
  background: var(--white2);
  color: var(--black2);
  font-weight: 700;
  transition: transform 0.15s ease;
}
.pbtn:active {
  transform: translateY(1px);
}
.pval {
  min-width: 68px;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
}

.peers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.peer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.peer-name {
  color: var(--black2);
  font-size: 0.95rem;
  opacity: 0.9;
}
.peer-val {
  font-weight: 700;
}

.desc-wrap {
  margin-top: 0.75rem;
}
.desc-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.desc-area {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--white2);
  border-radius: 12px;
  background: var(--white2);
  outline: none;
}
.ptb-10 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.break-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 0.6rem;
}
.break-btn {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--white2);
  border-radius: 12px;
  background: var(--white2);
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.break-btn:active {
  transform: translateY(1px);
}
.break-btn.active {
  background: var(--main-color);
  border-color: var(--main-color-add);
  color: #111;
}

.timebreak-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.time-editor-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.time-input {
  font-size: 1.05rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--white2);
  border-radius: 12px;
  background: var(--white2);
  outline: none;
  width: 100%;
}
.time-note {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--red);
}

.progress-ctl {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.progress-ctl-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--white2);
  background: var(--white2);
  font-weight: 700;
  transition: transform 0.15s ease;
}
.pbtn:active {
  transform: translateY(1px);
}
.pval {
  color: var(--black2);
  min-width: 68px;
  text-align: center;
  font-weight: 800;
  font-size: 1.5rem;
}
.progress-track.sm {
  height: 10px;
}
.progress-track.xs {
  height: 8px;
}
.progress-track.user .progress-fill {
  background: linear-gradient(
    90deg,
    var(--red),
    var(--main-color),
    var(--green)
  );
}

.peers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.peer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.peer-name {
  font-size: 0.95rem;
  opacity: 0.95;
}
.peer-ago {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-left: 0.25rem;
}
.peer-val {
  font-weight: 700;
}

.desc-wrap {
  margin-top: 0.5rem;
}
.desc-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.desc-area {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--white2);
  border-radius: 12px;
  background: var(--white2);
  outline: none;
}
.note-center {
  text-align: center;
}

.btn.danger {
  background: var(--red);
  color: var(--white2);
  border: 1px solid #d91f1f;
}
.ptb-10 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.break-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 0.6rem;
}
.break-btn {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--white2);
  border-radius: 12px;
  background: var(--white2);
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.break-btn:active {
  transform: translateY(1px);
}
.break-btn.active {
  background: var(--main-color);
  border-color: var(--main-color-add);
  color: #111;
}

.timebreak-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.time-editor-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
.time-input {
  font-size: 1.05rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--white2);
  border-radius: 12px;
  background: var(--white2);
  outline: none;
  width: 260px;
  max-width: 100%;
}
.time-note {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--red);
}

.progress-ctl {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.progress-ctl-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--white2);
  background: var(--white2);
  font-weight: 700;
  transition: transform 0.15s ease;
}
.pbtn:active {
  transform: translateY(1px);
}
.pval {
  min-width: 68px;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
}
.avg-note {
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.9;
}

.progress-track.sm {
  height: 10px;
}
.progress-track.xs {
  height: 8px;
}
.progress-track.user .progress-fill {
  background: linear-gradient(
    90deg,
    var(--red),
    var(--main-color),
    var(--green)
  );
}

.peers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.peer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.peer-name {
  font-size: 0.95rem;
  opacity: 0.95;
}
.peer-ago {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-left: 0.25rem;
}
.peer-val {
  font-weight: 700;
}

.prog-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
}
.prog-badge.blue {
  background: var(--blue);
  color: var(--white2);
}
.prog-badge.green {
  background: var(--green);
  color: var(--white2);
}
.prog-badge.yellow {
  background: var(--yellow);
  color: #111;
}
.prog-badge.red {
  background: var(--red);
  color: var(--white2);
}
/* ---  MODALE --- */
@keyframes modalSuccessPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes modalDangerShake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-4px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(4px);
  }
}

@keyframes modalWarningWobble {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(-5deg) translateX(-2px);
  }
  30% {
    transform: rotate(5deg) translateX(2px);
  }
  45% {
    transform: rotate(-5deg) translateX(-2px);
  }
  60% {
    transform: rotate(5deg) translateX(2px);
  }
  75% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes modalInfoPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
body.body-modal-open {
  overflow: hidden;
}

body.body-modal-open .desktop-sidebar,
body.body-modal-open .mobile-nav-container,
body.body-modal-open .menu-overlay {
  pointer-events: none;
  filter: blur(2px) grayscale(50%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.modal-overlay {
  z-index: 9999 !important;
}
.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  border-radius: 32px 32px 0 0;
  padding: 30px 25px;
  box-shadow: var(--box-shadow);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 1px solid var(--white3);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-box::-webkit-scrollbar {
  display: none;
}
.modal-overlay.is-visible .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: var(--white2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black3);
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  transition: 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--white3);
  color: var(--black);
}

.modal-header {
  text-align: center;
}

.modal-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  margin: 0;
}

.modal-text {
  text-align: center;
  color: var(--black3);
  font-size: 1rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.modal-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.1s,
    opacity 0.2s;
}
.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
  transform: none !important;
}

.modal-btn.is-delayed {
  position: relative;
  overflow: hidden;
}
.modal-btn:active {
  transform: scale(0.98);
}

.modal-btn.full-width {
  width: 100%;
  flex: 100%;
}

.modal-theme-success .modal-icon-wrapper {
  background: var(--green-bg);
  color: var(--green-text);
}

.modal-theme-success .modal-icon-wrapper i {
  animation: modalSuccessPulse 1.5s infinite ease-in-out;
}

.modal-theme-success .modal-btn.primary {
  background: var(--green);
  color: var(--black);
}
body.dark .modal-theme-success .modal-btn.primary {
  color: var(--white);
}
.modal-theme-danger .modal-icon-wrapper {
  background: var(--red-bg);
  color: var(--red-text);
}

.modal-theme-danger .modal-icon-wrapper i {
  animation: modalDangerShake 0.6s ease-in-out;
}

.modal-theme-danger .modal-btn.primary {
  background: var(--red);
  color: var(--black);
}
body.dark .modal-theme-danger .modal-btn.primary {
  color: var(--white);
}
.modal-theme-warning .modal-icon-wrapper {
  background: var(--orange-bg);
  color: var(--orange-text);
}

.modal-theme-warning .modal-icon-wrapper i {
  animation: modalWarningWobble 1.2s infinite ease-in-out;
}

.modal-theme-warning .modal-btn.primary {
  background: var(--orange);
  color: var(--black);
}
body.dark .modal-theme-warning .modal-btn.primary {
  color: var(--white);
}

.modal-theme-info .modal-icon-wrapper {
  background: var(--blue-bg);
  color: var(--blue-text);
}

.modal-theme-info .modal-icon-wrapper i {
  animation: modalInfoPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-theme-info .modal-btn.primary {
  background: var(--blue);
  color: var(--black);
}

.modal-btn.secondary {
  background: var(--white2);
  color: var(--black);
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }

  body.body-with-sidebar .modal-overlay {
    left: calc(var(--sidebar-w)+30px);
    width: calc(100% - var(--sidebar-w));
  }

  body.body-with-sidebar-min .modal-overlay {
    left: var(--sidebar-min-w);
    width: calc(100% - var(--sidebar-min-w));
  }

  .modal-box {
    border-radius: 32px;
    transform: scale(0.95);
    opacity: 0;
  }

  .modal-overlay.is-visible .modal-box {
    transform: scale(1);
    opacity: 1;
  }
}
/* ---  PASEK AKCJI (TELEFON) --- */
.entry-action-panel {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 20px 20px 0 0;
  padding: 15px;
  padding-bottom: max(15px, env(safe-area-inset-bottom));
  z-index: 999;
  border-top: 1px solid var(--white2);
}

.entry-action-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- GŁÓWNY PRZYCISK WCHODZĘ --- */
.btn-entry-main {
  flex: 1;
  font-size: 1.4rem;
  padding: 1.1rem;
  border-radius: 12px;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background: var(--green-bg);
  color: var(--green-text);
  border: 2px solid var(--green);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-entry-main:hover {
  background: var(--green);
  color: var(--white);
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.1);
}

.btn-entry-back {
  flex: 0 0 60px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* --- INNE ELEMENTY UI --- */
.coins-warning-text {
  text-align: center;
  display: none;
  color: var(--orange-text);
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: -5px;
}

.badge-new-project {
  display: inline-flex;
  align-items: center;
  background: var(--pink-bg);
  color: var(--pink-text);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  border: 1px solid var(--pink);
}

.dynamic-btns-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}
