:root {

    --bg: #f8f9ff;

    --card: #ffffff;

    --text: #2f3542;
    --text-light: #6c757d;

    --shadow: 0 8px 25px rgba(0,0,0,0.08);

    --radius: 20px;

    --nocleg: #9b87f5;
    --oboz: #ff9f68;
    --elektronika: #61b5ff;
    --kuchnia: #ffcf5a;
    --prowiant: #8ddf87;
    --higiena: #ff92c2;
    --ubrania: #87d8cf;
    --rozrywka: #b29bff;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    font-family: 'Nunito', sans-serif;

    background: var(--bg);

    color: var(--text);

    min-height: 100vh;
}

.container {

    max-width: 900px;

    margin: auto;

    padding: 16px;
}

.app-header {

    text-align: center;

    margin-bottom: 25px;
}

.app-header h1 {

    font-size: 2.3rem;

    font-weight: 800;

    margin-bottom: 6px;
}

.subtitle {

    color: var(--text-light);

    font-size: 0.95rem;
}

.progress-section {

    background: white;

    border-radius: var(--radius);

    padding: 18px;

    box-shadow: var(--shadow);

    margin-bottom: 20px;
}

.progress-top {

    text-align: center;

    font-size: 1.1rem;

    font-weight: 700;

    margin-bottom: 12px;
}

.progress-bar {

    width: 100%;

    height: 18px;

    background: #e8ebf5;

    border-radius: 999px;

    overflow: hidden;
}

.progress-fill {

    width: 0%;

    height: 100%;

    background: linear-gradient(
        90deg,
        #87d8cf,
        #61b5ff,
        #b29bff
    );

    transition: width .4s ease;
}

.progress-percent {

    text-align: center;

    margin-top: 10px;

    font-weight: 700;

    font-size: 1rem;
}

.section-title {

    font-size: 1.2rem;

    font-weight: 800;

    margin-bottom: 12px;

    margin-top: 20px;
}

.categories-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));

    gap: 14px;
}

.category-card {

    border-radius: var(--radius);

    padding: 18px;

    color: white;

    cursor: pointer;

    box-shadow: var(--shadow);

    transition: all .25s ease;
}

.category-card:hover {

    transform: translateY(-4px);
}

.category-card.active {

    outline: 4px solid rgba(255,255,255,0.7);
}

.category-title {

    font-size: 1.1rem;

    font-weight: 800;
}

.category-count {

    margin-top: 8px;

    font-size: .95rem;

    opacity: .9;
}

.nocleg {
    background: var(--nocleg);
}

.oboz {
    background: var(--oboz);
}

.elektronika {
    background: var(--elektronika);
}

.kuchnia {
    background: var(--kuchnia);
    color: #333;
}

.prowiant {
    background: var(--prowiant);
    color: #333;
}

.higiena {
    background: var(--higiena);
}

.ubrania {
    background: var(--ubrania);
    color: #333;
}

.rozrywka {
    background: var(--rozrywka);
}

.items-container {

    margin-top: 12px;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 15px;

    border-radius: 16px;

    box-shadow: var(--shadow);

    transition: all .25s ease;

    overflow: hidden;
}

.item:hover {

    transform: translateY(-3px);
}

.item input[type="checkbox"] {

    width: 24px;

    height: 24px;
	
	 min-width: 24px;
    min-height: 24px;

    flex-shrink: 0;

    cursor: pointer;
}

.item-name {

    flex: 1;

    min-width: 0;

    word-break: break-word;

    font-size: 1rem;

    font-weight: 600;
}


.item.packed {

    opacity: .65;
}

.item.packed .item-name {

    text-decoration: line-through;
}



.alerts-container {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 15px;
}

.alert {

    background: #fff4d6;

    border-left: 6px solid #ffb703;

    border-radius: 14px;

    padding: 15px;

    font-weight: 700;
}

.fab {

    position: fixed;

    right: 24px;

    bottom: 24px;

    width: 64px;

    height: 64px;

    border: none;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #61b5ff,
        #b29bff
    );

    color: white;

    font-size: 2rem;

    cursor: pointer;

    box-shadow: 0 8px 30px rgba(0,0,0,.2);

    z-index: 1000;
}

.fab:hover {

    transform: scale(1.08);
}

.modal {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.4);

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 2000;
}

.hidden {

    display: none;
}

.modal-content {

    background: white;

    width: 90%;

    max-width: 420px;

    border-radius: 24px;

    padding: 24px;

    box-shadow: var(--shadow);
}

.modal-content h2 {

    margin-bottom: 16px;
}

.modal-content input,
.modal-content select {

    width: 100%;

    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 12px;

    margin-bottom: 12px;

    font-size: 1rem;
}

.modal-buttons {

    display: flex;

    gap: 10px;
}

.modal-buttons button {

    flex: 1;

    border: none;

    border-radius: 12px;

    padding: 12px;

    font-weight: 700;

    cursor: pointer;
}

#saveItemBtn {

    background: #61b5ff;

    color: white;
}

#closeModalBtn {

    background: #ececec;
}

.footer {

    text-align: center;

    padding: 30px;

    color: var(--text-light);

    font-size: .9rem;
}

@media (max-width: 600px) {

    .app-header h1 {

        font-size: 1.9rem;
    }

    .categories-grid {

        grid-template-columns: 1fr;
    }

    .fab {

        width: 58px;
        height: 58px;
    }
}
.search-box {

    margin-bottom: 15px;
}

.search-box input {

    width: 100%;

    padding: 14px 18px;

    border: none;

    border-radius: 16px;

    background: white;

    box-shadow: var(--shadow);

    font-size: 1rem;

    font-family: inherit;

    outline: none;
}

.search-box input:focus {

    box-shadow:
        0 0 0 3px rgba(97,181,255,.25),
        var(--shadow);
}

.category-items {

```
margin-top: 8px;

margin-bottom: 15px;

display: flex;

flex-direction: column;

gap: 8px;
```

}

.category-wrapper {
    width: 100%;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.item-actions {

    display: flex;

    align-items: center;

    gap: 0;

    margin-left: auto;

    flex-shrink: 0;
}

.action-btn {

    width: 22px;
    height: 22px;

    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    font-size: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: .65;

    transition: .2s;

    flex-shrink: 0;
}

.action-btn:hover {

    opacity: 1;

    transform: scale(1.20);
}

.essential-checkbox {

    appearance: none;

    width: 24px;
    height: 24px;

    min-width: 24px;

    border-radius: 6px;

    border: 2px solid #ff5d73;

    background: #ff5d73;

    position: relative;

    cursor: pointer;

    flex-shrink: 0;
}

.essential-checkbox::before {

    content: "!";

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-weight: 800;

    font-size: 14px;
}

.essential-checkbox:checked {

    background: #4caf50;

    border-color: #4caf50;
}

.essential-checkbox:checked::before {

    content: "✓";
}

.alert-header {

    cursor: pointer;

    font-weight: 800;

    user-select: none;
}

.alert-content {

    margin-top: 8px;
}

.success-alert {

    background: #e7f8eb;

    border-left: 6px solid #4caf50;
}

.filter-bar {

    display: flex;

    gap: 10px;

    margin-bottom: 15px;
}

.filter-btn {

    border: none;

    padding: 10px 18px;

    border-radius: 12px;

    cursor: pointer;

    background: white;

    box-shadow: var(--shadow);

    font-weight: 700;

    transition: .2s;
}

.filter-btn.active {

    background: #61b5ff;

    color: white;
}

.checkbox-row {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin: 15px 0;

    font-weight: 600;
}

.checkbox-row input[type="checkbox"] {

    width: 22px;
    height: 22px;

    cursor: pointer;

    flex-shrink: 0;
}
