body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #333;
    text-align: center;
}

.message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

form {
    margin-top: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

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

.admin-panel {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th {
    background-color: #f2f2f2;
    text-align: left;
}

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

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-controls {
    display: flex;
    gap: 10px;
}

.btn-export {
    background-color: #007bff;
}

.btn-logout {
    background-color: #dc3545;
}

.btn-export:hover {
    background-color: #0069d9;
}

.btn-logout:hover {
    background-color: #c82333;
}

/* Styl dla listy tematów */
.tematy-lista {
    list-style-type: none;
    padding: 0;
}

.tematy-lista li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.tematy-lista li:last-child {
    border-bottom: none;
}

.tematy-lista strong {
    display: block;
    margin-bottom: 3px;
    font-size: 1.1em;
}

.tematy-lista .podtytul {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-left: 5px;
}

/* Styl dla rozwijalnej listy tematów w formularzu */
select option strong {
    font-weight: bold;
}

/* Dodane style dla sekcji tematycznych */
.tematy-sekcje {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sekcja-tematyczna {
    background-color: #f0f0f0;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sekcja-tematyczna h4 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    color: #333;
}
