* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Zapewnia, że padding i border są uwzględniane w szerokości elementu */
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Gwarantuje, że strona zajmuje całą wysokość */
    width: 100%;
    overflow-x: hidden; /* Ukrywa poziomy pasek przewijania */
    background-color: #f5f5f5;
}

.header {
    display: flex; /* Używamy flexbox do rozmieszczenia logo i menu */
    justify-content: center; /* Domyślnie wyśrodkowane logo */
    align-items: flex-start;
    padding: 5px;
    background-color: #333; /* Tło takie samo jak w stopce */
    color: white;
}

.header.logged-in {
    justify-content: flex-start; /* Po zalogowaniu logo po lewej stronie */
}

.header img {
    max-width: 300px;
    height: auto;
}

.header-info {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.menu_dashboard {
    display: flex;
    flex-direction: column; /* Ustawia układ w kolumnie */
    align-items: flex-start; /* Wyrównuje elementy do lewej */
    list-style-type: none;
}

.menu_dashboard span {
    margin-left: 20px;
    margin-bottom: 10px; /* Dodaje przestrzeń między datą a menu */
    font-weight: bold;
}

.menu_dashboard ul {
    margin-top: 10px;
    display: flex;
    list-style-type: none;
    padding-left: 0; /* Usuwa domyślne wcięcie */
}

.menu_dashboard ul li {
    display: inline;
    margin-left: 20px;
}

.menu_dashboard ul li a {
    text-decoration: none;
    font-size: 18px;
    color: #fff;
    padding: 8px 15px;
    background-color: #555;
    border-radius: 4px;
}

.menu_dashboard ul li a:hover {
    background-color: #777;
}

.main {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Zmienia wyrównanie na górne */
    flex-grow: 1;
    width: 100%;
    padding-top: 20px; /* Dodaje odstęp od góry */
}

.login-container {
    width: 300px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-sizing: border-box;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group2 {
    margin-bottom: 15px;
}

.form-group2 label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group2 input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group2 input:focus {
    background-color: #f0f8ff; /* Lekki odcień niebieskiego */
    outline: none; /* Usuwa domyślną obwódkę przeglądarki */
    border: 1px solid #007BFF; /* Dodaje kolor obramowania */
    transition: background-color 0.5s ease, border 0.3s ease; /* Płynne przejście efektu */
}

.login_button {
    width: 100%;
    padding: 10px;
    background-color: #333; /* Kolor taki jak tło stopki */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login_button:hover {
    background-color: #444; /* Nieco jaśniejszy odcień dla efektu hover */
}

.error-message { /* err przy logowaniu */
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.footer {
    display: flex;
    justify-content: space-between; /* Rozdziela zawartość na lewą i prawą stronę */
    align-items: center;
    background: #333;
    color: white;
    padding: 10px;
    font-size: 14px;
    height: 50px;
}

.footer-links {
    text-align: center; /* Linki będą wyśrodkowane */
}

.footer-links a {
    text-decoration: none;
    color: white;
    margin: 0 10px; /* Odstępy pomiędzy linkami */
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer span {
    margin-left: auto; /* Wypycha tekst do prawej strony */
}
