/* Resetowanie domyślnych marginesów i paddingu */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ustawienia dla całej strony */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Kontener dla formularza */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Stylizacja nagłówków */
h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: #333;
}

/* Formularz */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Pola formularza */
input[type="text"], input[type="password"], input[type="number"], select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, select:focus {
    border-color: #5b9bd5;
    outline: none;
}

/* Przycisk */
button {
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Link do rejestracji/logowania */
a {
    text-align: center;
    display: block;
    margin-top: 20px;
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Komunikaty błędów i sukcesów */
.error {
    color: #ff0000;
    text-align: center;
    margin-top: 15px;
}

.success {
    color: #28a745;
    text-align: center;
    margin-top: 15px;
}

/* Tabela z wydatkami */
table {
    width: 100%;
    margin-top: 40px;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #f9f9f9;
}

/* Formaty responsywne dla urządzeń mobilnych */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h2 {
        font-size: 1.8rem;
    }

    input[type="text"], input[type="password"], input[type="number"], select {
        font-size: 0.9rem;
    }

    button {
        font-size: 0.9rem;
    }

    table th, table td {
        font-size: 0.9rem;
        padding: 12px;
    }
}
