/* base.css */

body {
    font-family: TheNorthernBlockAcrom, "Trebuchet MS", sans-serif;

}
.container{
    max-width: 1100px;
}


/* Основные стили бокового меню */
.side-menu {
    position: fixed;
    top: 70px; /* соответствует высоте navbar */
    width: 240px;
    height: calc(100vh - 85px);
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--bs-body-bg);
    z-index: 1030;
}


/* Контейнер для контента с учетом сайдбара */
.content-with-sidebar {
    margin-top: 48px;
    padding-top: 22px;
    max-height: calc(100vh - 70px - 2rem);
    transition: margin-left 0.5s;
    padding-right: 1rem;
    padding-left: calc(240px + 2rem) !important
}


/* Стили для плиток меню */
.menu-tiles-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-tile {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0;
    border-radius: 0.5rem;
    padding: 1rem;
    
}

.menu-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-tile a {
    transition: color 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--bs-body-color);
}

.menu-tile i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Специфичные стили для кнопки выхода */
.menu-tile.logout-tile {
    margin-top: auto;
    margin-bottom: 1rem;
}

@media (min-width: 1700px) {
    .container-lg {
        max-width: 1320px;
        transition: max-width 0.5s;
    }
    .content-with-sidebar {
        padding-left: calc(240px + 2rem) !important;
    }
}


@media (max-width: 1200px) {
    .container-lg {
        max-width: 1140px;
        transition: max-width 0.5s;
    }
        .content-with-sidebar {
        padding-left: calc(240px + 2rem) !important;
    }

}

@media (max-width: 991.98px) {
    .side-menu {
        display: none;
    }
    
    .content-with-sidebar {
        width: 100%;
        padding: 1rem;
        transition: width 0.5s;
        transition: margin 0.5s;
        transition: padding-left 0.5s;
        padding-left: 1rem !important;
        margin-left: 0;
        
    }
}

/* Стили для переключателя темы */
.theme-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1050;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Стили для информации о пользователе */
.nav-link .username {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link .user-balance {
    font-size: 0.8rem;
    color: var(--bs-secondary);
}

/* Стили комментариев */
.comment-box p {
    white-space: pre-wrap; /* сохраняет переносы строк */
    word-wrap: break-word; /* переносит длинные слова */
}
