/* ============ RESET STYLÓW ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    text-decoration: underline;
}

/* ============ NAGŁÓWEK STRONY ============ */
.header {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.header h1 {
    font-size: 2rem;
}

.header p a {
    color: #ff6347; /* Kolor linku do wylogowania */
}

.header p a:hover {
    color: #ff4500;
}

/* ============ MENU NAWIGACYJNE ============ */
.navbar {
    display: flex;
    background-color: #444;
}

.navbar a {
    color: white;
    padding: 14px 20px;
    text-align: center;
    display: block;
}

.navbar a:hover {
    background-color: #575757;
    color: white; /* Upewniamy się, że tekst pozostaje biały */
}

.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    min-width: 150px;
    z-index: 1;
}

.navbar .dropdown-content a {
    color: white;
    padding: 10px;
    display: block;
}

.navbar .dropdown-content a:hover {
    background-color: #575757;
    color: white; /* Kolor tekstu pozostaje biały */
}

.navbar .dropdown:hover .dropdown-content {
    display: block;
}

/* ============ GŁÓWNA ZAWARTOŚĆ ============ */
.container {
    padding: 20px;
}

h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333;
}

p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

/* ============ TABELA ============ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

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

th {
    background-color: #333;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f4f4f9;
}

tr:hover {
    background-color: #ddd;
}

td {
    color: #555;
}

/* ============ FORMULARZE ============ */
form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 95%;
    margin: 20px auto;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

input[type="text"], 
input[type="password"], 
input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
input[type="email"]:focus {
    outline: none;
    border-color: #333;
}

button[type="submit"] {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

button[type="submit"]:hover {
    background-color: #575757;
}

/* ============ PRZYCISKI ============ */
button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #575757;
}

button.danger {
    background-color: #e63946;
}

button.danger:hover {
    background-color: #c53030;
}

button.success {
    background-color: #2d6a4f;
}

button.success:hover {
    background-color: #1b4332;
}

button.warning {
    background-color: #ff9800;
}

button.warning:hover {
    background-color: #e65100;
}

/* ============ ALERTY ============ */
.alert {
    padding: 15px;
    background-color: #f44336;
    color: white;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.success {
    background-color: #4caf50;
}

.alert.info {
    background-color: #2196f3;
}

.alert.warning {
    background-color: #ff9800;
}

/* ============ WYGLĄD LINKÓW ============ */
a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #555;
}

a.button-link {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-align: center;
    border-radius: 4px;
}

a.button-link:hover {
    background-color: #575757;
}

/* ============ STOPKA (JEŚLI DODANA) ============ */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: absolute;
    width: 100%;
    bottom: 0;
}

.footer a {
    color: #ff6347;
}

.footer a:hover {
    color: #ff4500;
}

/* ============ RESPONSYWNOŚĆ ============ */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .navbar a {
        text-align: left;
    }

    .dropdown-content {
        position: relative;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    button, input[type="text"], input[type="password"], input[type="email"] {
        font-size: 1rem;
    }

    .container {
        padding: 10px;
    }
}

