/* =============================================================
   Zoptymalizowany arkusz stylów — wersja deweloperska
   - Cross-browser (Chrome, Firefox, Edge, Safari, Android, iOS)
   - Ukryty scrollbar z zachowaniem przewijania
   - Płynne przewijanie i responsywność
   - Ujednolicony wygląd i renderowanie fontów
   ============================================================= */

/* === RESET I PODSTAWOWE STYLY === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* usuwa efekt dotyku na mobile */
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* zapobiega powiększaniu czcionek na iOS */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* === ZACHOWANY ORYGINALNY STYL STRONY === */
/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
    font: inherit;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: var(--dark-text);
    position: relative;
}

/* Dodaj półprzezroczyste nakładkę dla lepszej czytelności */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: -1;
}

/* Nawigacja */
.navbar {
    backdrop-filter: blur(3px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    /*box-shadow: 0 0 5px 0 var(--shadow);*/

}

.nav-container {
    opacity: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 3rem;
    color: #000;
    text-shadow: 0 0 8px #fff;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input {
    padding: 0.6rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 250px;
    transition: var(--transition);
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.sort-buttons {
    display: flex;
    gap: 0.5rem;
}

.category-sort-buttons {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}
/* Rozwijane menu użytkownika */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--secondary-color);
    color: white;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu-toggle:hover {
    background: #1a252f;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--dark-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--light-bg);
}

.dropdown-item.logout {
    color: var(--danger-color);
}

.dropdown-item.logout:hover {
    background: #fadbd8;
}

.dropdown-divider {
    height: 1px;
    background: #ddd;
    margin: 0.5rem 0;
}

.nav-user {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Główna zawartość */
.main-content {
    max-width: 90%;
    margin: 2rem auto;
    padding: 0 2rem;
}

.container {
    width: 100%;
}



/* Siatka kategorii */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    transition: var(--transition);
    position: relative;
}

/* Karta kategorii */
.category-card {
    background: color-mix(in srgb, var(--category-color) 50%, transparent);
    border-radius: var(--border-radius);
    box-shadow: 0 0 5px 0 var(--category-color);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px 0 var(--category-color);
}

.category-card.expanded {
    grid-column: 1 / -1;
    transform: none;
}

.category-card.collapsing {
    grid-column: 1 / -1;
    transform: none;
}

.category-header {
    background: color-mix(in srgb, var(--category-color) 70%, transparent);
    height: 70px;
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.category-icon {
    font-size: 2rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
}

.category-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.category-actions {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    margin-left: auto;
}

.category-actions-row {
    display: flex;
    gap: 0.15rem;
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.category-card.expanded .category-content {
    max-height: 2000px;
    padding: 1.5rem;
}

/* Siatka stron */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Kafelek strony */
.page-tile {
    background: #f5f5f5;
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--dark-text);
    border: 2px solid #e0e0e0;
}

.page-tile:hover {
    background: var(--category-color, #d5dbdb);
    background: color-mix(in srgb, var(--category-color) 20%, white);
    transform: scale(1.05);
    border-color: var(--category-color, #bdc3c7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.page-title {
    font-weight: 600;
    font-size: 1rem;
    word-break: break-word;
    flex: 1;
}

.page-actions {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    transition: var(--transition);
}

.page-actions-row {
    display: flex;
    gap: 0.15rem;
}

.page-tile .btn-icon {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.2rem 0.35rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.page-tile .btn-icon:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.page-description {
/*
    font-size: 0.85rem;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
  */
    font-size: 0.8rem;
    color: #555;
    word-break: break-word;
    flex: 1;

}

.page-url {
    font-size: 0.75rem;
    color: var(--primary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.5rem;
}

/* Kafelek dodawania */
.add-page-tile {
    background: linear-gradient(135deg, var(--success-color) 0%, #27ae60 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    font-size: 3rem;
    font-weight: 300;
}

.add-page-tile:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Kafelek dodawania notatki */
.add-note-tile {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    font-size: 2.5rem;
}

.add-note-tile:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* Kafelek notatki */
.note-tile {
    background: #f5f5f5;
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e0e0e0;
}

.note-tile:hover {
    background: color-mix(in srgb, var(--category-color) 20%, white);
    transform: scale(1.05);
    border-color: var(--category-color, #bdc3c7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.note-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.note-subject {
    font-weight: 600;
    font-size: 1rem;
    word-break: break-word;
    flex: 1;
}

.note-actions {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.note-actions-row {
    display: flex;
    gap: 0.15rem;
}

.note-tile .btn-icon {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.2rem 0.35rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.note-tile .btn-icon:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.note-content {
    font-size: 0.8rem;
    color: #555;
    word-break: break-word;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Linki w notatkach */
.note-link {
    color: #3498db;
    text-decoration: underline;
    word-break: break-all;
}

.note-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Linki w modalu podglądu notatki */
#noteViewContent .note-link {
    color: #3498db;
    text-decoration: underline;
    word-break: break-word;
    font-weight: 500;
}

#noteViewContent .note-link:hover {
    color: #2980b9;
}

/* Przyciski */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #1a252f;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

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

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Przyciski w nagłówku kategorii */
.category-header .btn-icon {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.2rem 0.35rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.category-header .btn-icon:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Przyciski strzałek zmiany kolejności */
.reorder-category-up,
.reorder-category-down {
    background: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    padding: 0.2rem 0.35rem;
}

.reorder-category-up:hover,
.reorder-category-down:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Strzałki kolejności dla stron */
.reorder-page-up,
.reorder-page-down {
    background: rgba(0, 0, 0, 0.6);
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
}

.reorder-page-up:hover,
.reorder-page-down:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.15);
}

.btn-block {
    width: 100%;
}

/* Przycisk trybu edycji */
#editModeBtn {
    transition: background 0.3s ease;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    padding-top: 50px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s;
    min-width: 450px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
}

.modal-content h2 {
    flex-shrink: 0;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.modal-content .form-group {
    flex-shrink: 0;
}

.modal-content .form-group:has(textarea) {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-content .form-group:has(.icon-selector) {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-content .form-group:has(.icon-selector) label {
    flex-shrink: 0;
}

.modal-content .form-actions {
    flex-shrink: 0;
}

#noteViewContainer {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

#noteViewContent {
    flex: 1;
    overflow-y: auto;
}

.modal-content.resizable {
    resize: none;
}

.resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    z-index: 1000;
}

.resize-handle::after {
    content: '⋰';
    position: absolute;
    right: 2px;
    bottom: 0;
    font-size: 16px;
    color: #999;
    line-height: 1;
    transform: rotate(90deg);
    transition: color 0.2s;
}

.resize-handle:hover::after {
    color: #666;
}

.move-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 35px;
    cursor: move;
    z-index: 999;
    background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
    border-bottom: 1px solid #ddd;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.move-handle::after {
    content: '⋮⋮⋮';
    font-size: 18px;
    color: #999;
    letter-spacing: 3px;
    transition: color 0.2s;
}

.move-handle:hover {
    background: linear-gradient(to bottom, #e8e8e8, #ddd);
}

.move-handle:hover::after {
    color: #666;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 0.5rem;
    top: 0;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
    z-index: 1001;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--danger-color);
}

/* Formularze */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    resize: none;
    flex: 1;
    min-height: 100px;
    overflow-y: auto;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input[type="color"] {
    width: 100px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Selektor ikon */
.icon-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, 45px);
    gap: 0.5rem;
    overflow-y: auto;
    overflow-x: auto;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    flex: 1;
    align-content: start;
}

.icon-option {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    background: var(--light-bg);
    flex-shrink: 0;
}

.icon-option:hover {
    background: #d5dbdb;
    transform: scale(1.1);
}

.icon-option.selected {
    background: var(--primary-color);
    color: white;
}

/* Strona logowania */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.login-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-align: center;
}

.login-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
}

.login-info code {
    background: var(--light-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

/* Alerty */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fadbd8;
    color: #c0392b;
    border: 1px solid #e74c3c;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #2ecc71;
}

/* Panel administracyjny */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ddd;
}

.admin-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.users-table {
    overflow-x: auto;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.users-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--secondary-color);
}

.users-table .btn-icon {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.users-table .btn-icon:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-admin {
    background: #3498db;
    color: white;
}

.badge-user {
    background: #95a5a6;
    color: white;
}

.text-muted {
    color: #999;
}

/* Stan pusty */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.empty-state h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsywność */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-input {
        width: 180px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }


    .main-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .pages-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .category-header {
        padding: 1rem;
    }

    .category-icon {
        font-size: 1.5rem;
    }

    .category-name {
        font-size: 1rem;
    }
}

/* === UNIWERSALNE UKRYCIE SCROLLBARA Z ZACHOWANIEM SCROLLA === */
html, body {

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* WebKit (Chrome, Safari, Edge, Opera, Android) */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}
::-webkit-scrollbar-thumb {
    background: transparent;
}
::-webkit-scrollbar-track {
    background: transparent;
}

/* Firefox + starszy Edge/IE */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Mobilne poprawki */
body {
    overscroll-behavior: none;
    touch-action: pan-y;
}

/* Wyszukiwanie */
.category-card.search-hidden {
    display: none;
}

.search-highlight {
    background-color: yellow;
    font-weight: bold;
    padding: 0 2px;
}

.search-active .category-card:not(.search-match) {
    opacity: 0.3;
    pointer-events: none;
}

/* === KONIEC PLIKU === */