body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bulk-actions-container {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 15;
}

#sidebar {
    width: 260px;
}

#sidebar .sidebar-header {
    height: 56px;
}

#sidebar .nav-link {
    color: #495057;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

#sidebar .nav-link i {
    font-size: 1rem;
}

#sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

#sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #212529;
}

.sidebar-seo2026-block {
    margin: 14px 10px;
    padding: 10px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
}

.sidebar-seo2026-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #166534;
}

.sidebar-seo2026-title::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.sidebar-seo2026-link {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding: 8px 9px;
    border-radius: 10px;
    color: #14532d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sidebar-seo2026-link:last-child {
    margin-bottom: 0;
}

.sidebar-seo2026-link:hover {
    background: rgba(34, 197, 94, 0.14);
    color: #052e16;
    transform: translateX(2px);
}

.sidebar-seo2026-link.active {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.22);
}

.sidebar-seo2026-link.active i {
    color: #ffffff;
}

.sidebar-section-main-keywords {
    border-color: rgba(37, 99, 235, 0.4);
    background: linear-gradient(180deg, #e5efff, #f2f7ff);
}
.sidebar-section-main-keywords .sidebar-seo2026-title { color: #1e40af; letter-spacing: 0.03em; }
.sidebar-section-main-keywords .sidebar-seo2026-title::before { background: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); flex-shrink: 0; }
.sidebar-section-main-keywords .sidebar-seo2026-link { color: #1e40af; }
.sidebar-section-main-keywords .sidebar-seo2026-link:hover { background: #dbeafe; color: #1e3a8a; }
.sidebar-section-main-keywords .sidebar-seo2026-link.active { background: #2563eb; color: white; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2); }
.main-keyword-toggle { width: 1.15em; height: 1.15em; cursor: pointer; }

.sidebar-section-workflow {
    border-color: rgba(124, 58, 237, 0.35);
    background: linear-gradient(180deg, #f0e7ff, #faf5ff);
}
.sidebar-section-workflow .sidebar-seo2026-title { color: #5b21b6; letter-spacing: 0.03em; }
.sidebar-section-workflow .sidebar-seo2026-title::before { background: #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); flex-shrink: 0; }
.sidebar-section-workflow .sidebar-seo2026-link { color: #5b21b6; }
.sidebar-section-workflow .sidebar-seo2026-link:hover { background: #e9d5ff; color: #4c1d95; }
.sidebar-section-workflow .sidebar-seo2026-link.active { background: #7c3aed; color: white; box-shadow: 0 8px 18px rgba(124, 58, 237, 0.2); }

@media (max-width: 991.98px) {
    #sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 1030;
        transform: translateX(-100%);
        transition: transform 0.2s ease-in-out;
    }

    #sidebar.show {
        transform: translateX(0);
    }
}
