body {
    font-family: Arial, sans-serif;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
    color: #111827;
}

.site-main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
}

.site-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 1rem 0;
}

.card.article {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Formularze kontaktowe */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.contact-form input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background-color: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.contact-form button:hover {
    background-color: #1d4ed8;
}

/* Tabela kontaktów */
.contact-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    table-layout: fixed;
}

.contact-table th,
.contact-table td {
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    text-align: left;
    word-wrap: break-word;
}

.contact-table th {
    background-color: #f3f4f6;
    font-weight: 600;
}

/* Szerokości kolumn */
.contact-table th:nth-child(2),
.contact-table td:nth-child(2) { width: 20%; } /* Imię */
.contact-table th:nth-child(3),
.contact-table td:nth-child(3) { width: 20%; } /* Nazwisko */
.contact-table th:nth-child(4),
.contact-table td:nth-child(4) { width: 30%; } /* E-mail */
.contact-table th:nth-child(5),
.contact-table td:nth-child(5) { width: 20%; } /* Telefon */
.contact-table th:nth-child(6),
.contact-table td:nth-child(6) { width: 10%; } /* Edytuj */

/* Przycisk Edytuj */
.btn-edit {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
}

.btn-edit:hover {
    background-color: #1d4ed8;
}

/* Wyświetlanie błędów */
.errors p {
    color: red;
    margin: 0.2rem 0;
}

/* Nagłówek edycji */
.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* --- Przyciski --- */
.btn-delete,
.btn-login,
.btn-logout {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
    color: #fff;
}

.btn-login {
    background-color: #2563eb;
}
.btn-login:hover {
    background-color: #1d4ed8;
}

.btn-logout {
    background-color: #dc2626;
}
.btn-logout:hover {
    background-color: #b91c1c;
}

.btn-delete {
    background-color: #dc2626;
}
.btn-delete:hover {
    background-color: #b91c1c;
}

/* Formularz logowania */
.login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.login-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.login-form input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.error {
    color: #dc2626;
    font-weight: bold;
    margin-bottom: 1rem;
}
