/* ==========================================================================
   1. USTAWIENIA GLOBALNE I BAZOWE
   ========================================================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
    background: #f4f4f6;
    color: #222;
}

a {
    color: #4f46e5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* ==========================================================================
   2. FORMULARZE I ELEMENTY INPUT
   ========================================================================== */
input[type="text"], 
input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

textarea {
    width: 100%;
    height: 350px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Przyciski standardowe */
.btn {
    background: #4f46e5;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
}

.btn:hover {
    background: #4338ca;
    text-decoration: none;
}

/* Przyciski i akcje niebezpieczne (usuwanie) */
.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-danger-text {
    color: #dc2626 !important;
}

.btn-danger-text:hover {
    text-decoration: underline;
}

/* ==========================================================================
   3. STRONA GŁÓWNA I LISTA NOTATEK
   ========================================================================== */
.note-item {
    margin-bottom: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.actions {
    font-size: 0.85em;
    margin-top: 8px;
    color: #666;
}

.actions a {
    color: #6b7280;
    margin-right: 10px;
}

/* ==========================================================================
   4. SYSTEM TAGOWANIA (WYDZIELONY Z KODU PYTHON)
   ========================================================================== */
.tag-cloud {
    margin-bottom: 20px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.tag-cloud a {
    margin-right: 10px;
    font-weight: bold;
}

.tag-badge {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
    display: inline-block;
}

/* ==========================================================================
   5. WIDOK NOTATKI I FORMATOWANIE KODU (BACKTICKI)
   ========================================================================== */
.note-body {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Stary znacznik pre zachowany dla kompatybilności */
pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 18px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Duży blok kodu (potrójne backticki) - stylizowany na terminal */
.code-block {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 15px;
    border-radius: 6px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    margin: 15px 0;
    border-left: 4px solid #4f46e5;
}

/* Kod wewnątrz linii (pojedynczy backtick) - subtelne wyróżnienie */
.inline-code {
    background: #e5e7eb;
    color: #b91c1c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95em;
    font-weight: bold;
}
