/* static/style.css */

/* --- RESET & FUNDAMENTY --- */
:root {
    --sage-green: #bcc9b7;
    --light-sage: #e8ede8;
    --dark-green: #4a5d4a;
    --beige-calm: #fdfaf5;
    --text-main: #3d3d3d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;

    /* --- EFEKTOWNA SZACHOWNICA NA TLE --- */
    background-color: #f4f6f3; /* Kolor podstawowy (bardzo jasna szałwiowa biel) */
    background-image:
        linear-gradient(45deg, #ffffff 25%, transparent 25%),
        linear-gradient(-45deg, #ffffff 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ffffff 75%),
        linear-gradient(-45deg, transparent 75%, #ffffff 75%);
    background-size: 30px 30px; /* Wielkość kwadracików w szachownicy (możesz zwiększyć np. do 40px) */
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
}

.container {
    max-width: 800px;
    margin: 40px auto;        /* 40px marginesu od góry i dołu stworzy ramkę z szachownicy */
    background-color: #ffffff; /* Czyste, białe tło dla samej listy */
    padding: 30px;
    border-radius: 20px;       /* Ładne, mocno zaokrąglone rogi naszej karty */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Delikatny cień, żeby karta "odkleiła się" od szachownicy */
}

/* --- NAGŁÓWEK --- */
header {
    text-align: center;       /* Wszystko wraca do środka */
    padding: 20px 0;
    margin-bottom: 25px;
}

.header-logo {
    display: block;
    max-height: 280px;        /* Twoja torba będzie duża i wyraźna */
    width: auto;
    margin-left: auto;        /* Te dwie linijki idealnie... */
    margin-right: auto;       /* ...wyśrodkują obrazek na stronie */
    margin-bottom: 15px;
    background-color: #ffffff; /* Białe tło pod torbą */
    border-radius: 12px;
    padding: 8px;
}

header h1 {
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--sage-green);
    margin-left: auto;        /* Te dwie linijki idealnie... */
    margin-right: auto;       /* ...wyśrodkują obrazek na stronie */
    margin-bottom: 5px;
}

header p {
    color: #888;
    font-size: 1.1rem;
    margin: 0;
}
/* --- KARTY HOSPITAL --- */
.hospital-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- LISTA PRZEDMIOTÓW --- */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-row {
    background-color: var(--light-sage);
    padding: 18px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}

.item-row:hover {
    background-color: #dfe7df;
}

.item-row span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- STYL DLA SPAKOWANYCH --- */
.item-row.checked {
    background-color: #f1f3f1;
    color: #b0b0b0;
    opacity: 0.8;
}

.item-row.checked .item-name {
    font-weight: 400;
}

.checkbox-btn:focus-visible,
.delete-btn:focus-visible {
    outline: 3px solid var(--sage-green);
    outline-offset: 3px;
    border-radius: 6px;
}

/* --- PRZYCISK CHECKBOX --- */
.checkbox-btn {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.item-row form {
    display: flex;
    flex-shrink: 0;
    margin: 0;
}

.empty-category {
    padding: 16px;
    color: #888;
    text-align: center;
    background-color: #fafafa;
    border-radius: 10px;
}

.delete-btn {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.delete-btn:hover {
    opacity: 1;
}

/* --- STOPKA --- */
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    color: #aaa;
}

/* --- STYL DLA FORMULARZA DODAWANIA --- */
.add-item-form {
    border: 1px solid rgba(188, 201, 183, 0.4); /* Delikatna szałwiowa obwódka */
    background-color: #fafbfa; /* Bardzo jasny, świeży odcień */
}

.add-item-form input:focus,
.add-item-form select:focus {
    outline: 2px solid var(--sage-green); /* Ładne podświetlenie przy kliknięciu */
}

.add-item-form button:hover {
    background-color: var(--dark-green); /* Ciemniejsza zieleń po najechaniu myszką */
    transition: background-color 0.2s ease;
}

/* --- POSTĘP PAKOWANIA --- */

.progress-card {
    padding: 22px;
}

.progress-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.progress-title {
    margin-bottom: 4px;
    color: var(--dark-green);
    font-size: 1.3rem;
    font-weight: 700;
}

.progress-description {
    color: #888;
    font-size: 0.95rem;
}

.progress-percent {
    flex-shrink: 0;
    color: var(--dark-green);
    font-size: 1.5rem;
    font-weight: 800;
}

.progress-bar {
    width: 100%;
    height: 14px;
    overflow: hidden;
    background-color: #e7e9e6;
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--sage-green);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.progress-complete {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 16px;
    padding: 14px;
    color: var(--dark-green);
    text-align: center;
    background-color: var(--light-sage);
    border-radius: 12px;
}

.progress-complete strong {
    font-size: 1.1rem;
}

.progress-complete span {
    font-size: 0.95rem;
}

/* --- POSTĘP PAKOWANIA --- */

.progress-card {
    padding: 22px;
}

.progress-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.progress-title {
    margin-bottom: 4px;
    color: var(--dark-green);
    font-size: 1.3rem;
    font-weight: 700;
}

.progress-description {
    color: #888;
    font-size: 0.95rem;
}

.progress-percent {
    flex-shrink: 0;
    color: var(--dark-green);
    font-size: 1.5rem;
    font-weight: 800;
}

.progress-bar {
    width: 100%;
    height: 14px;
    overflow: hidden;
    background-color: #e7e9e6;
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--sage-green);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.progress-complete {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 16px;
    padding: 14px;
    color: var(--dark-green);
    text-align: center;
    background-color: var(--light-sage);
    border-radius: 12px;
}

.progress-complete strong {
    font-size: 1.1rem;
}

.progress-complete span {
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    body {
        background-image: none;
    }

    .container {
        width: 100%;
        margin: 0;
        padding: 16px;
        border-radius: 0;
    }

    header {
        padding: 10px 0;
        margin-bottom: 18px;
    }

    .header-logo {
        width: min(100%, 220px);
        height: auto;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .hospital-card {
        padding: 18px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .item-row {
        padding: 14px;
        gap: 10px;
    }

    .item-row span {
        font-size: 1rem;
    }

    .checkbox-btn {
        font-size: 1.3rem;
    }
}
.progress-header {
    gap: 10px;
}

.progress-title {
    font-size: 1.15rem;
}

.progress-description {
    font-size: 0.9rem;
}

.progress-percent {
    font-size: 1.3rem;
}

/* --- RESETOWANIE LISTY --- */

.reset-section {
    margin-top: 32px;
    padding-top: 24px;
    padding-bottom: 20px;
    text-align: center;
    border-top: 1px solid #e7e9e6;
}

.reset-btn {
    padding: 11px 20px;
    border: 1px solid #c8cec8;
    background-color: transparent;
    color: #657066;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.reset-btn:hover {
    background-color: #f3f5f2;
    border-color: var(--sage-green);
    color: var(--dark-green);
}

.reset-btn:focus-visible {
    outline: 3px solid rgba(122, 143, 122, 0.3);
    outline-offset: 3px;
}

.reset-description {
    margin-top: 8px;
    color: #999;
    font-size: 0.85rem;
}
[hidden] {
    display: none !important;
}

.hero {
    text-align: center;
    padding: 32px 24px 20px;
}

.hero-image {
    display: block;
    width: min(100%, 820px);
    height: auto;
    margin: 0 auto 18px;
    object-fit: contain;
}

.hero h1 {
    margin: 0;
    color: #aebfa9;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1;
}

.hero-subtitle {
    max-width: 760px;
    margin: 14px auto 0;
    color: #777;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .hero {
        padding: 20px 14px 16px;
    }

    .hero-image {
        width: 100%;
        margin-bottom: 12px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}
/* --- ANIMACJE ODHACZANIA --- */

.item-row {
    transform: scale(1);
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        opacity 0.25s ease,
        transform 0.18s ease,
        box-shadow 0.25s ease;
}

.item-row:active {
    transform: scale(0.985);
}

.item-name {
    position: relative;
    flex: 1;
    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.item-name::after {
    content: "";
    position: absolute;
    left: 0;
    top: 52%;
    width: 0;
    height: 2px;
    background-color: currentColor;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.item-row.checked {
    transform: scale(0.99);
    background-color: #f1f3f1;
    color: #9ca49c;
    opacity: 0.82;
    box-shadow: inset 4px 0 0 var(--sage-green);
}

.item-row.checked .item-name {
    text-decoration: none;
}

.item-row.checked .item-name::after {
    width: 100%;
}

.checkbox-btn {
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.checkbox-btn:hover {
    transform: scale(1.12);
}

.checkbox-btn:active {
    transform: scale(0.85);
}

.item-row.checked .checkbox-btn {
    animation: check-pop 0.35s ease;
}

@keyframes check-pop {
    0% {
        transform: scale(0.7) rotate(-8deg);
    }

    55% {
        transform: scale(1.25) rotate(4deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .item-row,
    .item-name,
    .item-name::after,
    .checkbox-btn {
        transition: none;
        animation: none;
    }
}
/* --- ŚWIĘTOWANIE PO SPAKOWANIU 100% --- */

.progress-card {
    position: relative;
    overflow: hidden;
}

.progress-complete {
    position: relative;
    z-index: 2;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(188, 201, 183, 0.65);
    box-shadow: 0 8px 24px rgba(74, 93, 74, 0.1);
}

.progress-complete.celebrate {
    animation: celebration-card 0.7s ease both;
}

.celebration-icon {
    margin-bottom: 6px;
    font-size: 2.2rem;
    animation: celebration-icon 0.7s ease both;
}

.progress-complete strong {
    font-size: 1.25rem;
}

.progress-complete span {
    max-width: 460px;
    line-height: 1.5;
}

.confetti-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 9px;
    height: 14px;
    border-radius: 3px;
    opacity: 0;
    animation: confetti-fall 1.8s ease-out forwards;
}

@keyframes celebration-card {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    60% {
        transform: translateY(-3px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes celebration-icon {
    0% {
        transform: scale(0.4) rotate(-18deg);
    }

    65% {
        transform: scale(1.25) rotate(8deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes confetti-fall {
    0% {
        opacity: 0;
        transform:
            translateY(-10px)
            rotate(0deg);
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            translateY(240px)
            rotate(620deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .progress-complete.celebrate,
    .celebration-icon,
    .confetti-piece {
        animation: none;
    }
}

.pin-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.35;
    filter: grayscale(1);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background-color 0.2s ease,
        filter 0.2s ease;
}

.pin-btn:hover {
    opacity: 0.75;
    transform: scale(1.12) rotate(-8deg);
    background-color: rgba(217, 199, 158, 0.2);
}

.pin-btn:active {
    transform: scale(0.9);
}

.pin-btn.active {
    opacity: 1;
    filter: grayscale(0);
    background-color: rgba(217, 199, 158, 0.3);
    animation: pin-pop 0.35s ease;
}

.item-row.pinned {
    background-color: #fffaf0;
    box-shadow:
        inset 4px 0 0 #d9c79e,
        0 3px 12px rgba(74, 93, 74, 0.08);
}

.item-row.pinned .item-name {
    font-weight: 600;
}

@keyframes pin-pop {
    0% {
        transform: scale(0.7) rotate(-20deg);
    }

    60% {
        transform: scale(1.25) rotate(8deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}
/* =========================
   KREATOR LISTY
========================= */

.wizard-card {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
}

.wizard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--light-sage);
    font-size: 28px;
}

.wizard-heading h2 {
    margin-bottom: 7px;
    color: var(--dark-green);
    font-size: 1.55rem;
}

.wizard-heading p {
    color: var(--text-main);
    line-height: 1.55;
}

.wizard-form {
    display: grid;
    gap: 22px;
}

.wizard-field {
    display: grid;
    gap: 9px;
}

.wizard-field label,
.wizard-field legend {
    color: var(--dark-green);
    font-weight: 700;
}

.wizard-field input[type="number"],
.wizard-field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--sage-green);
    border-radius: 10px;
    background-color: white;
    color: var(--text-main);
    font-size: 1rem;
}

.wizard-field input[type="number"]:focus,
.wizard-field select:focus {
    outline: 3px solid rgba(188, 201, 183, 0.3);
    border-color: var(--dark-green);
}

.wizard-radio-group {
    margin: 0;
    padding: 0;
    border: none;
}

.wizard-radio-group legend {
    margin-bottom: 10px;
}

.wizard-radio-option {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid var(--light-sage);
    border-radius: 10px;
    background-color: #ffffff;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.wizard-radio-option:hover {
    border-color: var(--sage-green);
    background-color: var(--beige-calm);
    transform: translateY(-1px);
}

.wizard-radio-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--dark-green);
}

.wizard-note {
    padding: 12px 14px;
    border-radius: 10px;
    background-color: var(--light-sage);
    color: var(--dark-green);
    font-size: 0.92rem;
    line-height: 1.5;
}

.wizard-submit-btn {
    justify-self: start;
    padding: 13px 24px;
    border: none;
    border-radius: 10px;
    background-color: var(--dark-green);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.wizard-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(74, 93, 74, 0.2);
}

.wizard-submit-btn:active {
    transform: translateY(0);
}


/* =========================
   PODSUMOWANIE PROFILU
========================= */

.profile-summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-summary-label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-green);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-summary h2 {
    margin-bottom: 7px;
    color: var(--dark-green);
    font-size: 1.25rem;
}

.profile-summary p {
    line-height: 1.5;
}

.edit-profile-btn {
    flex-shrink: 0;
    padding: 10px 15px;
    border: 1px solid var(--sage-green);
    border-radius: 9px;
    background-color: transparent;
    color: var(--dark-green);
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.edit-profile-btn:hover {
    background-color: var(--light-sage);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .profile-summary-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .edit-profile-btn,
    .wizard-submit-btn {
        width: 100%;
    }
}

/* =========================
   WYBÓR KATEGORII
========================= */

.category-picker {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 8px;
}

.category-option {
    padding: 10px 14px;
    border: 1px solid var(--sage-green);
    border-radius: 999px;
    background-color: #ffffff;
    color: var(--dark-green);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.category-option:hover {
    background-color: var(--light-sage);
    transform: translateY(-1px);
}

.category-option.active {
    border-color: var(--dark-green);
    background-color: var(--dark-green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(74, 93, 74, 0.18);
}

.category-option:active {
    transform: scale(0.97);
}

.category-option:focus-visible {
    outline: 3px solid rgba(188, 201, 183, 0.45);
    outline-offset: 2px;
}

.category-option[hidden] {
    display: none;
}

@media (max-width: 600px) {
    .category-picker {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-option {
        width: 100%;
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}
.midwife-tip {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid var(--sage-green);
    border-radius: 14px;
    background-color: #eef3ec;
    color: var(--dark-green);
    line-height: 1.55;
}

.midwife-tip strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

.midwife-tip p {
    margin: 6px 0;
}

.midwife-tip-info {
    color: #556454;
    font-size: 0.95rem;
}

.hospital-provided-card {
    margin-top: 24px;
    padding: 18px 22px;
    background: #f7f9f5;
    border: 1px solid #d9e2d3;
    border-radius: 16px;
}

.hospital-provided-card summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    list-style: none;
}

.hospital-provided-card summary::-webkit-details-marker {
    display: none;
}

.hospital-provided-card summary::after {
    content: "▼";
    float: right;
    transition: transform .2s;
}

.hospital-provided-card[open] summary::after {
    transform: rotate(180deg);
}

.hospital-provided-card ul {
    margin: 14px 0 0;
    padding-left: 0;
    list-style: none;
}

.hospital-provided-card li::before {
    content: "✓ ";
    color: #6b8e5f;
    font-weight: bold;
}

.hospital-provided-card li {
    margin-bottom: 8px;
}

#profile-summary-message {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
    line-height: 1.5;
}

.profile-main-message {
    display: block;
}

.profile-info-row {
    display: block;
}

.profile-info-row strong {
    color: var(--dark-green);
}

#profile-summary-message {
    margin-top: 14px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-info-card {
        text-align: left;
    }
}

.profile-details {
    margin: 18px 0;
}

.profile-detail {
    padding: 14px 0;
    border-bottom: 1px solid rgba(91, 111, 87, 0.22);
}

.profile-detail:first-child {
    padding-top: 0;
}

.profile-detail:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.profile-detail-label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-green);
    font-size: 1rem;
}

.profile-detail-value {
    display: block;
    color: #222;
    font-size: 1rem;
    line-height: 1.45;
}

.profile-summary-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.profile-summary-label {
    display: block;
    margin-bottom: 18px;
}

.profile-detail {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(91, 111, 87, 0.22);
}

.profile-detail-label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-green);
    font-size: 1rem;
    font-weight: 700;
}

.profile-detail-value {
    display: block;
    color: #222;
    font-size: 1rem;
    line-height: 1.45;
}

#profile-summary-message {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(91, 111, 87, 0.22);
    line-height: 1.55;
}

.midwife-tip {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
}

.edit-profile-btn {
    align-self: flex-start;
    margin-top: 14px;
}

.add-item-description {
    margin: 0 0 18px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.instruction-card {
    margin-bottom: 24px;
}

.instruction-card h2 {
    margin-bottom: 14px;
    color: var(--dark-green);
    font-size: 1.2rem;
}

.instruction-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.instruction-list li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.instruction-card summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark-green);
    padding: 4px 0;
}

.instruction-content {
    margin-top: 16px;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
}

.pregnancy-progress-container {
    margin-top: 12px;
}

.pregnancy-progress-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

#pregnancy-progress-percent {
    font-weight: 700;
    color: var(--dark-green);
}

.pregnancy-progress-text {
    margin-top: 8px;
    margin-bottom: 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.print-section {
    margin-top: 24px;
    text-align: center;
}

.print-list-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background-color: var(--sage-green);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.print-list-btn:hover {
    opacity: 0.9;
}

.print-description {
    margin: 8px 0 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================
   WERSJA DO DRUKU / PDF
========================= */

@media print {

    @page {
        size: A4;
        margin: 14mm;
    }

    body {
        background: white;
        color: black;
        font-size: 11pt;
    }

    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    /* Elementy niepotrzebne w PDF */
    #packing-wizard,
    .instruction-card,
    .progress-card,
    .add-item-form,
    .print-section,
    .support-section,
    .reset-section,
    .edit-profile-btn,
    .midwife-tip,
     .hospital-provided-card,
    .hospital-facts-card,
    .pin-btn,
    .delete-btn,
    .confetti-container {
        display: none !important;
    }

    /* Nagłówek */
    .hero {
        margin-bottom: 18px;
        text-align: center;
    }

    .hero-image {
        max-width: 150px;
        height: auto;
    }

    .hero h1 {
        margin: 8px 0 4px;
        font-size: 22pt;
    }

    .hero-subtitle {
        margin: 0;
        font-size: 10pt;
    }

    /* Informacje o terminie i szpitalu */
    .profile-summary {
        margin-bottom: 18px;
        padding: 0 0 14px;
        border-bottom: 1px solid #bbb;
        box-shadow: none;
    }

    .profile-summary-label,
    #profile-summary-message,
    .pregnancy-progress-container {
        display: none !important;
    }

    .profile-detail {
        margin-bottom: 7px;
    }

    /* Kategorie */
    .hospital-card {
        break-inside: avoid;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0 0 18px;
        background: white;
    }

    .section-title {
        margin: 0 0 8px;
        padding-bottom: 5px;
        border-bottom: 1px solid #999;
        font-size: 15pt;
    }

    .category-description {
        margin-bottom: 8px;
        font-size: 9pt;
    }

    /* Elementy listy */
    .item-row {
        display: grid;
        grid-template-columns: 24px 1fr;
        align-items: start;
        gap: 7px;
        margin-bottom: 5px;
        padding: 2px 0;
        border: none;
        background: white;
        break-inside: avoid;
    }

    .checkbox-btn {
        width: 18px;
        height: 18px;
        padding: 0;
        border: 1px solid black;
        border-radius: 2px;
        background: white;
        color: transparent;
        font-size: 0;
    }

    .item-name {
        color: black;
        text-decoration: none;
    }

    /* Spakowane rzeczy są delikatnie przekreślone */
    .item-row.checked .item-name {
        color: #555;
        text-decoration: line-through;
    }

    /* Nie drukuj komunikatów o pustych kategoriach */
    .empty-category {
        display: none;
    }
}

.other-hospital-note {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f7f4ed;
    line-height: 1.6;
}

.other-hospital-note strong {
    display: block;
    margin-bottom: 6px;
}

.other-hospital-note p {
    margin: 0;
}

.cesarean-hospital-info {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f4ed;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hospital-search-wrapper {
    margin-bottom: 12px;
}

.hospital-search-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

#hospital-search {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    font: inherit;
    background: #fff;
}

#hospital-search:focus {
    outline: none;
    border-color: #aabca6;
}

/* =========================
   POSTAW MI KAWĘ
========================= */

.support-section {
    margin: 32px 0 10px;
}

.support-card {
    padding: 28px 24px;
    text-align: center;
    background: linear-gradient(
        135deg,
        #f8faf7 0%,
        var(--light-sage) 100%
    );
    border: 1px solid rgba(188, 201, 183, 0.65);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(74, 93, 74, 0.08);
}

.support-icon {
    margin-bottom: 8px;
    font-size: 2.4rem;
}

.support-card h2 {
    margin: 0 0 12px;
    color: var(--dark-green);
    font-size: 1.35rem;
}

.support-card p {
    max-width: 560px;
    margin: 0 auto 20px;
    color: #5f665f;
    font-size: 0.95rem;
    line-height: 1.65;
}

.coffee-btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 12px;
    background-color: var(--dark-green);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(74, 93, 74, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.coffee-btn:hover {
    transform: translateY(-2px);
    background-color: #3f503f;
    box-shadow: 0 8px 18px rgba(74, 93, 74, 0.22);
}

.coffee-btn:active {
    transform: translateY(0);
}

.coffee-btn:focus-visible {
    outline: 3px solid rgba(188, 201, 183, 0.55);
    outline-offset: 3px;
}

.support-thanks {
    display: block;
    margin-top: 14px;
    color: #899188;
    font-size: 0.82rem;
}

/* Telefon */
@media (max-width: 600px) {
    .support-card {
        padding: 24px 18px;
    }

    .coffee-btn {
        width: 100%;
    }
}

/* =========================
   CO WARTO WIEDZIEĆ O SZPITALU
========================= */

.hospital-facts-card {
    margin-top: 16px;
    padding: 18px 22px;
    background: #f8faf7;
    border: 1px solid #d9e2d3;
    border-radius: 16px;
    color: var(--text-main);
}

.hospital-facts-card summary {
    cursor: pointer;
    color: var(--dark-green);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
}

.hospital-facts-card summary::-webkit-details-marker {
    display: none;
}

.hospital-facts-card summary::after {
    content: "▼";
    float: right;
    margin-left: 12px;
    color: var(--dark-green);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.hospital-facts-card[open] summary::after {
    transform: rotate(180deg);
}

.hospital-facts-card ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.hospital-facts-card li {
    margin-bottom: 10px;
    color: #4f574f;
    line-height: 1.55;
}

.hospital-facts-card li:last-child {
    margin-bottom: 0;
}

.hospital-facts-source {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(91, 111, 87, 0.16);
    color: #899188;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Telefon */
@media (max-width: 600px) {
    .hospital-facts-card {
        padding: 16px 17px;
    }

    .hospital-facts-card summary {
        font-size: 1rem;
    }

    .hospital-facts-card li {
        font-size: 0.95rem;
    }
}
/* =========================
   UJEDNOLICENIE KART SZPITALA
   "Co warto wiedzieć" + "Co zapewnia"
========================= */

.hospital-facts-card,
.hospital-provided-card {
    margin-top: 16px;
    padding: 18px 22px;
    background: #f8faf7;
    border: 1px solid #d9e2d3;
    border-radius: 16px;
    color: var(--text-main);
}

.hospital-facts-card summary,
.hospital-provided-card summary {
    cursor: pointer;
    color: var(--dark-green);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
}

.hospital-facts-card summary::-webkit-details-marker,
.hospital-provided-card summary::-webkit-details-marker {
    display: none;
}

.hospital-facts-card summary::after,
.hospital-provided-card summary::after {
    content: "▼";
    float: right;
    margin-left: 12px;
    color: var(--dark-green);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.hospital-facts-card[open] summary::after,
.hospital-provided-card[open] summary::after {
    transform: rotate(180deg);
}

/* static/style.css */

/* --- RESET & FUNDAMENTY --- */
:root {
    --sage-green: #bcc9b7;
    --light-sage: #e8ede8;
    --dark-green: #4a5d4a;
    --beige-calm: #fdfaf5;
    --text-main: #3d3d3d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;

    /* --- EFEKTOWNA SZACHOWNICA NA TLE --- */
    background-color: #f4f6f3; /* Kolor podstawowy (bardzo jasna szałwiowa biel) */
    background-image:
        linear-gradient(45deg, #ffffff 25%, transparent 25%),
        linear-gradient(-45deg, #ffffff 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ffffff 75%),
        linear-gradient(-45deg, transparent 75%, #ffffff 75%);
    background-size: 30px 30px; /* Wielkość kwadracików w szachownicy (możesz zwiększyć np. do 40px) */
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
}

.container {
    max-width: 800px;
    margin: 40px auto;        /* 40px marginesu od góry i dołu stworzy ramkę z szachownicy */
    background-color: #ffffff; /* Czyste, białe tło dla samej listy */
    padding: 30px;
    border-radius: 20px;       /* Ładne, mocno zaokrąglone rogi naszej karty */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Delikatny cień, żeby karta "odkleiła się" od szachownicy */
}

/* --- NAGŁÓWEK --- */
header {
    text-align: center;       /* Wszystko wraca do środka */
    padding: 20px 0;
    margin-bottom: 25px;
}

.header-logo {
    display: block;
    max-height: 280px;        /* Twoja torba będzie duża i wyraźna */
    width: auto;
    margin-left: auto;        /* Te dwie linijki idealnie... */
    margin-right: auto;       /* ...wyśrodkują obrazek na stronie */
    margin-bottom: 15px;
    background-color: #ffffff; /* Białe tło pod torbą */
    border-radius: 12px;
    padding: 8px;
}

header h1 {
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--sage-green);
    margin-left: auto;        /* Te dwie linijki idealnie... */
    margin-right: auto;       /* ...wyśrodkują obrazek na stronie */
    margin-bottom: 5px;
}

header p {
    color: #888;
    font-size: 1.1rem;
    margin: 0;
}
/* --- KARTY HOSPITAL --- */
.hospital-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- LISTA PRZEDMIOTÓW --- */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-row {
    background-color: var(--light-sage);
    padding: 18px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}

.item-row:hover {
    background-color: #dfe7df;
}

.item-row span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- STYL DLA SPAKOWANYCH --- */
.item-row.checked {
    background-color: #f1f3f1;
    color: #b0b0b0;
    opacity: 0.8;
}

.item-row.checked .item-name {
    font-weight: 400;
}

.checkbox-btn:focus-visible,
.delete-btn:focus-visible {
    outline: 3px solid var(--sage-green);
    outline-offset: 3px;
    border-radius: 6px;
}

/* --- PRZYCISK CHECKBOX --- */
.checkbox-btn {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.item-row form {
    display: flex;
    flex-shrink: 0;
    margin: 0;
}

.empty-category {
    padding: 16px;
    color: #888;
    text-align: center;
    background-color: #fafafa;
    border-radius: 10px;
}

.delete-btn {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.delete-btn:hover {
    opacity: 1;
}

/* --- STOPKA --- */
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    color: #aaa;
}

/* --- STYL DLA FORMULARZA DODAWANIA --- */
.add-item-form {
    border: 1px solid rgba(188, 201, 183, 0.4); /* Delikatna szałwiowa obwódka */
    background-color: #fafbfa; /* Bardzo jasny, świeży odcień */
}

.add-item-form input:focus,
.add-item-form select:focus {
    outline: 2px solid var(--sage-green); /* Ładne podświetlenie przy kliknięciu */
}

.add-item-form button:hover {
    background-color: var(--dark-green); /* Ciemniejsza zieleń po najechaniu myszką */
    transition: background-color 0.2s ease;
}

/* --- POSTĘP PAKOWANIA --- */

.progress-card {
    padding: 22px;
}

.progress-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.progress-title {
    margin-bottom: 4px;
    color: var(--dark-green);
    font-size: 1.3rem;
    font-weight: 700;
}

.progress-description {
    color: #888;
    font-size: 0.95rem;
}

.progress-percent {
    flex-shrink: 0;
    color: var(--dark-green);
    font-size: 1.5rem;
    font-weight: 800;
}

.progress-bar {
    width: 100%;
    height: 14px;
    overflow: hidden;
    background-color: #e7e9e6;
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--sage-green);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.progress-complete {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 16px;
    padding: 14px;
    color: var(--dark-green);
    text-align: center;
    background-color: var(--light-sage);
    border-radius: 12px;
}

.progress-complete strong {
    font-size: 1.1rem;
}

.progress-complete span {
    font-size: 0.95rem;
}

/* --- POSTĘP PAKOWANIA --- */

.progress-card {
    padding: 22px;
}

.progress-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.progress-title {
    margin-bottom: 4px;
    color: var(--dark-green);
    font-size: 1.3rem;
    font-weight: 700;
}

.progress-description {
    color: #888;
    font-size: 0.95rem;
}

.progress-percent {
    flex-shrink: 0;
    color: var(--dark-green);
    font-size: 1.5rem;
    font-weight: 800;
}

.progress-bar {
    width: 100%;
    height: 14px;
    overflow: hidden;
    background-color: #e7e9e6;
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--sage-green);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.progress-complete {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 16px;
    padding: 14px;
    color: var(--dark-green);
    text-align: center;
    background-color: var(--light-sage);
    border-radius: 12px;
}

.progress-complete strong {
    font-size: 1.1rem;
}

.progress-complete span {
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    body {
        background-image: none;
    }

    .container {
        width: 100%;
        margin: 0;
        padding: 16px;
        border-radius: 0;
    }

    header {
        padding: 10px 0;
        margin-bottom: 18px;
    }

    .header-logo {
        width: min(100%, 220px);
        height: auto;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .hospital-card {
        padding: 18px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .item-row {
        padding: 14px;
        gap: 10px;
    }

    .item-row span {
        font-size: 1rem;
    }

    .checkbox-btn {
        font-size: 1.3rem;
    }
}
.progress-header {
    gap: 10px;
}

.progress-title {
    font-size: 1.15rem;
}

.progress-description {
    font-size: 0.9rem;
}

.progress-percent {
    font-size: 1.3rem;
}

/* --- RESETOWANIE LISTY --- */

.reset-section {
    margin-top: 32px;
    padding-top: 24px;
    padding-bottom: 20px;
    text-align: center;
    border-top: 1px solid #e7e9e6;
}

.reset-btn {
    padding: 11px 20px;
    border: 1px solid #c8cec8;
    background-color: transparent;
    color: #657066;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.reset-btn:hover {
    background-color: #f3f5f2;
    border-color: var(--sage-green);
    color: var(--dark-green);
}

.reset-btn:focus-visible {
    outline: 3px solid rgba(122, 143, 122, 0.3);
    outline-offset: 3px;
}

.reset-description {
    margin-top: 8px;
    color: #999;
    font-size: 0.85rem;
}
[hidden] {
    display: none !important;
}

.hero {
    text-align: center;
    padding: 32px 24px 20px;
}

.hero-image {
    display: block;
    width: min(100%, 820px);
    height: auto;
    margin: 0 auto 18px;
    object-fit: contain;
}

.hero h1 {
    margin: 0;
    color: #aebfa9;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1;
}

.hero-subtitle {
    max-width: 760px;
    margin: 14px auto 0;
    color: #777;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .hero {
        padding: 20px 14px 16px;
    }

    .hero-image {
        width: 100%;
        margin-bottom: 12px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}
/* --- ANIMACJE ODHACZANIA --- */

.item-row {
    transform: scale(1);
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        opacity 0.25s ease,
        transform 0.18s ease,
        box-shadow 0.25s ease;
}

.item-row:active {
    transform: scale(0.985);
}

.item-name {
    position: relative;
    flex: 1;
    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.item-name::after {
    content: "";
    position: absolute;
    left: 0;
    top: 52%;
    width: 0;
    height: 2px;
    background-color: currentColor;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.item-row.checked {
    transform: scale(0.99);
    background-color: #f1f3f1;
    color: #9ca49c;
    opacity: 0.82;
    box-shadow: inset 4px 0 0 var(--sage-green);
}

.item-row.checked .item-name {
    text-decoration: none;
}

.item-row.checked .item-name::after {
    width: 100%;
}

.checkbox-btn {
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.checkbox-btn:hover {
    transform: scale(1.12);
}

.checkbox-btn:active {
    transform: scale(0.85);
}

.item-row.checked .checkbox-btn {
    animation: check-pop 0.35s ease;
}

@keyframes check-pop {
    0% {
        transform: scale(0.7) rotate(-8deg);
    }

    55% {
        transform: scale(1.25) rotate(4deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .item-row,
    .item-name,
    .item-name::after,
    .checkbox-btn {
        transition: none;
        animation: none;
    }
}
/* --- ŚWIĘTOWANIE PO SPAKOWANIU 100% --- */

.progress-card {
    position: relative;
    overflow: hidden;
}

.progress-complete {
    position: relative;
    z-index: 2;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(188, 201, 183, 0.65);
    box-shadow: 0 8px 24px rgba(74, 93, 74, 0.1);
}

.progress-complete.celebrate {
    animation: celebration-card 0.7s ease both;
}

.celebration-icon {
    margin-bottom: 6px;
    font-size: 2.2rem;
    animation: celebration-icon 0.7s ease both;
}

.progress-complete strong {
    font-size: 1.25rem;
}

.progress-complete span {
    max-width: 460px;
    line-height: 1.5;
}

.confetti-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 9px;
    height: 14px;
    border-radius: 3px;
    opacity: 0;
    animation: confetti-fall 1.8s ease-out forwards;
}

@keyframes celebration-card {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    60% {
        transform: translateY(-3px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes celebration-icon {
    0% {
        transform: scale(0.4) rotate(-18deg);
    }

    65% {
        transform: scale(1.25) rotate(8deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes confetti-fall {
    0% {
        opacity: 0;
        transform:
            translateY(-10px)
            rotate(0deg);
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            translateY(240px)
            rotate(620deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .progress-complete.celebrate,
    .celebration-icon,
    .confetti-piece {
        animation: none;
    }
}

.pin-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.35;
    filter: grayscale(1);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background-color 0.2s ease,
        filter 0.2s ease;
}

.pin-btn:hover {
    opacity: 0.75;
    transform: scale(1.12) rotate(-8deg);
    background-color: rgba(217, 199, 158, 0.2);
}

.pin-btn:active {
    transform: scale(0.9);
}

.pin-btn.active {
    opacity: 1;
    filter: grayscale(0);
    background-color: rgba(217, 199, 158, 0.3);
    animation: pin-pop 0.35s ease;
}

.item-row.pinned {
    background-color: #fffaf0;
    box-shadow:
        inset 4px 0 0 #d9c79e,
        0 3px 12px rgba(74, 93, 74, 0.08);
}

.item-row.pinned .item-name {
    font-weight: 600;
}

@keyframes pin-pop {
    0% {
        transform: scale(0.7) rotate(-20deg);
    }

    60% {
        transform: scale(1.25) rotate(8deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}
/* =========================
   KREATOR LISTY
========================= */

.wizard-card {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
}

.wizard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--light-sage);
    font-size: 28px;
}

.wizard-heading h2 {
    margin-bottom: 7px;
    color: var(--dark-green);
    font-size: 1.55rem;
}

.wizard-heading p {
    color: var(--text-main);
    line-height: 1.55;
}

.wizard-form {
    display: grid;
    gap: 22px;
}

.wizard-field {
    display: grid;
    gap: 9px;
}

.wizard-field label,
.wizard-field legend {
    color: var(--dark-green);
    font-weight: 700;
}

.wizard-field input[type="number"],
.wizard-field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--sage-green);
    border-radius: 10px;
    background-color: white;
    color: var(--text-main);
    font-size: 1rem;
}

.wizard-field input[type="number"]:focus,
.wizard-field select:focus {
    outline: 3px solid rgba(188, 201, 183, 0.3);
    border-color: var(--dark-green);
}

.wizard-radio-group {
    margin: 0;
    padding: 0;
    border: none;
}

.wizard-radio-group legend {
    margin-bottom: 10px;
}

.wizard-radio-option {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid var(--light-sage);
    border-radius: 10px;
    background-color: #ffffff;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.wizard-radio-option:hover {
    border-color: var(--sage-green);
    background-color: var(--beige-calm);
    transform: translateY(-1px);
}

.wizard-radio-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--dark-green);
}

.wizard-note {
    padding: 12px 14px;
    border-radius: 10px;
    background-color: var(--light-sage);
    color: var(--dark-green);
    font-size: 0.92rem;
    line-height: 1.5;
}

.wizard-submit-btn {
    justify-self: start;
    padding: 13px 24px;
    border: none;
    border-radius: 10px;
    background-color: var(--dark-green);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.wizard-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(74, 93, 74, 0.2);
}

.wizard-submit-btn:active {
    transform: translateY(0);
}


/* =========================
   PODSUMOWANIE PROFILU
========================= */

.profile-summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-summary-label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-green);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-summary h2 {
    margin-bottom: 7px;
    color: var(--dark-green);
    font-size: 1.25rem;
}

.profile-summary p {
    line-height: 1.5;
}

.edit-profile-btn {
    flex-shrink: 0;
    padding: 10px 15px;
    border: 1px solid var(--sage-green);
    border-radius: 9px;
    background-color: transparent;
    color: var(--dark-green);
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.edit-profile-btn:hover {
    background-color: var(--light-sage);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .profile-summary-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .edit-profile-btn,
    .wizard-submit-btn {
        width: 100%;
    }
}

/* =========================
   WYBÓR KATEGORII
========================= */

.category-picker {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 8px;
}

.category-option {
    padding: 10px 14px;
    border: 1px solid var(--sage-green);
    border-radius: 999px;
    background-color: #ffffff;
    color: var(--dark-green);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.category-option:hover {
    background-color: var(--light-sage);
    transform: translateY(-1px);
}

.category-option.active {
    border-color: var(--dark-green);
    background-color: var(--dark-green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(74, 93, 74, 0.18);
}

.category-option:active {
    transform: scale(0.97);
}

.category-option:focus-visible {
    outline: 3px solid rgba(188, 201, 183, 0.45);
    outline-offset: 2px;
}

.category-option[hidden] {
    display: none;
}

@media (max-width: 600px) {
    .category-picker {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-option {
        width: 100%;
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}
.midwife-tip {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid var(--sage-green);
    border-radius: 14px;
    background-color: #eef3ec;
    color: var(--dark-green);
    line-height: 1.55;
}

.midwife-tip strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

.midwife-tip p {
    margin: 6px 0;
}

.midwife-tip-info {
    color: #556454;
    font-size: 0.95rem;
}

.hospital-provided-card {
    margin-top: 24px;
    padding: 18px 22px;
    background: #f7f9f5;
    border: 1px solid #d9e2d3;
    border-radius: 16px;
}

.hospital-provided-card summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    list-style: none;
}

.hospital-provided-card summary::-webkit-details-marker {
    display: none;
}

.hospital-provided-card summary::after {
    content: "▼";
    float: right;
    transition: transform .2s;
}

.hospital-provided-card[open] summary::after {
    transform: rotate(180deg);
}

.hospital-provided-card ul {
    margin: 14px 0 0;
    padding-left: 0;
    list-style: none;
}

.hospital-provided-card li::before {
    content: "✓ ";
    color: #6b8e5f;
    font-weight: bold;
}

.hospital-provided-card li {
    margin-bottom: 8px;
}

#profile-summary-message {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
    line-height: 1.5;
}

.profile-main-message {
    display: block;
}

.profile-info-row {
    display: block;
}

.profile-info-row strong {
    color: var(--dark-green);
}

#profile-summary-message {
    margin-top: 14px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-info-card {
        text-align: left;
    }
}

.profile-details {
    margin: 18px 0;
}

.profile-detail {
    padding: 14px 0;
    border-bottom: 1px solid rgba(91, 111, 87, 0.22);
}

.profile-detail:first-child {
    padding-top: 0;
}

.profile-detail:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.profile-detail-label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-green);
    font-size: 1rem;
}

.profile-detail-value {
    display: block;
    color: #222;
    font-size: 1rem;
    line-height: 1.45;
}

.profile-summary-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.profile-summary-label {
    display: block;
    margin-bottom: 18px;
}

.profile-detail {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(91, 111, 87, 0.22);
}

.profile-detail-label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-green);
    font-size: 1rem;
    font-weight: 700;
}

.profile-detail-value {
    display: block;
    color: #222;
    font-size: 1rem;
    line-height: 1.45;
}

#profile-summary-message {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(91, 111, 87, 0.22);
    line-height: 1.55;
}

.midwife-tip {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
}

.edit-profile-btn {
    align-self: flex-start;
    margin-top: 14px;
}

.add-item-description {
    margin: 0 0 18px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.instruction-card {
    margin-bottom: 24px;
}

.instruction-card h2 {
    margin-bottom: 14px;
    color: var(--dark-green);
    font-size: 1.2rem;
}

.instruction-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.instruction-list li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.instruction-card summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark-green);
    padding: 4px 0;
}

.instruction-content {
    margin-top: 16px;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
}

.pregnancy-progress-container {
    margin-top: 12px;
}

.pregnancy-progress-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

#pregnancy-progress-percent {
    font-weight: 700;
    color: var(--dark-green);
}

.pregnancy-progress-text {
    margin-top: 8px;
    margin-bottom: 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.print-section {
    margin-top: 24px;
    text-align: center;
}

.print-list-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background-color: var(--sage-green);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.print-list-btn:hover {
    opacity: 0.9;
}

.print-description {
    margin: 8px 0 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================
   WERSJA DO DRUKU / PDF
========================= */

@media print {

    @page {
        size: A4;
        margin: 14mm;
    }

    body {
        background: white;
        color: black;
        font-size: 11pt;
    }

    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    /* Elementy niepotrzebne w PDF */
    #packing-wizard,
    .instruction-card,
    .progress-card,
    .add-item-form,
    .print-section,
    .support-section,
    .reset-section,
    .edit-profile-btn,
    .midwife-tip,
     .hospital-provided-card,
    .hospital-facts-card,
    .pin-btn,
    .delete-btn,
    .confetti-container {
        display: none !important;
    }

    /* Nagłówek */
    .hero {
        margin-bottom: 18px;
        text-align: center;
    }

    .hero-image {
        max-width: 150px;
        height: auto;
    }

    .hero h1 {
        margin: 8px 0 4px;
        font-size: 22pt;
    }

    .hero-subtitle {
        margin: 0;
        font-size: 10pt;
    }

    /* Informacje o terminie i szpitalu */
    .profile-summary {
        margin-bottom: 18px;
        padding: 0 0 14px;
        border-bottom: 1px solid #bbb;
        box-shadow: none;
    }

    .profile-summary-label,
    #profile-summary-message,
    .pregnancy-progress-container {
        display: none !important;
    }

    .profile-detail {
        margin-bottom: 7px;
    }

    /* Kategorie */
    .hospital-card {
        break-inside: avoid;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0 0 18px;
        background: white;
    }

    .section-title {
        margin: 0 0 8px;
        padding-bottom: 5px;
        border-bottom: 1px solid #999;
        font-size: 15pt;
    }

    .category-description {
        margin-bottom: 8px;
        font-size: 9pt;
    }

    /* Elementy listy */
    .item-row {
        display: grid;
        grid-template-columns: 24px 1fr;
        align-items: start;
        gap: 7px;
        margin-bottom: 5px;
        padding: 2px 0;
        border: none;
        background: white;
        break-inside: avoid;
    }

    .checkbox-btn {
        width: 18px;
        height: 18px;
        padding: 0;
        border: 1px solid black;
        border-radius: 2px;
        background: white;
        color: transparent;
        font-size: 0;
    }

    .item-name {
        color: black;
        text-decoration: none;
    }

    /* Spakowane rzeczy są delikatnie przekreślone */
    .item-row.checked .item-name {
        color: #555;
        text-decoration: line-through;
    }

    /* Nie drukuj komunikatów o pustych kategoriach */
    .empty-category {
        display: none;
    }
}

.other-hospital-note {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f7f4ed;
    line-height: 1.6;
}

.other-hospital-note strong {
    display: block;
    margin-bottom: 6px;
}

.other-hospital-note p {
    margin: 0;
}

.cesarean-hospital-info {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f4ed;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hospital-search-wrapper {
    margin-bottom: 12px;
}

.hospital-search-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

#hospital-search {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    font: inherit;
    background: #fff;
}

#hospital-search:focus {
    outline: none;
    border-color: #aabca6;
}

/* =========================
   POSTAW MI KAWĘ
========================= */

.support-section {
    margin: 32px 0 10px;
}

.support-card {
    padding: 28px 24px;
    text-align: center;
    background: linear-gradient(
        135deg,
        #f8faf7 0%,
        var(--light-sage) 100%
    );
    border: 1px solid rgba(188, 201, 183, 0.65);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(74, 93, 74, 0.08);
}

.support-icon {
    margin-bottom: 8px;
    font-size: 2.4rem;
}

.support-card h2 {
    margin: 0 0 12px;
    color: var(--dark-green);
    font-size: 1.35rem;
}

.support-card p {
    max-width: 560px;
    margin: 0 auto 20px;
    color: #5f665f;
    font-size: 0.95rem;
    line-height: 1.65;
}

.coffee-btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 12px;
    background-color: var(--dark-green);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(74, 93, 74, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.coffee-btn:hover {
    transform: translateY(-2px);
    background-color: #3f503f;
    box-shadow: 0 8px 18px rgba(74, 93, 74, 0.22);
}

.coffee-btn:active {
    transform: translateY(0);
}

.coffee-btn:focus-visible {
    outline: 3px solid rgba(188, 201, 183, 0.55);
    outline-offset: 3px;
}

.support-thanks {
    display: block;
    margin-top: 14px;
    color: #899188;
    font-size: 0.82rem;
}

/* Telefon */
@media (max-width: 600px) {
    .support-card {
        padding: 24px 18px;
    }

    .coffee-btn {
        width: 100%;
    }
}

/* =========================
   CO WARTO WIEDZIEĆ O SZPITALU
========================= */

.hospital-facts-card {
    margin-top: 16px;
    padding: 18px 22px;
    background: #f8faf7;
    border: 1px solid #d9e2d3;
    border-radius: 16px;
    color: var(--text-main);
}

.hospital-facts-card summary {
    cursor: pointer;
    color: var(--dark-green);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
}

.hospital-facts-card summary::-webkit-details-marker {
    display: none;
}

.hospital-facts-card summary::after {
    content: "▼";
    float: right;
    margin-left: 12px;
    color: var(--dark-green);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.hospital-facts-card[open] summary::after {
    transform: rotate(180deg);
}

.hospital-facts-card ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.hospital-facts-card li {
    margin-bottom: 10px;
    color: #4f574f;
    line-height: 1.55;
}

.hospital-facts-card li:last-child {
    margin-bottom: 0;
}

.hospital-facts-source {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(91, 111, 87, 0.16);
    color: #899188;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Telefon */
@media (max-width: 600px) {
    .hospital-facts-card {
        padding: 16px 17px;
    }

    .hospital-facts-card summary {
        font-size: 1rem;
    }

    .hospital-facts-card li {
        font-size: 0.95rem;
    }
}
/* =========================
   UJEDNOLICENIE KART SZPITALA
   "Co warto wiedzieć" + "Co zapewnia"
========================= */

.hospital-facts-card,
.hospital-provided-card {
    margin-top: 16px;
    padding: 18px 22px;
    background: #f8faf7;
    border: 1px solid #d9e2d3;
    border-radius: 16px;
    color: var(--text-main);
}

.hospital-facts-card summary,
.hospital-provided-card summary {
    cursor: pointer;
    color: var(--dark-green);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
}

.hospital-facts-card summary::-webkit-details-marker,
.hospital-provided-card summary::-webkit-details-marker {
    display: none;
}

.hospital-facts-card summary::after,
.hospital-provided-card summary::after {
    content: "▼";
    float: right;
    margin-left: 12px;
    color: var(--dark-green);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.hospital-facts-card[open] summary::after,
.hospital-provided-card[open] summary::after {
    transform: rotate(180deg);
}


/* TELEFON */
@media (max-width: 600px) {
    .hospital-facts-card,
    .hospital-provided-card {
        padding: 16px 17px;
    }

    .hospital-facts-card summary,
    .hospital-provided-card summary {
        font-size: 1rem;
    }
}
/* TELEFON */
@media (max-width: 600px) {
    .hospital-facts-card,
    .hospital-provided-card {
        padding: 16px 17px;
    }

    .hospital-facts-card summary,
    .hospital-provided-card summary {
        font-size: 1rem;
    }
}
/* =========================
   INSTAGRAM
========================= */

.instagram-section {
    display: flex;
    justify-content: center;
    margin: 8px 0 28px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--dark-green);
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.instagram-link:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

.instagram-icon {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.instagram-icon-dot {
    fill: currentColor;
    stroke: none;
}

/* =========================
   PROŚBA O DODANIE SZPITALA
========================= */

.hospital-request {
    margin-top: 4px;
    text-align: center;
}

.hospital-request-toggle {
    background: none;
    border: none;
    padding: 6px;

    color: var(--dark-green);
    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;
}

.hospital-request-toggle:hover {
    text-decoration: underline;
}

.hospital-request-form {
    margin-top: 12px;
    padding: 16px;

    border: 1px solid var(--sage-green);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.45);
    text-align: left;
}

.hospital-request-form label {
    display: block;
    margin-bottom: 8px;

    color: var(--dark-green);
    font-weight: 600;
}

.hospital-request-form input {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 12px;
    margin-bottom: 10px;

    border: 1px solid var(--sage-green);
    border-radius: 8px;

    font-size: 1rem;
}

.hospital-request-send {
    width: 100%;

    padding: 11px 16px;

    border: none;
    border-radius: 8px;

    background: var(--sage-green);
    color: white;

    font-weight: 600;
    cursor: pointer;
}

/* =========================
   LINKI AFILIACYJNE
========================= */

.affiliate-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 6px 9px;
    border: 1px solid rgba(74, 93, 74, 0.18);
    border-radius: 9px;

    background-color: rgba(255, 255, 255, 0.65);
    color: var(--dark-green);

    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.affiliate-link:hover {
    background-color: #ffffff;
    border-color: var(--sage-green);
    transform: translateY(-1px);
}

.affiliate-link:focus-visible {
    outline: 3px solid rgba(122, 143, 122, 0.3);
    outline-offset: 2px;
}

/* Po odhaczeniu rzeczy link zostaje spokojniejszy */
.item-row.checked .affiliate-link {
    opacity: 0.55;
}

/* Telefon */
@media (max-width: 600px) {
    .item-row {
        flex-wrap: wrap;
    }

    .affiliate-link {
        order: 5;
        margin-left: 2.4rem;
        font-size: 0.75rem;
    }
}

/* Linków produktowych nie pokazujemy w PDF */
@media print {
    .affiliate-link {
        display: none !important;
    }
}

/* =========================
   INFORMACJA O AFILIACJI
========================= */

.affiliate-disclosure {
    margin: 22px 0 26px;
    padding: 14px 16px;
    background-color: #f7f9f6;
    border: 1px solid #e2e8df;
    border-radius: 12px;
    color: #687168;
    font-size: 0.82rem;
    line-height: 1.5;
}

.affiliate-disclosure strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark-green);
    font-size: 0.88rem;
}

.affiliate-disclosure p {
    margin: 0;
}

@media print {
    .affiliate-disclosure {
        display: none !important;
    }
}