body {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    margin: 20px auto;
    max-width: 800px;
    padding: 0 20px;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2 {
    color: #222;
    margin-top: 10px;
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: #0056b3;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Kompresja wysokości kontenera wpisu */
li {
    background: #fff;
    margin-bottom: 4px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.entry-main {
    font-size: 0.95em;
}

.entry-link {
    font-weight: bold;
}

.entry-desc {
    color: #555;
    margin-top: 1px;
    font-size: 0.9em;
}

/* Sekcja ukrytej notatki (details/summary) */
.note-toggle {
    margin-top: 2px;
}

.note-toggle summary {
    font-size: 0.82em;
    color: #0056b3;
    cursor: pointer;
    user-select: none;
    outline: none;
}

.note-toggle summary:hover {
    text-decoration: underline;
}

.note-toggle[open] summary {
    color: #666;
    margin-bottom: 4px;
}

.note-toggle[open] .entry-note {
    margin-top: 2px;
}

.entry-note {
    color: #444;
    font-size: 0.88em;
    white-space: pre-wrap;
    background-color: #fafafa;
    padding: 6px;
    border-left: 2px solid #ccc;
}

/* Dolny pasek mieszczący tagi i akcje w jednej linii (Flexbox) */
.entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
    font-size: 0.8em;
}

/* Tagi - mniejsza czcionka i ciemnoszary kolor */
.entry-tags a {
    display: inline-block;
    background: #e9ecef;
    padding: 1px 6px;
    border-radius: 4px;
    color: #555555;
    font-size: 0.9em;
    margin-right: 2px;
}

.entry-tags a:hover {
    background: #ced4da;
    text-decoration: none;
    color: #222222;
}

.no-tags {
    color: #999;
    font-style: italic;
}

/* Miniaturowe przyciski administracyjne na stronie głównej */
.entry-actions button {
    padding: 1px 6px;
    font-size: 0.9em;
    border: 1px solid #bbb;
    background-color: #e9ecef;
    color: #333;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 3px;
}

.entry-actions button:hover {
    background-color: #dde0e3;
}

/* Nowoczesny układ formularzy w panelu admina */
form {
    max-width: 650px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 0.95em;
    color: #222;
}

/* Duże, czytelne pola wprowadzania danych */
input[type="text"], 
input[type="url"], 
input[type="password"], 
textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    background-color: #fff;
}

input[type="text"]:focus, 
input[type="url"]:focus, 
input[type="password"]:focus, 
textarea:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.15);
}

/* Maksymalnie powiększone pole na notatkę */
textarea[name="note"] {
    min-height: 280px;
    line-height: 1.5;
    resize: vertical;
}

.form-actions {
    margin-top: 24px;
}

/* Powiększony główny przycisk formularza */
.form-actions button {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.form-actions button:hover {
    background-color: #004085;
}

/* Style responsywne dla ekranów mobilnych */
@media (max-width: 600px) {
    body {
        margin: 10px auto;
        padding: 0 10px;
    }

    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .entry-actions {
        align-self: flex-end;
        margin-top: 2px;
    }

    input[type="text"], input[type="url"], textarea {
        width: 100% !important;
    }
}

/* Stylizacja paska stronicowania */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
    font-size: 0.9em;
}

.pagination a, .pagination span {
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 4px;
}

.pagination a {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #0056b3;
}

.pagination a:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.pagination .page-info {
    color: #555;
    font-weight: bold;
}

.pagination .disabled {
    color: #bbb;
    background-color: #f1f3f5;
    border: 1px solid #e9ecef;
    cursor: not-allowed;
}
