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

header {
    background-color: #004080;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img {
    height: 50px;
}

header h1 {
    margin: 0;
    font-size: 24px;
}


        footer {
            background-color: #004080;
            color: white;
            text-align: center;
            padding: 10px;
            font-size: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .admin-link {
    color: white;
    text-decoration: none; /* Usuwa podkreślenie */
    font-size: 16px; /* Rozmiar czcionki */
    font-weight: normal; /* Normalna grubość czcionki */
}

.admin-link:visited {
    color: white; /* Kolor po odwiedzeniu */
}

.admin-link:active {
    color: white; /* Kolor podczas kliknięcia */
}

.admin-link:hover {
    color: #f0f0f0; /* Lekko jaśniejszy biały na hover */
    text-decoration: underline; /* Dodaje podkreślenie na hover */
}

main {
    padding: 20px;
    width:800px;
    margin: 0 auto;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1, h2 {
    color: #004080;
}

/* Przyciski */
button {
    background-color: #004080;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0066cc;
}

/* Przyciski akcji w tabeli */
button.table-action {
    padding: 8px 12px;
    margin-right: 5px;
    font-size: 14px;
    border-radius: 5px;
    background-color: #004080;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.table-action:hover {
    background-color: #0066cc;
}

/* Formularze */
form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

form input, form textarea, form select {
    width: 100%;
    padding: 8px 0px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Tabela i kontener tabeli */
.table-container {
    overflow-x: auto; /* Dodanie przewijania poziomego */
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px; /* Zaokrąglone rogi kontenera */
    background-color: white;
    padding: 10px; /* Dodanie odstępów wewnętrznych */
}

table {
    width: 100%; /* Dopasowanie tabeli do szerokości kontenera */
    border-collapse: collapse;
    margin: 0; /* Usunięcie marginesów tabeli */
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #004080;
    color: white;
}

/* Dodatkowe style dla strony startowej */
main.text-center {
    text-align: center;
    padding: 50px 20px;
}

main h2 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #004080;
}

.options {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.options a {
    text-decoration: none;
}

.options button {
    padding: 20px 40px;
    font-size: 18px;
    font-weight: bold;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.options button:hover {
    background-color: #0066cc;
}

.no-availability {
    color: red;
    font-weight: bold;
}
.no-availability input {
    display: none; /* Ukryj pole wyboru, jeśli brak miejsc */
}
