* {
    font-size: 1rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;

}

.text-icon-help {
    width: 100%;
    display: block;
    /* Ensure proper image display */
    text-align: center;
}

.icon-help1 {
    width: 90%;
    display: block;
    /* Ensure proper image display */
    border-radius: 10px;
    margin: 10px auto;
}

.icon-help2 {
    width: 100%;
    display: block;
    /* Ensure proper image display */
    border-radius: 10px;
}


h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0px;
}

/* Przyciski */
.controls {
    margin: 0px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;

    justify-content: space-around;
    position: fixed;
    bottom: 20px;
    width: 100%;

}

.controls * {
    font-size: 20px;
}

button {
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;

    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

button#editMode {
    background-color: #e67e22;
}

button#editMode:hover {
    background-color: #d35400;
}

#subscribe-buttona {
    display: inline-block;
    background-color: #a1f7ff;
    color: #000000;
    border: 1px solid #8e8e8e;
    border-radius: 10px;
}

#imgSubscrib {
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

.delete-btn {
    display: inline-block;
    background-color: #d61a1a;
    margin-left: 3px;
    padding: 1px 3px;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.plusButton {
    display: inline-block;
    background-color: #00895b;
    margin-left: 3px;
    padding: 1px 3px;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

select {
    width: 70px;
}

#ksiadz-select {
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;

    transition: background-color 0.3s ease;
    display: inline;
    margin: 0px;
    width: 120px;
}

#ksiadz-select:hover {
    background-color: #2980b9;
}

#wakacje {
    padding: 5px 10px;
    background-color: #f6f6f6;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;

    transition: background-color 0.3s ease;
    display: none;
    margin: 0px;
}

/* Kalendarz */
#calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 5px;
    padding: 4px;
}

.day {

    background: white;
    padding: 3px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}



.day-header {
    font-weight: bold;
    margin-bottom: 10px;
    color: #34495e;
    font-size: 1.2rem;
    text-align: center;
}

.event {
    margin: 2px 0;
    padding: 2px;
    border-radius: 5px;
    font-size: 1.1rem;
    color: #2c3e50;
    display: block;
    background-color: #efefef;
    border: 1px solid #c8c8c8;
}

.editable {
    cursor: pointer;
    background: #f1c40f;
    color: white;
}


.inputEditMode {
    font-size: 0.9rem;
    padding: 3px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.event input {
    width: 40px;
}

.colorekXX,
.colorekAI,
.colorekAS,
.colorekPW,
.colorekTS, 
.colorekbrak {
background-color: #efefef;
padding: 2px 4px 2px 4px;
border-radius: 3px;
}

.colorekbrak {
    display: none;
}

.tdUrlop {
    background-color: #198700;
    color: white;
}
.tdObecny {
    background-color: #ffff99;
}
.tdDyżur {
    background-color: #ff0000; 
    color: white;
}
.tdObWiecz {
    background-color: #ffa141; 
}
.tdObRano {
    background-color: #ffc78d; 
}
.tdV-Dyżur {
    background-color: #f71ad6; 
}

.tdUrlop, 
.tdObecny, 
.tdDyżur, 
.tdObWiecz,
.tdObRano, 
.tdV-Dyżur {
    text-align: center;
    font-size: 14px;
    padding: 2px;
}

.tdStalyGrafik {
    text-align: center;
    font-size: 14px;
    padding: 0;
    border: 1px solid #c8c8c8;
}

#legenda {
    display: block;
    text-align: left;
    margin: 20px;

}

/* Responsywność */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .controls {
        flex-direction: row;
        align-items: center;
    }

    button {
        margin-bottom: 3px;
    }

    #calendar {
        /* grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); */
        gap: 2px;
    }

    .day-header {
        font-size: 1rem;
    }

    .event {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    #calendar {
        grid-template-columns: repeat(2, 1fr);
        /* Domyślnie dwie kolumny */
        gap: 5px;
    }

    .day {
        padding: 4px;
    }

    .day-header {
        font-size: 1rem;
    }

    .event {
        font-size: 1rem;
    }

    /* Tryb edycji: jedna kolumna i większa czcionka */
    body.edit-mode #calendar {
        grid-template-columns: 1fr !important;
    }

    body.edit-mode .event,
    body.edit-mode .event select,
    body.edit-mode .event {
        font-size: 1.1rem;
    }
}