/* КРАСИВЫЙ СВЕТЛЫЙ SIDEBAR */

/* Основной контейнер sidebar с красивым градиентом */
#site__sidebar,
#site__sidebar > div,
#site__sidebar .p-2,
#site__sidebar div[class*="p-2"],
#site__sidebar div[class*="shadow-sm"],
#site__sidebar div[class*="relative"] {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #1f2937 !important;
    border-right: 1px solid #e5e7eb !important;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05) !important;
}

/* Контент внутри sidebar */
#site__sidebar .pr-4,
#site__sidebar div[data-simplebar] {
    background-color: white !important;
    color: black !important;
}

/* Навигация #side с красивым стилем */
#side,
#side ul,
#side li {
    background-color: transparent !important;
    color: #374151 !important;
}

#side a {
    background-color: transparent !important;
    color: #374151 !important;
    border-radius: 10px !important;
    margin: 2px 8px !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-weight: 500 !important;
}

#side span {
    color: inherit !important;
    background-color: transparent !important;
}

/* Красивые ссылки в sidebar */
#side a:hover,
#side a:focus {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    color: #1f2937 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

#side a.active,
#side a.uk-active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1d4ed8 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25) !important;
    font-weight: 600 !important;
}

#side a.active svg,
#side a.uk-active svg {
    color: #1d4ed8 !important;
}

/* Красивая секция "Top 5 models" */
#site__sidebar .font-medium,
#site__sidebar .text-sm,
#site__sidebar .text-black {
    background-color: transparent !important;
    color: #374151 !important;
}

#site__sidebar .border-t {
    border-color: #e5e7eb !important;
    border-style: solid !important;
    position: relative !important;
}

#site__sidebar .border-t::before {
    content: "" !important;
    position: absolute !important;
    top: -1px !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%) !important;
}

/* Красивый заголовок "Top 5 models" */
#site__sidebar .px-3.pb-2 .text-black {
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}

/* Красивые блоки моделей */
#site__sidebar .flex.items-center,
#site__sidebar .rounded-xl {
    background-color: transparent !important;
    color: #374151 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    margin: 2px 0 !important;
}

#site__sidebar .hover\:bg-secondery:hover,
#site__sidebar a:hover .flex.items-center {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    color: #1f2937 !important;
    transform: translateX(2px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Аватарки моделей */
#site__sidebar img.rounded-full {
    border: 2px solid #e5e7eb !important;
    transition: all 0.2s ease !important;
}

#site__sidebar a:hover img.rounded-full {
    border-color: #3b82f6 !important;
    transform: scale(1.05) !important;
}

/* Красивые SVG иконки */
#side svg {
    color: #6b7280 !important;
    transition: all 0.2s ease !important;
    width: 20px !important;
    height: 20px !important;
}

#side a:hover svg {
    color: #374151 !important;
    transform: scale(1.1) !important;
}

/* Переопределяем все возможные темные классы для sidebar */
#site__sidebar .dark\:bg-dark1,
#site__sidebar .dark\:bg-dark2,
#site__sidebar .dark\:bg-dark3,
#site__sidebar .dark\:bg-slate-800,
#site__sidebar .dark\:bg-slate-700,
#site__sidebar .dark\:text-white {
    background-color: white !important;
    color: black !important;
}

/* Переопределяем media queries для sidebar */
@media (prefers-color-scheme: dark) {
    #site__sidebar,
    #site__sidebar *,
    #site__sidebar div,
    #site__sidebar nav,
    #site__sidebar ul,
    #site__sidebar li,
    #site__sidebar a,
    #site__sidebar span,
    #side,
    #side * {
        background-color: white !important;
        color: black !important;
    }
    
    #side a:hover {
        background-color: #f1f5f9 !important;
        color: black !important;
    }
    
    #site__sidebar .border-t {
        border-color: #e2e8f0 !important;
    }
}

/* Убираем класс dark везде */
body.dark,
html.dark,
.dark,
#site__sidebar.dark,
#site__sidebar.dark *,
#side.dark,
#side.dark * {
    background-color: white !important;
    color: black !important;
}

/* Дополнительная защита от всех возможных темных стилей */
#site__sidebar [class*="bg-slate-8"],
#site__sidebar [class*="bg-slate-7"],
#site__sidebar [class*="bg-slate-9"],
#site__sidebar [class*="bg-dark"] {
    background-color: white !important;
    color: black !important;
}

/* ПРИНУДИТЕЛЬНО СВЕТЛЫЙ ФОН ВСЕГО САЙТА */
body,
html {
    background-color: #f8fafc !important; /* Светло-серый фон */
    color: #1f2937 !important;
    --color-bgbody: 248 250 252 !important; /* Переопределяем CSS переменную */
}

/* Основной контейнер wrapper */
#wrapper {
    background-color: #f8fafc !important;
    color: #1f2937 !important;
}

/* Основной контент main */
#site__main {
    background-color: #f8fafc !important;
    color: #1f2937 !important;
}

/* Переопределяем все возможные темные фоны */
.bg-bgbody {
    background-color: #f8fafc !important;
}

/* Переопределяем media queries для body */
@media (prefers-color-scheme: dark) {
    body,
    html,
    #wrapper,
    #site__main {
        background-color: #f8fafc !important;
        color: #1f2937 !important;
        --color-bgbody: 248 250 252 !important;
    }
    
    /* Убираем все dark: классы */
    [class*="dark:bg-dark"],
    [class*="dark:text-white"],
    [class*="dark:bg-slate"] {
        background-color: white !important;
        color: #1f2937 !important;
    }
}

/* Исключения - НЕ ТРОГАЕМ overlay элементы на основном контенте */
.absolute.bg-black-900,
.absolute.bg-opacity-30,
[class*="bg-black"][class*="bg-opacity"]:not(#site__sidebar *) {
    /* Оставляем как есть */
} 