.custom-container {
    width: 100%;
    padding-left: 2%;
    padding-right: 2%;
    margin-left: auto;
    margin-right: auto;
}


/* Иконка в навигации */
.navbar-brand-icon {
    margin-right: 10px;
    color: #fff;
    transition: color 0.3s ease;
}

.navbar-brand-icon:hover {
    color: #0d6efd;
}

/* Стили для разных типов пользователей */
.user-badge {
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 10px;
}

.badge-basic {
    background-color: #6c757d;
}

.badge-advanced {
    background-color: #198754;
}

.badge-admin {
    background-color: #dc3545;
}

:root {
    --warm-orange: #ff8c42;
    --warm-yellow: #ffd166;
    --warm-beige: #fffaf0;
    --warm-brown: #8b4513;
}

body {
    background-color: #fffaf0;
}

/* 

.navbar-nav .dropdown-toggle::after {
    border: none !important;
    content: "▾" !important;
    font-size: 1.1em;
    vertical-align: middle;
    margin-left: 0.4em;
} */

/* Дополнительные стили для улучшения внешнего вида выпадающего списка */
.navbar-nav .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
}


.sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link.active {
    font-weight: bold;
}

.article-content {
    line-height: 1.6;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.sidebar .nav-link {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.sidebar .nav-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}


/* стили для tool tip */
.my-tooltip {
    position: relative;
    color: #0066cc;
    border-bottom: 1px dotted #0066cc;
    cursor: help;
    display: inline-block;
}

/* Контейнер тултипа */
.my-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    
    /* По умолчанию показываем сверху */
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    width: 250px;
    max-width: 90vw; /* Адаптивность для мобильных */
    
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
    
    /* Скрываем */
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    line-height: 1.4;
}

/* Стрелочка */
.my-tooltip::before {
    content: '';
    position: absolute;
    border: 6px solid transparent;
    border-top-color: #333;
    
    /* По умолчанию сверху */
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    
    display: none;
    z-index: 1001;
}

/* Показываем при наведении (десктоп) */
.my-tooltip:hover::after,
.my-tooltip:hover::before {
    display: block;
    opacity: 1;
}

/* Для мобильных устройств - тап по элементу */
@media (hover: none) and (pointer: coarse) {
    .my-tooltip.active::after,
    .my-tooltip.active::before {
        display: block !important;
        opacity: 1 !important;
    }
}

/* Адаптивность для маленьких экранов */
@media (max-width: 768px) {
    .my-tooltip::after {
        width: 200px;
        font-size: 13px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .my-tooltip::after {
        width: 180px;
        max-width: calc(100vw - 20px);
        left: 0;
        transform: none;
        margin-left: 0;
    }
    
    .my-tooltip::before {
        left: 20px;
        transform: none;
    }
}

/* Динамическое позиционирование через CSS переменные */
.my-tooltip[style*="--tooltip-position: bottom"]::after {
    bottom: auto;
    top: 100%;
    margin-top: 10px;
    margin-bottom: 0;
}

.my-tooltip[style*="--tooltip-position: bottom"]::before {
    bottom: auto;
    top: 100%;
    margin-top: 4px;
    margin-bottom: 0;
    border-top-color: transparent;
    border-bottom-color: #333;
}

.my-tooltip[style*="--tooltip-position: left"]::after {
    bottom: auto;
    top: 50%;
    left: auto;
    right: 100%;
    transform: translateY(-50%);
    margin-right: 10px;
    margin-bottom: 0;
}

.my-tooltip[style*="--tooltip-position: right"]::after {
    bottom: auto;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 10px;
    margin-bottom: 0;
}

/* текст для tooltip!!!!!!!!!!!!! 
<span class="my-tooltip" data-tooltip="CSS (Cascading Style Sheets) - язык стилей
• Используется для оформления HTML-документов
• Поддерживает анимации и адаптивную верстку
• Работает с селекторами и медиа-запросами">
CSS
</span>
*/