* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --base-gradient: linear-gradient(45deg, #94f39c, #ddeb26);
    --base-yellow: #ddeb26;
    --transparent-bg: #fffa;
    --lightgray: #ebeaea;
    --green: #8a9b6f;
    --blue: #4797ff;
    --text-shadow-highlight: 0 0 15px #fff, 0 0 15px #fff, 0 0 15px #fff;
    --text-shadow-darken: 0 0 15px #000;
    --base-box-shadow: 5px 5px 10px #000;
    --bg-c-h2: #eecc7e;
}

html {
    min-height: 100vh;
    display: block;
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-image: url("img/bg-day.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #1f1f1f;
    z-index: 0;
}

body {
    background-position: center;
    background-size: cover;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    max-width: 1280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inconsolata', monospace;
}

a {
    text-decoration: none;
    color: #000;
}

a:hover {
    color: #333;
}

.bold-colored-row {
    font-weight: bold;
    color: #c35757;
}

.login {
    background-color: var(--transparent-bg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--base-box-shadow);
    border-radius: 4px;
    width: 300px;
}

.login-headline {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.form-button {
    border-radius: 40px;
    font-weight: 600;
    height: 40px;
    background-image: var(--base-gradient);
    border: 2px solid #000;
    color: #000;
    padding: 10px;
    width: 40%;
    margin-top: 15px;
    color: #000;
    cursor: pointer;
    transition: .2s;
}

.form-button:hover {
    filter: invert();
    border: none;
}

.form-input {
    background: #fff;
    width: 100%;
    height: 30px;
    border: 1px solid #000;
    padding: 5px;
}

.login-headline,
.garbage-headline,
.form-label {
    text-shadow: var(--text-shadow-highlight);
}

.section-garbage {
    margin: 20px;
    padding: 20px;
    background-color: var(--transparent-bg);
}

.garbage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    box-shadow: var(--base-box-shadow);
}

.garbage-headline {
    color: #000;
    margin-bottom: 15px;
    font-size: 2rem;
}

.garbage-item {
    width: 250px;
    height: 70px;
    padding: 10px;
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
}

.garbage-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.garbage-category {
    font-weight: 600;
    display: block;
}

.garbage-info,
.garbage-missing {
    display: block;
    font-size: 0.9rem;
}

.garbage-icon {
    float: left;
    margin-right: 5px;
    font-size: 1.1rem;
}

.garbage-zmi {
    background-color: #181818;
    color: #fff;
}

.garbage-psm,
.garbage-mep {
    background-color: #ffff2e;
}

.garbage-bio {
    background-color: #61452e;
    color: #fff;
}

.garbage-pap {
    background-color: #93ece8;
}

.garbage-gae {
    background-color: #0a1764;
    color: #fff;
}

.garbage-szk {
    background-color: #5ad34f;
}

/* Wyróżnienie okienek bez daty */
.garbage-no-date {
    opacity: 0.75;
    border: 4px dashed rgba(255, 100, 0, 0.6);
    position: relative;
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {

    0%,
    100% {
        border-color: rgba(255, 100, 0, 0.6);
    }

    50% {
        border-color: rgba(255, 150, 0, 0.8);
    }
}

.garbage-no-date em {
    font-style: italic;
    color: inherit;
    font-weight: 500;
    font-size: 0.95rem;
}

.header {
    width: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
    /* height: 40px; */
    height: auto;
    text-transform: uppercase;
    color: #fff;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    width: 100%;
    height: 100%;
    padding: 0 30px;
}

.menu-link {
    color: #000;
    font-size: 1.5rem;
    text-decoration: none;
    transition: .2s;
}

.menu-item-back {
    color: #cd8220;
    font-size: 1.2rem;
    text-transform: uppercase;
}



.menu-link:hover {
    color: var(--blue);
}

.total-costs {
    padding: 40px;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

.total-costs span {
    color: crimson;
}

.table-container {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    background: #fff;
    margin-bottom: 30px;
}

.table-container h2 {
    background-color: var(--bg-c-h2);
    text-align: center;
    padding: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table td,
table th {
    border: 1px solid var(--blue);
    padding: 15px;
    font-size: 1.1rem;
}

.td-align-right {
    text-align: right;
    margin-right: 0px;
}

.td-align-center {
    text-align: center;
    margin-right: 0px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    line-height: 0;
    padding: 5px 0;
}

.image img {
    align-items: center;
    height: 280px;
    margin: 5px 0;
    text-align: center;
    width: 280px;
}

.cards {
    align-items: center;
    background-color: #2f2f2f;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 15px 30px;
}

.cards div {
    align-items: center;
    background-color: #ccc;
    display: flex;
    height: 120px;
    margin: 5px 0;
    width: 130px;
}

.cards p {
    padding: 15px;
    text-align: center;
}

.footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    height: 40px;
    width: 100%;
    padding: 0px 20px;
    border-top: 1px solid #fff;
    color: #fff;
    text-shadow: var(--text-shadow-darken);
}

.pagination-nav {
    margin: 20px 0;
    text-align: center;
    padding: 20px 0;
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    gap: 5px;
}

.pagination li {
    display: block;
    padding: 8px 12px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .current-page {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-weight: bold;
}

.pagination-info {
    color: #333;
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== BULK EDIT PANEL FOR GARBAGE DATES ==================== */

.bulk-edit-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.bulk-edit-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #ddeb26;
}

.bulk-edit-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.bulk-edit-header .subtitle {
    font-size: 1.2rem;
    color: #666;
}

.year-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.year-nav-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #94f39c, #ddeb26);
    border: 2px solid #000;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    cursor: pointer;
    transition: 0.2s;
}

.year-nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.current-year {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.year-quick-select {
    text-align: center;
    margin-bottom: 20px;
}

.year-quick-select label {
    margin-right: 10px;
    font-weight: 600;
}

.year-quick-select select {
    padding: 8px 15px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inconsolata', monospace;
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    background: #f9f9f9;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.stat-zmi {
    border-left: 4px solid #181818;
}

.stat-mep {
    border-left: 4px solid #ffff2e;
}

.stat-pap {
    border-left: 4px solid #93ece8;
}

.stat-szk {
    border-left: 4px solid #5ad34f;
}

.stat-bio {
    border-left: 4px solid #61452e;
}

.stat-gae {
    border-left: 4px solid #0a1764;
}

.category-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.garbage-bg-zmi {
    background-color: rgba(24, 24, 24, 0.1);
    border-left: 6px solid #181818;
}

.garbage-bg-mep {
    background-color: rgba(255, 255, 46, 0.2);
    border-left: 6px solid #ffff2e;
}

.garbage-bg-pap {
    background-color: rgba(147, 236, 232, 0.2);
    border-left: 6px solid #93ece8;
}

.garbage-bg-szk {
    background-color: rgba(90, 211, 79, 0.2);
    border-left: 6px solid #5ad34f;
}

.garbage-bg-bio {
    background-color: rgba(97, 69, 46, 0.1);
    border-left: 6px solid #61452e;
}

.garbage-bg-gae {
    background-color: rgba(10, 23, 100, 0.1);
    border-left: 6px solid #0a1764;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.category-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.category-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.date-field {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    border: 2px solid #ddd;
    transition: 0.2s;
}

.date-field:hover {
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-field input[type="date"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 8px;
    font-family: 'Inconsolata', monospace;
}

.date-field input[type="date"]:focus {
    outline: none;
    border-color: #4797ff;
    box-shadow: 0 0 0 3px rgba(71, 151, 255, 0.1);
}

.delete-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.delete-checkbox input[type="checkbox"]:checked+.delete-label {
    color: #dc3545;
    font-weight: bold;
}

.no-dates {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.add-date-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    font-family: 'Inconsolata', monospace;
}

.add-date-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #ddd;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Inconsolata', monospace;
}

.btn-save {
    background: linear-gradient(45deg, #94f39c, #ddeb26);
    border: 3px solid #000;
    color: #000;
}

.btn-save:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-cancel {
    background: #fff;
    border: 3px solid #dc3545;
    color: #dc3545;
}

.btn-cancel:hover {
    background: #dc3545;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    border: 3px solid #495057;
    color: #fff;
}

.btn-secondary:hover {
    background: #495057;
}

.help-panel {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4797ff;
}

.help-panel h3 {
    margin-bottom: 15px;
    color: #333;
}

.help-panel ul {
    list-style-position: inside;
    line-height: 1.8;
}

.help-panel li {
    margin-bottom: 8px;
}

.help-panel strong {
    color: #000;
}

/* ==================== END BULK EDIT PANEL ==================== */



@media only screen and (max-width: 768px) {

    /* Bulk edit panel responsive styles */
    .bulk-edit-container {
        padding: 10px;
    }

    .year-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .current-year {
        font-size: 1.5rem;
    }

    .stats-panel {
        grid-template-columns: 1fr 1fr;
    }

    .dates-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* End bulk edit responsive */

    .table-column {
        display: none;
    }

    .login {
        transform: none;
    }

    .garbage {
        grid-template-columns: 1fr;
    }

    .garbage-item {
        width: 100%;
    }

    .garbage-no-date {
        border-width: 3px;
    }

    .garbage-no-date em {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    nav,
    .menu {
        flex-direction: column;
        height: auto;
        padding-top: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    .menu li {
        padding-bottom: 10px;
        text-align: center;
    }

    nav>a,
    nav p {
        color: #dbb819;
    }
}