/* Reset podstawowy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ogólne ustawienia */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Nagłówek */
header {
    background-color: #004080;
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header .logo h1 {
    margin: 0;
    font-size: 24px;
}

/* Menu główne */
nav ul.main-menu {
    list-style: none;
    display: flex;
}
nav ul.main-menu > li {
    position: relative;
    margin-right: 20px;
}
nav ul.main-menu > li > a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
}
nav ul.main-menu > li:hover {
    background-color: #003060;
}

/* Submenu ustawień – niezależna warstwa */
.settings-submenu {
    position: absolute;
    top: 60px; /* dostosuj w zależności od wysokości headera */
    right: 20px; /* pozycjonowanie względem prawej strony */
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 10px;
    display: none;
    z-index: 1000;
    width: 300px; /* zwiększona szerokość */
}
.settings-submenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.settings-submenu ul li {
    margin-bottom: 8px; /* nieco większy odstęp */
}
.settings-submenu ul li a {
    text-decoration: none;
    color: #004080;
    display: block;
    padding: 8px 12px; /* wygodny padding */
    white-space: nowrap;
}
.settings-submenu ul li a:hover {
    background-color: #f0f0f0;
}

/* Główna zawartość */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Kontener */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
}

/* Formularze */
.form-row {
    margin-bottom: 15px;
}
.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-row input[type="text"],
.form-row input[type="number"],
.form-row select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Kafelki (dla strony głównej) */
.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}
.tile {
    background: #fff;
    border: 1px solid #ccc;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.tile h2 {
    margin-bottom: 10px;
    font-size: 20px;
}
.tile p {
    font-size: 14px;
}

/* Tabele */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table, th, td {
    border: 1px solid #aaa;
}
th, td {
    padding: 8px;
    text-align: left;
}
th {
    background-color: #ddd;
}

/* Statystyki */
.stats {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}
.stats ul {
    list-style: none;
}
.stats li {
    margin-bottom: 10px;
}

/* Linki */
a {
    color: #004080;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Stopka */
footer {
    background-color: #eee;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
}
