/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: #161321;
}
::-webkit-scrollbar-thumb {
    background: #292536;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff6600;
}

.sidebar-transition {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Item Active/Hover States */
.nav-item-icon {
    color: #8f8c9e;
    transition: color 0.3s ease, transform 0.2s;
}
.nav-item:hover .nav-item-icon {
    color: white;
    transform: scale(1.1);
}

/* Sidebar Visibility Classes - Desktop */
@media (min-width: 1024px) {
    #sidebar {
        width: 80px;
    }

    #sidebar:not(.expanded) .nav-text,
    #sidebar:not(.expanded) .nav-arrow,
    #sidebar:not(.expanded) .sidebar-footer-complex,
    #sidebar:not(.expanded) .menu-grid-text,
    #sidebar:not(.expanded) .promo-text {
        display: none;
    }

    #sidebar:not(.expanded) .menu-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    #sidebar:not(.expanded) .menu-grid > div {
        width: 48px;
        height: 48px;
        margin: 0 auto;
        padding: 0;
        justify-content: center;
        align-items: center;
        border: none;
        background: transparent;
    }

    #sidebar:not(.expanded) .menu-grid > div:hover {
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
    }

    #sidebar:not(.expanded) .menu-grid > div i {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    #sidebar:not(.expanded) .top-btn {
        justify-content: center;
        padding: 0.75rem;
    }

    #sidebar:not(.expanded) .nav-item-container {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    #sidebar:not(.expanded) .sidebar-footer-simple {
        display: flex;
    }

    #sidebar.expanded {
        width: 280px;
    }

    #sidebar.expanded .sidebar-footer-simple {
        display: none;
    }
    #sidebar.expanded .sidebar-footer-complex {
        display: flex;
    }
}

/* Gradient Text */
.text-gradient-cool {
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SEO Content Styling */
.seo-content {
    background-color: #1e1b2e;
    padding: 2.5rem;
    border-radius: 1rem;
    color: #8f8c9e;
    line-height: 1.8;
    font-size: 0.95rem;
    border: 1px solid #2c283a;
}
.seo-content h1 {
    font-size: 2rem;
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}
.seo-content h2 {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #ff6600;
    padding-left: 15px;
    display: block;
}
.seo-content ul, .seo-content ol { margin-bottom: 2rem; padding-left: 0; list-style: none; }
.seo-content ul li { position: relative; padding-left: 2rem; margin-bottom: 0.8rem; }
.seo-content ul li::before { content: '★'; position: absolute; left: 0; color: #ff6600; font-weight: bold; font-size: 0.8rem; }
.seo-content ol { counter-reset: cz-counter; }
.seo-content ol li { position: relative; padding-left: 3rem; margin-bottom: 1rem; }
.seo-content ol li::before { counter-increment: cz-counter; content: counter(cz-counter); position: absolute; left: 0; top: 2px; width: 1.8rem; height: 1.8rem; background: #ff6600; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.85rem; }
/* Таблицы: блок с горизонтальной прокруткой через селекторы (без обёрток в HTML) */
.seo-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background-color: #252136;
    border-radius: 12px;
}
.seo-content table tbody {
    display: table;
    width: 100%;
    min-width: 480px;
}
.seo-content table tr {
    display: table-row;
}
.seo-content table td,
.seo-content table th {
    display: table-cell;
}
.seo-content th { background-color: #2c283a; color: #ff6600; padding: 15px; text-align: left; text-transform: uppercase; font-size: 0.8rem; border-bottom: 1px solid #3e3852; }
.seo-content td { padding: 15px; border-bottom: 1px solid #3e3852; color: white; }
.seo-content tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
    .seo-content td { padding: 10px 8px; font-size: 0.85rem; }
    .seo-content th { padding: 10px 8px; font-size: 0.75rem; }
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
