/* Общие стили приложения knowledge_base (шапка, страницы KB) */

/* --- Выпадающее меню «Чат-боты» в base.html --- */
.nav-chat-bots-dropdown .dropdown-menu {
    z-index: 1050;
    min-width: 240px;
    border-radius: 12px;
    padding: 0.35rem 0;
    margin-top: 0.35rem;
}

.nav-chat-bots-dropdown .dropdown-item {
    font-size: 15px;
    font-weight: 500;
    color: #2e2e2e;
}

.nav-chat-bots-dropdown .dropdown-item:hover,
.nav-chat-bots-dropdown .dropdown-item:focus {
    color: #1482FA;
    background-color: rgba(20, 130, 250, 0.08);
}

.nav-chat-bots-dropdown .dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.15em;
}

.burger-menu .nav-chat-bots-dropdown .dropdown-menu a {
    border-bottom: none;
    padding: 0.5rem 1rem;
}

/* --- Страница списка чат-ботов (knowledge_base/index.html) --- */
.kb-index .cards-grid a {
    text-decoration: none;
    color: #333;
}

.kb-index.main-content {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.kb-index.main-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.kb-index .subtext {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.kb-index .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    justify-items: center;
}

.kb-index .card {
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 30px 20px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
    min-height: 300px;
    justify-content: center;
    align-items: center;
}

.kb-index .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.kb-index .card-icon img {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 15px;
}

.kb-index .card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.kb-index .card p {
    font-size: 15px;
    color: #666;
}

@media (max-width: 560px) {
    .kb-index.main-content {
        padding: 0;
    }

    .kb-index .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    }
}
