/* Ogólny wygląd */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Stylizacja nagłówka */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap; /* Pozwala na zawijanie elementów w małych ekranach */
}

/* Lewa część nagłówka */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left .logo {
    height: 50px; /* Wysokość logo */
    width: 50px; /* Szerokość logo */
}

.header-left .header-title {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-style: italic; /* Kursywa */
    margin: 0;
}

/* Menu na środku */
.header-center {
    flex-grow: 1;
    text-align: center;
}

.header-center .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.header-center .menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.header-center .menu li a:hover {
    color: #fff;
    background-color: #333;
    border-radius: 5px;
}

/* Prawa część nagłówka */
.header-right {
    display: flex;
    align-items: center;
    position: relative;
}

.user-menu {
    position: relative;
}

.user-menu .user-initials {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
}

.user-menu .dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* .user-menu:hover .dropdown {
    display: block;
} */

.user-menu .dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu .dropdown ul li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.user-menu .dropdown ul li a:hover {
    background-color: #f4f4f4;
}

/* Stylizacja dla urządzeń mobilnych */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Ustawia elementy w kolumnie na małych ekranach */
        align-items: center;
        text-align: center;
    }

    .header-left, .header-right {
        justify-content: center;
        margin-bottom: 10px;
    }
    .header-right{
        margin-top: 20px;
    }

    .header-center .menu {
        flex-direction: column; /* Menu w kolumnie */
        gap: 30px;
    }

    .header-center .menu li a {
        padding: 10px 20px;
        border-radius: 25px;
        background-color: #4CAF50;
        color: white;
    }

    .header-center .menu li a:hover {
        background-color: #45a049;
    }
}

/* Main */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

main h1 {
    margin-bottom: 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.schedule-table th,
.schedule-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

.schedule-table th {
    background-color: #444;
    color: #fff;
}

.schedule-table tr:nth-child(even) {
    background-color: #f4f4f4;
}

.schedule-table button {
    padding: 5px 10px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.schedule-table button:hover {
    background-color: #666;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f4f4f4;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border-top: 1px solid #ccc;
}

/* Logowanie */
.login-container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
}

.login-container img {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.login-container h1 {
    margin-bottom: 1rem;
    color: #444;
}

.login-container form {
    display: flex;
    flex-direction: column;
}

.login-container input {
    margin: 0.5rem 0;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container button {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.login-container button:hover {
    background-color: #5a6268;
}

/* Responsywność */
@media (max-width: 732px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    main {
        padding: 10px;
    }

    .schedule-table th, .schedule-table td {
        font-size: 0.9rem;
    }

    .login-container {
        /* padding: 1rem; */
        width: 60vw;
    }
}
/* Stylizacja przycisku powrotu */
.back-button {
    position: absolute;
    top: 150px;
    left: 20px;
    z-index: 10; /* Upewnij się, że przycisk znajduje się nad innymi elementami */
}

.back-button .btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #444;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.back-button .btn:hover {
    background-color: #666;
}
/* Stylizacja kontenera menu użytkownika */
.user-menu {
    position: relative;
    display: inline-block;
}

/* Stylizacja inicjałów użytkownika */
.user-menu .user-initials {
    width: 40px;
    height: 40px;
    background-color: #444;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    z-index: 5;
    transition: background-color 0.3s ease;
}

.user-menu .user-initials:hover {
    background-color: #666;
}

/* Ukrywanie menu */
.user-menu .dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    width: 150px;
}

/* Pokazywanie menu */
.user-menu.active .dropdown {
    display: block;
}

.user-menu .dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-menu .dropdown ul li {
    border-bottom: 1px solid #eee;
}

.user-menu .dropdown ul li:last-child {
    border-bottom: none;
}

.user-menu .dropdown ul li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.user-menu .dropdown ul li a:hover {
    background-color: #f4f4f4;
}

/* Styl ogólny dla sekcji */
section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Styl formularza generowania terminów */
.form-generate-schedule {
    background-color: #eaf6f9;
    border-color: #b6e0eb;
}

.form-generate-schedule h2 {
    color: #31708f;
}

.form-generate-schedule button {
    background-color: #31708f;
    color: #fff;
}

.form-generate-schedule button:hover {
    background-color: #285c72;
}

/* Styl formularza generowania Mszy dodatkowych */
.form-generate-additional {
    background-color: #fef7e0;
    border-color: #f0d48a;
}

.form-generate-additional h2 {
    color: #8a6d3b;
}

.form-generate-additional button {
    background-color: #8a6d3b;
    color: #fff;
}

.form-generate-additional button:hover {
    background-color: #6d5130;
}

/* Styl formularza usuwania terminu */
.form-delete-event {
    background-color: #f2dede;
    border-color: #ebcccc;
}

.form-delete-event h2 {
    color: #a94442;
}

.form-delete-event button {
    background-color: #a94442;
    color: #fff;
}

.form-delete-event button:hover {
    background-color: #843534;
}

/* Styl dla komunikatów */
.success {
    color: green;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}



/* Stylizacja ogólna dla przycisków */
button {
    display: inline-block;
    background-color: #4CAF50; /* Zielony kolor domyślny */
    color: white;
    border: none;
    border-radius: 25px; /* Zaokrąglone rogi */
    padding: 10px 20px; /* Odstępy wewnętrzne */
    font-size: 16px; /* Rozmiar tekstu */
    font-weight: bold;
    cursor: pointer; /* Zmiana kursora na wskaźnik */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Animacje */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Delikatny cień */
}

/* Efekt hover */
button:hover {
    background-color: #45a049; /* Ciemniejszy zielony przy najechaniu */
    transform: scale(1.05); /* Powiększenie przycisku */
}

/* Efekt aktywacji */
button:active {
    transform: scale(0.95); /* Zmniejszenie przycisku */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Mniejszy cień */
}

/* Stylizacja przycisków dla sekcji generowania terminów */
.form-generate-schedule button {
    background-color: #31708f; /* Niebieski */
}

.form-generate-schedule button:hover {
    background-color: #285c72; /* Ciemniejszy niebieski */
}

/* Stylizacja przycisków dla sekcji generowania Mszy dodatkowych */
.form-generate-additional button {
    background-color: #8a6d3b; /* Brązowy */
}

.form-generate-additional button:hover {
    background-color: #6d5130; /* Ciemniejszy brązowy */
}

/* Stylizacja przycisków dla sekcji usuwania terminów */
.form-delete-event button {
    background-color: #a94442; /* Czerwony */
}

.form-delete-event button:hover {
    background-color: #843534; /* Ciemniejszy czerwony */
}
/* Stylizacja formularza filtrowania */
.filter-form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form label {
    font-weight: bold;
    margin-right: 5px;
}

.filter-form select,
.filter-form button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.filter-form button {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.filter-form button:hover {
    background-color: #45a049;
}



/* Lista ogłoszeń */
.announcements-list {
    margin-top: 20px;
}

.announcement {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.announcement h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.announcement small {
    color: #666;
    font-size: 12px;
}

/* Formularz dodawania ogłoszenia */
.add-announcement form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-announcement form input[type="text"],
.add-announcement form textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.add-announcement form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.add-announcement form button:hover {
    background-color: #45a049;
}

/* Formularz usuwania ogłoszeń */
.delete-form button {
    background-color: #d9534f;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.delete-form button:hover {
    background-color: #c9302c;
}


/* Tabele w archiwum */
.attendance-table, .history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.attendance-table th, .history-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    padding: 10px;
    text-align: left;
}

.attendance-table td, .history-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.attendance-table tr:nth-child(even), .history-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.attendance-table tr:hover, .history-table tr:hover {
    background-color: #f1f1f1;
}
/* Sekcja wykresu */
canvas {
    margin: 20px auto;
    display: block;
    max-width: 600px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}
/* Formularz zmiany hasła */
.password-change-form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 20px auto;
    gap: 15px;
}

.password-change-form label {
    font-weight: bold;
}

.password-change-form input[type="password"] {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.password-change-form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.password-change-form button:hover {
    background-color: #45a049;
}

/* Komunikaty */
.success {
    color: green;
    font-weight: bold;
    text-align: center;
}

.error {
    color: red;
    font-weight: bold;
    text-align: center;
}
