/* ===== СТИЛИ ДЛЯ КАРТОЧКИ КАТЕГОРИЙ/РАЗДЕЛОВ ===== */

/* Карточка-шапка (светлая, отдельная) */
.nav-header-card {
    background: #ffffff;
    border: 1px solid #dce3f0;
    border-radius: 14px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 12px 30px rgba(0,0,0,0.05));
}

/* Верхняя строка (светло-серая) */
.forum-card-header {
    background: #fafcff;
    border-bottom: 1px solid #eef2ff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    row-gap: 8px;
}

.module-title {
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    font-size: 16px;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-light, #4a5a72);
}

.breadcrumbs a {
    color: var(--primary, #2b3b8c);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-badge {
    background: #ffffff;
    border: 1px solid #dce3f0;
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark, #1e293b);
}

.action-badge:hover {
    background: var(--primary, #2b3b8c);
    color: white;
    border-color: var(--primary);
}

.add-material-btn {
    background: var(--primary, #2b3b8c);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.add-material-btn:hover {
    background: var(--primary-dark, #1e2a62);
}

/* Нижняя строка статистики (белая) */
.info-stats-row {
    text-align: center;
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-light, #4a5a72);
    background: #ffffff;
    border-top: 1px solid #eef2ff;
}

.stats-divider {
    margin: 0 12px;
    color: #dce3f0;
}

/* Стили для пунктов выезжающей панели (категории/разделы) */
.category-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-bottom: 1px solid #eef2ff;
    transition: 0.2s;
    cursor: pointer;
}

.category-list-item:hover {
    background: #f8fafc;
}

.category-list-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dce3f0;
}

.category-list-item .category-info {
    flex: 1;
}

.category-list-item .category-name {
    font-weight: 600;
    color: var(--text-dark, #1e293b);
}

.category-list-item .category-desc {
    font-size: 12px;
    color: var(--text-light, #4a5a72);
}

/* Адаптивность */
@media (max-width: 800px) {
    .forum-card-header {
        flex-direction: column;
        align-items: stretch;
    }
    .header-left {
        justify-content: space-between;
    }
    .header-right {
        justify-content: flex-start;
    }
}

@media (max-width: 550px) {
    .header-left {
        flex-direction: column;
        align-items: flex-start;
    }
    .breadcrumbs {
        order: 2;
    }
    .header-right {
        flex-wrap: wrap;
    }
}