/* TOP NAVIGATION MENU */
.top-nav {
    background-color: #2c3e50;
    margin: -20px -20px 20px -20px; /* Rozciąga na całą szerokość mimo paddingu w body */
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
}

.top-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.top-nav li {
    margin: 0;
}

.top-nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 16px 24px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

.top-nav a:hover {
    background-color: #28a745;
    color: #fff;
}

/* TH CURSOR STYLES (przeniesione z HTML) */
th {
    cursor: pointer;
}
th:hover {
    background-color: #1a252f;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding: 20px;
    color: #333;
}
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}
.controls {
    text-align: center;
    margin-bottom: 20px;
}
select {
    padding: 8px 12px;
    font-size: 14px;
    margin: 0 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.table-container {
    max-width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}
th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e4e8;
}
th {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
}
tbody tr:hover td {
    background-color: #e2e6ea !important;
    color: #111;
}
tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}
.loading, .error {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #666;
}
.error {
    color: #d9534f;
}
/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px); /* Dodatkowy efekt rozmycia tła */
}
.modal-content {
    background-color: #fefefe;
    margin: 10vh auto;
    padding: 25px;
    border: 1px solid #888;
    width: 60%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover,
.close-btn:focus {
    color: #d9534f;
    text-decoration: none;
}
#modal-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
#modal-details li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
}
#modal-details li strong {
    color: #2c3e50;
    flex-basis: 35%; /* Stała szerokość dla kluczy */
    flex-grow: 0;
}
#modal-details li span {
    flex-basis: 65%;
    flex-grow: 1;
}
#table-body tr {
    cursor: pointer; /* Zmienia kursor na łapkę nad wierszami */
}
/* BUTTONY ZAPAMIĘTAJ I NIEBIESKI */
.btn-blue { background-color: #007bff; color: white; border: none; padding: 10px 15px; font-size: 14px; border-radius: 4px; cursor: pointer; margin: 0 10px 10px 10px; transition: background-color 0.3s; font-weight: bold; }
.btn-blue:hover { background-color: #0056b3; }
.btn-save { background-color: #28a745; color: white; border: none; padding: 10px 15px; font-size: 16px; border-radius: 4px; cursor: pointer; margin-top: 15px; width: 100%; transition: background-color 0.3s; font-weight: bold; }
.btn-save:hover { background-color: #218838; }