/* ThreatCluster Scaffold CSS - Dark Theme Foundation */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800;900&family=Barlow:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Theme */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #141414;
    --bg-card: #141414;
    --bg-hover: #1a1a1a;
    
    --text-primary: #e0e0e0;
    --text-secondary: #999999;
    --text-muted: #666666;
    
    --accent-red: #dc2626;
    --accent-blue: #dc2626; /* Override blue with red */
    --accent-green: #10b981;
    --accent-orange: #f97316;
    --accent-purple: #8b5cf6;
    
    --border-color: #252525;
    --border-light: #1a1a1a;
    
    /* Transitions */
    --transition-fast: 0.2s;
    --transition-base: 0.3s;
    
    /* Spacing */
    --sidebar-width: 280px;
    --right-sidebar-width: 380px;
    --top-nav-height: 60px;
    
    /* Typography */
    --font-primary: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography - Headers use Barlow Condensed */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Remove rounded corners from most elements */
input, button, .card, .form-control, .btn {
    border-radius: 0 !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a4155;
}

/* Sidebar Scrollbar Styling - Subtle Red */
.left-sidebar::-webkit-scrollbar-thumb,
.right-sidebar::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.2);  /* Very subtle red */
}

.left-sidebar::-webkit-scrollbar-thumb:hover,
.right-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.4);  /* Slightly more visible on hover */
}

/* Top Navigation */
.top-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    height: var(--top-nav-height);
    z-index: 1000;
    padding: 0 20px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: var(--sidebar-width);
    padding: 0 20px;
    box-sizing: border-box;
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.5px;
}


.recording-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    margin-left: 4px;
    animation: pulse 2s ease-in-out infinite;
    overflow: hidden;
}

/* Profile Icon */
.profile-icon-link {
    color: var(--text-secondary);
    font-size: 24px;
    transition: color 0.2s ease;
    text-decoration: none;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-icon-link:hover {
    color: var(--accent-red);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.profile-dropdown-menu .dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--accent-red);
}

.profile-dropdown-menu .dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--text-secondary);
}

.profile-dropdown-menu .dropdown-item:hover i {
    color: var(--accent-red);
}

.profile-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.profile-dropdown-menu .dropdown-item.logout {
    color: var(--text-secondary);
}

.profile-dropdown-menu .dropdown-item.logout:hover {
    color: var(--accent-red);
    background: rgba(220, 38, 38, 0.1);
}

/* Mobile adjustments for top nav */
@media (max-width: 768px) {
    .top-nav {
        padding: 8px 12px;
        height: 50px;
    }
    
    .left-sidebar {
        top: 50px;
        height: calc(100vh - 50px);
    }
    
    .logo-wrapper {
        gap: 8px;
        width: auto;
        padding: 0;
    }
    
    .logo-text {
        display: inline-block !important;
        font-size: 16px;
        cursor: pointer;
        user-select: none;
    }
    
    .profile-icon-link {
        font-size: 20px;
        padding: 6px;
    }
    
    .recording-dot {
        width: 6px;
        height: 6px;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.top-nav-content {
    padding: 0 20px;
}

/* Main Container */
.main-container {
    margin-top: var(--top-nav-height);
    position: relative;
    width: 100%;
}

/* Left Sidebar */
.left-sidebar {
    position: fixed;
    left: 0;
    top: var(--top-nav-height);
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    height: calc(100vh - var(--top-nav-height));
    overflow-y: auto;
    z-index: 100;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-search {
    margin-bottom: 24px;
}

.sidebar-search input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    width: 100%;
    font-size: 13px;
}

.sidebar-search input::placeholder {
    color: var(--text-muted);
}

.sidebar-search input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-hover);
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 32px;
}

.section-title {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-add {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 12px;
}

.btn-add:hover {
    color: var(--text-primary);
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nav-item a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active a {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 14px;
}

.nav-item span:not(.badge):not(.count) {
    flex: 1;
}

.nav-item .badge,
.nav-item .count {
    margin-left: auto;
    font-size: 11px;
}

.nav-item .badge {
    background: var(--accent-red);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.nav-item .count {
    color: var(--text-muted);
}

/* Live Toggle */
.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
}

.live-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.live-toggle i {
    color: var(--accent-green);
}

.toggle-switch {
    margin-left: auto;
}

.toggle-switch input {
    display: none;
}

.toggle-switch label {
    display: block;
    width: 44px;
    height: 24px;
    background: var(--bg-hover);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch label::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.toggle-switch input:checked + label {
    background: var(--accent-green);
}

.toggle-switch input:checked + label::after {
    transform: translateX(20px);
}

/* Main Content */
.main-content {
    position: relative;
    background: var(--bg-primary);
    overflow-y: auto;
    padding: 24px;
    margin-left: var(--sidebar-width);
    margin-right: var(--right-sidebar-width);
    min-height: calc(100vh - var(--top-nav-height));
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Right Sidebar */
.right-sidebar {
    position: fixed;
    right: 0;
    top: var(--top-nav-height);
    width: var(--right-sidebar-width);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    height: calc(100vh - var(--top-nav-height));
    overflow-y: auto;
    z-index: 100;
}

.right-sidebar .sidebar-content {
    padding: 24px;
}

/* Widgets */
.widget {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--accent-orange);
}

.widget-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Topics List */
/* Carousel Tabs */
.carousel-tabs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.carousel-tab {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    font-weight: 500;
}

.carousel-tab:hover {
    color: var(--text-primary);
}

.carousel-tab.active {
    color: var(--accent-red);
}

.carousel-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-red);
}

/* Carousel Content */
.carousel-content {
    position: relative;
}

.carousel-pane {
    display: none;
}

.carousel-pane.active {
    display: block;
}

/* Topics List Container */
.topics-list {
    margin-top: 8px;
}

.topic-section {
    margin-bottom: 20px;
}

.topic-section:last-child {
    margin-bottom: 0;
}

.topic-category {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
}

.topic-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.topic-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.topic-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
}

.unfollow-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.unfollow-btn:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
    transform: translateY(-1px);
}

.trend-arrow {
    font-weight: bold;
}

.trend-arrow.up {
    color: #22c55e;
}

.trend-arrow.down {
    color: #ef4444;
}

.trend-arrow.neutral {
    color: var(--text-secondary);
}

.trend-percent {
    color: var(--text-secondary);
}

.topic-count {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 40px;
    text-align: center;
}

/* Clusters List */
.clusters-list {
    margin-top: 8px;
}

.cluster-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cluster-item:last-child {
    border-bottom: none;
}

.cluster-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cluster-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.cluster-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cluster-score {
    font-weight: 500;
}

.cluster-source {
    color: var(--text-secondary);
    font-weight: 500;
}

.cluster-time {
    color: var(--text-muted);
}

.cluster-count {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 40px;
    text-align: center;
}

.topic-meta {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.trend {
    margin-left: 8px;
    font-weight: 600;
}

.trend.up {
    color: var(--accent-green);
}

.trend.down {
    color: var(--accent-red);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Article Badge */
.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Developing Badge */
.developing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.developing-badge .icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Threat Image */
.threat-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 6px;
    background: var(--bg-tertiary);
}

.threat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Infinite Scroll */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.end-of-feed {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Topic Tags */
.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-hover);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1400px) {
    /* First hide right sidebar on smaller desktops */
    .right-sidebar {
        display: none;
    }
    
    .main-content {
        margin-right: 0;
    }
}

@media (max-width: 1200px) {
    /* Hide all sidebars on medium screens to prevent overlap */
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

@media (max-width: 992px) {
    /* Tablet/Mobile Layout - Transform sidebars */
    .left-sidebar {
        position: fixed;
        left: -250px;
        top: var(--top-nav-height);
        bottom: 0;
        width: 250px;
        background: var(--bg-secondary);
        transition: transform 0.3s ease;
        z-index: 1050;
        display: block !important;
        height: calc(100vh - var(--top-nav-height));
        border-right: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    .left-sidebar.mobile-active {
        transform: translateX(250px);
    }
    
    /* Ensure top nav is above sidebar */
    .top-nav {
        z-index: 1060;
    }
    
    .right-sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 16px;
    }
    
    .main-container {
        overflow-x: hidden;
    }
    
}

@media (max-width: 576px) {
    .top-nav {
        padding: 0 12px;
    }
    
    .nav-pill {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    .main-content {
        padding: 12px;
    }
}

/* Placeholder Content (Remove in production) */
.placeholder-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.placeholder-content h2 {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Feed Page Styles */
.feed-container,
.trending-container {
    padding: 20px;
    padding-top: 0;
    max-width: 100%;
}

/* Global Filter Bar */
.filter-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

/* Common height for all filter bar elements */
.filter-bar .filter-pill,
.filter-bar .filter-button,
.filter-bar .feed-select,
.filter-bar .severity-toggle,
.filter-bar .entity-filters-dropdown-btn {
    height: 36px;
    display: inline-flex;
    align-items: center;
}

/* Filter bar scrollbar styling */
.filter-bar::-webkit-scrollbar {
    height: 4px;
}

.filter-bar::-webkit-scrollbar-track {
    background: transparent;
}

.filter-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.filter-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    min-width: fit-content;
}

.filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
}

.filter-pill:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-red);
}

.filter-pill.active {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.filter-pill .badge {
    background: var(--accent-red);
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
}

.filter-pill .icon {
    font-size: 12px;
}

.filter-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Severity Dropdown */
.severity-dropdown {
    position: relative;
}

.severity-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.severity-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.severity-dropdown-content {
    display: none;
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 16px;
    z-index: 1000;
    min-width: 240px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-top: 4px;
}

.severity-dropdown-content.show {
    display: block;
    pointer-events: auto;
}

.severity-dropdown-content:not(.show) {
    pointer-events: none;
}

/* Entity Filters Dropdown */
.entity-filters-dropdown {
    position: relative;
}

.entity-filters-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.entity-filters-dropdown-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    color: var(--accent-red);
}

.entity-filters-dropdown-btn .dropdown-arrow {
    transition: transform 0.2s ease;
    font-size: 10px;
}

.entity-filters-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.entity-filters-dropdown-menu {
    display: none;
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
}

/* Entity search input */
.entity-filter-search {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.entity-filter-search input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.entity-filter-search input:focus {
    border-color: var(--accent-red);
}

.entity-filter-search i {
    color: var(--text-muted);
    font-size: 14px;
}

.entity-filters-dropdown-menu.show {
    display: block;
    pointer-events: auto;
}

.entity-filters-dropdown-menu:not(.show) {
    pointer-events: none;
}

.entity-filter-section {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.entity-filter-section:last-child {
    border-bottom: none;
}

.entity-filter-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.entity-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.entity-filter-option:hover {
    background: var(--bg-tertiary);
    color: var(--accent-red);
}

.entity-filter-option.active {
    background: var(--accent-red);
    color: white;
}

.entity-filter-option i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.category-arrow {
    transition: transform 0.2s ease;
}

.entity-filter-option.expanded .category-arrow {
    transform: rotate(90deg);
}

.entity-list {
    margin-left: 24px;
    margin-top: 4px;
    display: none;
}

.entity-option {
    padding: 6px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.entity-option .entity-name {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.entity-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.entity-loading {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.entity-filter-actions {
    padding: 12px;
}

.entity-filter-clear {
    width: 100%;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.entity-filter-clear:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* Severity Filter Slider */
.severity-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.severity-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.severity-slider-container {
    position: relative;
}

.severity-slider {
    width: 200px;
    position: relative;
}

.severity-track {
    height: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    margin-bottom: 8px;
}

.severity-range {
    height: 100%;
    background: linear-gradient(90deg, 
        #3b82f6 0%, 
        #3b82f6 25%, 
        #eab308 25%, 
        #eab308 50%, 
        #f97316 50%, 
        #f97316 75%, 
        #dc2626 75%, 
        #dc2626 100%
    );
    border-radius: 3px;
    width: 100%;
}

.severity-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    cursor: grab;
    z-index: 2;
    left: 0%;
    transition: transform 0.1s ease;
}

.severity-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.severity-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.95);
}

.severity-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    user-select: none;
}

.severity-labels span {
    cursor: pointer;
    padding: 2px 4px;
}

.severity-labels span:hover {
    color: var(--text-secondary);
}

.filter-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    font-size: 13px;
    font-family: var(--font-primary);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-red);
}

.filter-button {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
}

.filter-button:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-red);
}

.filter-button .icon {
    font-size: 14px;
}

/* Feed Type Selector */
.feed-type-selector {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px;
    border: 1px solid var(--border-color);
}

.feed-type-selector .filter-pill {
    border: none;
    padding: 0 12px;
}

.feed-type-selector .filter-pill.active {
    background: var(--accent-red);
    color: white;
}

/* Filter Divider */
.filter-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 8px;
    align-self: center;
}

/* Feed Select Dropdown */
.feed-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0 32px 0 12px;
    font-size: 13px;
    font-family: var(--font-primary);
    cursor: pointer;
    min-width: 150px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.feed-select:focus {
    outline: none;
    border-color: var(--accent-red);
}

.feed-select optgroup {
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
}

.page-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1;
}

.page-subtitle {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Threat Grid */
.threat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Threat Card */
.threat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    height: 100%;
}

.threat-card:hover {
    border-color: var(--border-color);
    transform: none;
}


/* Article highlight animation when clicked from timeline */
.article-highlight {
    animation: highlightPulse 0.6s ease-out;
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

@keyframes highlightPulse {
    0% {
        border-color: var(--accent-red);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
    }
    50% {
        border-color: var(--accent-red);
        box-shadow: 0 0 20px 10px rgba(220, 38, 38, 0.3);
    }
    100% {
        border-color: var(--accent-red);
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    }
}

/* Threat Header */
.threat-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cluster-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.cluster-badge .icon {
    font-size: 14px;
    color: var(--accent-red);
}

.severity-badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-family: var(--font-heading);
}

.severity-badge.critical {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.severity-badge.high {
    background: rgba(220, 38, 38, 0.05);
    color: var(--text-secondary);
    border-color: rgba(220, 38, 38, 0.3);
}

/* Threat Content */
.threat-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.threat-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: none;
}

.threat-meta {
    margin-bottom: 16px;
}

.cluster-info,
.source-info {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.threat-description {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Threat Stats */
.threat-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-item .icon {
    font-size: 14px;
    color: var(--text-muted);
}

.similarity {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-item.score {
    margin-left: auto;
}

/* Visual Score Indicator */
.score-visual {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-bar {
    width: 60px;
    height: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.score-fill {
    height: 100%;
    background: var(--accent-red);
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Score color variations */
.score-fill.critical {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

.score-fill.high {
    background: linear-gradient(90deg, #ea580c 0%, #f97316 100%);
}

.score-fill.medium {
    background: linear-gradient(90deg, #ca8a04 0%, #eab308 100%);
}

.score-fill.low {
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
}

.score-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 25px;
    text-align: right;
}

/* Threat Footer */
.threat-footer {
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.threat-entities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.entity-tag {
    padding: 4px 10px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.entity-tag:hover {
    border-color: var(--accent-red);
    color: var(--text-secondary);
}

.entity-tag-highlighted {
    background: rgba(220, 38, 38, 0.05);
    color: var(--text-secondary);
    border-color: rgba(220, 38, 38, 0.3);
    font-weight: 600;
}

.entity-tag-highlighted:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.more-link {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
}

.more-link:hover {
    color: var(--accent-red);
}

/* Trending Page Mobile Styles */
@media (max-width: 768px) {
    .trending-container {
        margin-top: 50px;
        padding: 10px;
    }
    
    .main-container {
        margin-top: 50px;
    }
    
    /* Filter Bar Mobile */
    .filter-bar {
        padding: 12px;
        margin-bottom: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-section {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-width: max-content;
    }
    
    .filter-group {
        flex-wrap: nowrap;
    }
    
    .filter-controls {
        justify-content: flex-end;
        flex-shrink: 0;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .feed-type-selector {
        flex-shrink: 0;
    }
    
    .feed-type-selector .filter-pill {
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }
    
    .feed-select {
        min-width: 120px;
        font-size: 12px;
        height: 36px;
    }
    
    /* Ensure all filter elements maintain same height on mobile */
    .filter-bar .filter-pill,
    .filter-bar .filter-button,
    .filter-bar .severity-toggle,
    .filter-bar .entity-filters-dropdown-btn {
        height: 36px;
        font-size: 12px;
    }
    
    .filter-divider {
        display: none;
    }
    
    /* Severity slider mobile */
    .severity-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .severity-slider {
        width: 150px;
    }
    
    .threat-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .threat-title {
        font-size: 16px;
    }
    
    .threat-stats {
        font-size: 11px;
        gap: 10px;
    }
    
    .stat-item.score {
        margin-left: 0;
    }
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile logo icon clickable */
@media (max-width: 992px) {
    .logo-icon {
        cursor: pointer;
        user-select: none;
    }
}

/* Cluster link styling */
.cluster-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.cluster-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Entity Pages Styling */
/* Search Section */
.search-section {
    margin-bottom: 24px;
}

.search-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 32px;
    text-align: center;
}

.search-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.search-title i {
    color: var(--accent-red);
    margin-right: 8px;
}

.search-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.search-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-primary);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-red);
    background: var(--bg-hover);
}

.search-button {
    padding: 12px 24px;
    background: var(--accent-red);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.search-button:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.search-active {
    margin-top: 16px;
    text-align: center;
}

.search-badge {
    background: var(--accent-red);
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    display: inline-block;
}

.search-clear {
    margin-left: 8px;
    color: var(--accent-red);
    text-decoration: none;
    font-size: 13px;
}

.search-clear:hover {
    opacity: 0.8;
}

.search-help {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Category Filter Buttons */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.category-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    cursor: pointer;
    white-space: nowrap;
}

.category-filter-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-red);
    transform: translateY(-1px);
}

.category-filter-btn.active {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.category-filter-btn i {
    font-size: 14px;
}

/* Entity Cards Grid */
.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* Entity Card */
.entity-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.entity-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-red);
    background: var(--bg-hover);
}

.entity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-red);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.entity-card:hover::before {
    opacity: 1;
}

.entity-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.entity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-red);
    color: white;
    font-size: 18px;
}

.entity-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.entity-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: var(--font-primary);
}

.entity-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.entity-meta i {
    font-size: 12px;
    color: var(--text-muted);
}

.entity-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    font-family: var(--font-primary);
}

/* Empty State for Entities */
.entity-grid .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-filter {
        gap: 6px;
        margin-bottom: 16px;
    }
    
    .category-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .category-filter-btn i {
        font-size: 12px;
    }
    
    .entity-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .entity-card {
        padding: 16px;
    }
    
    .entity-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .entity-title {
        font-size: 16px;
    }
    
    .entity-meta {
        font-size: 11px;
        gap: 12px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.pagination-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-primary);
}

/* Entity Detail Pages */
/* Entity Header */
.entity-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.entity-detail-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-red);
    color: white;
    font-size: 28px;
}

.entity-detail-info h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.entity-detail-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.entity-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entity-detail-meta i {
    color: var(--text-muted);
}

/* Overview Menu */
.overview-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.overview-menu-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: var(--font-primary);
}

.overview-menu-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-red);
    color: var(--text-primary);
}

.overview-menu-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* Content Sections */
.content-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header i {
    color: var(--accent-red);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-red);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* Timeline Section */
.timeline-section {
    background: var(--bg-secondary);
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.timeline-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.timeline-container {
    position: relative;
    height: 160px;
    margin: 0 -20px;
    padding: 20px 20px 50px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    display: flex;
    justify-content: center;
}

.timeline-container::-webkit-scrollbar {
    height: 6px;
}

.timeline-container::-webkit-scrollbar-track {
    background: transparent;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.timeline-wrapper {
    position: relative;
    height: 100%;
    padding: 0;
}

.timeline-track {
    position: absolute;
    top: 30px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--accent-red);
    opacity: 0.3;
}

.timeline-point-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
}

.timeline-point {
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-red);
    border: 3px solid var(--bg-secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    position: relative;
    z-index: 10;
}

.timeline-dot.primary {
    width: 20px;
    height: 20px;
    background: var(--accent-red);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

.timeline-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.1);
}

.timeline-date {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    font-family: var(--font-mono);
}

.timeline-label {
    display: block;
    font-size: 12px;
    line-height: 1.2;
}

.timeline-time {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
}

/* Timeline Tooltip */
#timeline-tooltip {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    z-index: 99999;
    transition: opacity 0.2s ease;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    max-width: 400px;
    min-width: 280px;
    color: #fff;
}

#timeline-tooltip.show {
    opacity: 1;
}

#timeline-tooltip h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

#timeline-tooltip .source {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

#timeline-tooltip .date {
    font-size: 12px;
    color: #666;
}

/* Article Timeline - Specific version for entity pages */
.article-timeline {
    margin-bottom: 24px;
}

.article-timeline .timeline-header {
    font-size: 16px;
    margin-bottom: 12px;
}

.article-timeline .timeline-track {
    background: linear-gradient(90deg, var(--border-color) 0%, var(--accent-red) 50%, var(--border-color) 100%);
    height: 3px;
    opacity: 0.3;
    border-radius: 3px;
}

.article-timeline .timeline-dot {
    width: 12px;
    height: 12px;
    border-width: 2px;
}

.article-timeline .timeline-dot.primary {
    width: 16px;
    height: 16px;
}

/* Right Sidebar Widgets */
.entity-stats {
    margin-top: 16px;
}

.entity-stats .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.entity-stats .stat-item:last-child {
    border-bottom: none;
}

.entity-stats .stat-label {
    color: var(--text-muted);
    font-size: 12px;
}

.entity-stats .stat-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.related-entities-list {
    margin-top: 12px;
}

.related-category {
    margin-bottom: 16px;
}

.related-category:last-child {
    margin-bottom: 0;
}

.related-category-title {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.related-entity-link {
    display: block;
    padding: 6px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.related-entity-link:hover {
    color: var(--accent-red);
}

/* AI Analysis Tabs */
.ai-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.ai-sub-tab {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.ai-sub-tab:hover {
    color: var(--text-primary);
}

.ai-sub-tab.active {
    color: var(--accent-red);
    border-bottom: 2px solid var(--accent-red);
}

/* Responsive */
@media (max-width: 768px) {
    .entity-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .entity-detail-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .entity-detail-info h1 {
        font-size: 28px;
    }
    
    .overview-menu {
        padding: 12px;
    }
    
    .overview-menu-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .content-section {
        padding: 16px;
    }
    
    .section-header {
        font-size: 18px;
    }
}

/* Additional Entity Detail Elements */
/* Back Button and Breadcrumb */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-red);
    color: var(--text-primary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent-red);
}

.breadcrumb i {
    font-size: 10px;
    color: var(--text-muted);
}

/* Hero Section */
.hero-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 24px;
}

.hero-content .entity-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.synonyms-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.synonym-badge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.entity-description {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.entity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--text-muted);
}

/* Follow Container */
.follow-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.follower-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* Carousel Section */
.carousel-section {
    margin-bottom: 32px;
}

.carousel-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.carousel-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.carousel-tab:hover {
    color: var(--text-primary);
}

.carousel-tab.active {
    color: var(--accent-red);
}

.carousel-tab.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-red);
}

.carousel-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    min-height: 400px;
}

.carousel-panel {
    display: none;
}

.carousel-panel.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Vertical Tabs Container */
.carousel-tabs-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    min-height: 400px;
}

.carousel-tabs-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.carousel-tab-vertical {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.carousel-tab-vertical:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.carousel-tab-vertical.active {
    background: var(--bg-tertiary);
    border-color: var(--accent-red);
    color: var(--text-primary);
}

.carousel-tab-vertical i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* Info Cards */
.info-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 16px;
    margin-bottom: 16px;
}

.info-value {
    color: var(--text-primary);
    font-size: 14px;
}

/* AI Content */
.ai-content {
    background: var(--bg-tertiary);
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-top: 16px;
}

.ai-text {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ai-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 16px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
}

.loading-spinner.large {
    font-size: 24px;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sites Grid (Ransomware) */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

.site-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: all 0.2s ease;
}

.site-card:hover {
    border-color: var(--accent-red);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.site-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.site-status {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.site-status.available {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.site-status.unavailable {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.site-url code {
    background: var(--bg-secondary);
    padding: 4px 8px;
    font-size: 12px;
    font-family: var(--font-mono);
    word-break: break-all;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: all 0.2s ease;
}

.post-card:hover {
    border-color: var(--accent-red);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.post-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    flex: 1;
}

.post-date {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.post-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 14px;
}

.post-actions {
    display: flex;
    gap: 16px;
}

.post-link,
.post-magnet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-red);
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s ease;
}

.post-link:hover,
.post-magnet:hover {
    opacity: 0.8;
}

/* Feature Badges */
.site-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.feature-badge {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-red);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
}

/* Error States */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.error-icon {
    font-size: 48px;
    color: #eab308;
    margin-bottom: 16px;
}

.error-state h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.error-state p {
    font-size: 14px;
}

/* Country Flags */
.country-flag {
    display: inline-block;
    width: 24px;
    height: 18px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
}

/* Blur Wrapper for Non-Pro */
.cluster-ai-blur-wrapper {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cluster-ai-blur-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    width: 100%;
}

.cluster-ai-upgrade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content .entity-title {
        font-size: 32px;
    }
    
    .carousel-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .carousel-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .carousel-tabs-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .carousel-tabs-vertical {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .carousel-tab-vertical span {
        display: none;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
    }
}

/* Cluster AI News Summary */
.cluster-ai-news-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
}

.cluster-ai-news-summary h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.cluster-ai-news-summary p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cluster-ai-news-summary p:last-child {
    margin-bottom: 0;
}

/* Related Articles Section */
.related-articles {
    margin-top: 32px;
}

.related-articles h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.related-articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.related-articles li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-articles a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
    transition: color 0.2s ease;
}

.related-articles a:hover {
    color: var(--accent-red);
}

.related-articles small {
    color: var(--text-muted);
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* Country Flags */
.country-flag {
    display: inline-block;
    width: 24px;
    height: 18px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    vertical-align: middle;
    margin-right: 8px;
}

/* Common country flags */
.country-flag.flag-cn,
.country-flag.flag-CN {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MDAgNjAwIj48cmVjdCBmaWxsPSIjZGUyOTEwIiB3aWR0aD0iOTAwIiBoZWlnaHQ9IjYwMCIvPjxnIGZpbGw9IiNmZmRlMDAiPjxwYXRoIGQ9Ik0zMDAgMjQwTDI1NiAyNjVsMTctNTJ6bS00MSAyNWw0NS0xNS0zOSAzMXptMjUtNDFsNyA0Ny00MC0yNXptMzMgMTlsLTMxIDM2IDktNDZ6bTkgMzNsLTQ2IDE0IDQxLTI2eiIvPjx1c2UgdHJhbnNmb3JtPSJtYXRyaXgoLjcgLS41IC41IC43IDQyMCAzNDApIiB4bGluazpocmVmPSIjcyIvPjx1c2UgdHJhbnNmb3JtPSJtYXRyaXgoLjcgLS41IC41IC43IDQyMCA0NDApIiB4bGluazpocmVmPSIjcyIvPjx1c2UgdHJhbnNmb3JtPSJtYXRyaXgoLjcgLS41IC41IC43IDMzMCA0NDApIiB4bGluazpocmVmPSIjcyIvPjwvZz48L3N2Zz4=');
}

.country-flag.flag-ru,
.country-flag.flag-RU {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MDAgNjAwIj48cmVjdCBmaWxsPSIjZmZmIiB3aWR0aD0iOTAwIiBoZWlnaHQ9IjYwMCIvPjxyZWN0IGZpbGw9IiMwMDM5YTYiIHk9IjIwMCIgd2lkdGg9IjkwMCIgaGVpZ2h0PSI0MDAiLz48cmVjdCBmaWxsPSIjZDUyYjFlIiB5PSI0MDAiIHdpZHRoPSI5MDAiIGhlaWdodD0iMjAwIi8+PC9zdmc+');
}

.country-flag.flag-us,
.country-flag.flag-US {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3NzQwIDQxMDAiPjxyZWN0IGZpbGw9IiNCMjIyMzQiIHdpZHRoPSI3NzQwIiBoZWlnaHQ9IjQxMDAiLz48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMCAzMTVoNzc0MHYzMTVIMHptMCA2MzBoNzc0MHYzMTVIMHptMCAxMjYwaDc3NDB2MzE1SDB6bTAgNjMwaDc3NDB2MzE1SDB6bTAgNjMwaDc3NDB2MzE1SDB6bTAgNjMwaDc3NDB2MzE1SDB6Ii8+PHJlY3QgZmlsbD0iIzNDM0I2RSIgd2lkdGg9IjI5NjQiIGhlaWdodD0iMjIwNSIvPjwvc3ZnPg==');
}

.country-flag.flag-ir,
.country-flag.flag-IR {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MzAgMzYwIj48cmVjdCBmaWxsPSIjMjM5ZjQwIiB3aWR0aD0iNjMwIiBoZWlnaHQ9IjM2MCIvPjxyZWN0IGZpbGw9IiNmZmYiIHk9IjEyMCIgd2lkdGg9IjYzMCIgaGVpZ2h0PSIxMjAiLz48cmVjdCBmaWxsPSIjZGEwMDAwIiB5PSIyNDAiIHdpZHRoPSI2MzAiIGhlaWdodD0iMTIwIi8+PC9zdmc+');
}

.country-flag.flag-kp,
.country-flag.flag-KP {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAwIDYwMCI+PHJlY3QgZmlsbD0iIzAyNGZhMiIgd2lkdGg9IjEyMDAiIGhlaWdodD0iNjAwIi8+PHJlY3QgZmlsbD0iI2ZmZiIgeT0iMTIwIiB3aWR0aD0iMTIwMCIgaGVpZ2h0PSI2MCIvPjxyZWN0IGZpbGw9IiNlZDFjMjciIHk9IjE4MCIgd2lkdGg9IjEyMDAiIGhlaWdodD0iMjQwIi8+PHJlY3QgZmlsbD0iI2ZmZiIgeT0iNDIwIiB3aWR0aD0iMTIwMCIgaGVpZ2h0PSI2MCIvPjwvc3ZnPg==');
}

/* Article Count Badges */
span[style*="background: rgba(220, 38, 38"] {
    background: rgba(220, 38, 38, 0.1) !important;
    color: var(--accent-red) !important;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Fix for timeline label */
.article-timeline-label {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Entity page specific container adjustments */
.entity-detail .container {
    max-width: 1400px;
    margin: 0 auto;
}
/* Follow Button and Feed Selector Styles */
/* Moved from follow.css */
.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.follow-btn:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--accent-red);
}

.follow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.follow-btn.not-following {
    background: var(--bg-card);
    color: var(--text-primary);
}

.follow-btn.not-following:hover:not(:disabled) {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.follow-btn.following {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.follow-btn.following:hover:not(:disabled) {
    background: #b91c1c;
    border-color: #b91c1c;
}

.follow-btn i {
    font-size: 1rem;
}

/* Follow container in entity header */
.follow-container {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.follower-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(1rem);
    transition: all var(--transition-base);
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-color: var(--accent-green);
}

.toast-success i {
    color: var(--accent-green);
}

.toast-error {
    border-color: var(--accent-red);
}

.toast-error i {
    color: var(--accent-red);
}

/* Feed Selector Modal */
.feed-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn var(--transition-fast);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.feed-selector-content {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: slideUp var(--transition-base);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-selector-content h3 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feed-selector-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feed-selector-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.feed-selector-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    transform: translateX(2px);
}

.feed-selector-item i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.feed-selector-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feed-selector-item p {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feed-selector-item small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.feed-selector-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .follow-container {
        width: 100%;
        margin-top: 1rem;
        margin-left: 0;
        justify-content: space-between;
    }
    
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .feed-selector-content {
        max-height: 80vh;
    }
}

/* Search Page Styles */
/* ================== */

.search-header {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-box {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 1rem 10rem 1rem 3rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-red);
    background: var(--bg-hover);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.search-button {
    position: absolute;
    right: 0.25rem;
    padding: 0.75rem 1.5rem;
    background-color: #b91c1c;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.search-button:hover {
    background-color: var(--accent-red);
    transform: translateY(-1px);
}

/* Search Filters */
.search-filters {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-checkbox {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    font-size: 13px;
}

.filter-checkbox:hover {
    border-color: var(--accent-red);
    background: var(--bg-hover);
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.375rem;
    cursor: pointer;
}

.filter-checkbox.active {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

.filter-checkbox.active input[type="checkbox"] {
    filter: brightness(0) invert(1);
}

/* Results Summary */
.results-summary {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.results-count strong {
    color: var(--text-primary);
}

.clear-filters {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s ease-in-out;
}

.clear-filters:hover {
    color: #b91c1c;
}

/* Results Sections */
.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .results-container {
        grid-template-columns: 1fr;
    }
}

.result-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.result-section:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    font-size: 1.125rem;
    color: var(--accent-red);
}

.section-count {
    background: rgba(220, 38, 38, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 12px;
    color: var(--accent-red);
    font-weight: 600;
}


/* Result Items */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
}

.no-results-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 3rem 1rem;
    text-align: center;
}

.result-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    color: inherit;
    display: block;
}

.result-item:hover {
    border-color: var(--accent-red);
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.result-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 12px;
    color: var(--text-muted);
}

.result-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.result-meta-item i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Entity Result Specific */
.entity-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.entity-info {
    flex: 1;
}

.entity-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.entity-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(220, 38, 38, 0.05);
    color: var(--accent-red);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.entity-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.entity-stat {
    text-align: center;
}

.entity-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.entity-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CVE Result Specific */
.cve-severity {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.cve-severity.critical {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

.cve-severity.high {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.cve-severity.medium {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.cve-severity.low {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 3rem auto;
    max-width: 600px;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.empty-description {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-light);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.no-results-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.no-results-description {
    color: var(--text-secondary);
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 4rem;
}

.loading-spinner {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Additional Fixes */
.alert.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-red);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* CVE List Page Styles */
.cve-list-page {
    padding: 1.5rem 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

.cve-list-page .page-header {
    margin-bottom: 2rem;
}

.cve-list-page .page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.cve-list-page .page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* CVE Section containers */
.cve-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .cve-grid {
        grid-template-columns: 1fr;
    }
}

.cve-list-page .section-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cve-list-page .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cve-list-page .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cve-list-page .section-title i {
    color: var(--accent-red);
    opacity: 0.8;
}

.cve-list-page .section-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* CVE cards */
.cve-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cve-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.full-width {
    grid-column: 1 / -1;
}

.mt-2 {
    margin-top: 2rem;
}

.cve-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.cve-card:hover {
    border-color: var(--accent-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.cve-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}


.cve-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.severity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.severity-badge i {
    font-size: 0.75rem;
}

.severity-CRITICAL {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.severity-HIGH {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.severity-MEDIUM {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.severity-LOW {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.severity-NONE {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cvss-score {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cvss-value {
    font-weight: 600;
}

.cve-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cve-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.813rem;
    color: var(--text-secondary);
}

.cve-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cve-date i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.cve-list-page .article-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-weight: 500;
}

.cve-list-page .article-count i {
    font-size: 0.75rem;
}

/* CVE Loading states */
.cve-list-page .loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.cve-list-page .loading-spinner {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

/* CVE Empty states */
.cve-list-page .empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.cve-list-page .empty-state i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state-hint {
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    display: block;
}

/* CVE View all link */
.cve-list-page .view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-red);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.cve-list-page .view-all-link:hover {
    text-decoration: underline;
}


/* CVE Search form */
.cve-list-page .search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
}

.cve-list-page .search-box {
    position: relative;
    max-width: 100%;
}

.cve-list-page .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cve-list-page .search-input {
    width: 100%;
    padding: 0.75rem 9rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.cve-list-page .search-button {
    position: absolute;
    right: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.cve-search-error {
    color: var(--accent-red);
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: none;
}

/* Entity pages search input fix */
.entity-list-page .search-box {
    position: relative;
    max-width: 100%;
}

.entity-list-page .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.entity-list-page .search-input {
    width: 100%;
    padding: 0.75rem 9rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.entity-list-page .search-button {
    position: absolute;
    right: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.entity-list-page .search-button:hover {
    opacity: 0.9;
}

/* Sightings count badge */
.sightings-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.sightings-badge i {
    color: var(--accent-red);
    font-size: 0.875rem;
}

/* CVE Detail Page Styles */
.no-score-placeholder {
    text-align: center;
    padding: 1.5rem 0;
}

.no-score-placeholder i {
    font-size: 2.5rem;
    color: var(--text-tertiary);
    opacity: 0.3;
}

.no-score-placeholder p {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.cve-detail-page {
    padding: 1.5rem 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.cve-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-secondary-2) 100%);
    border-radius: var(16px);
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.cve-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
}

.cve-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}


.cve-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Risk Assessment Grid */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.risk-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(12px);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.risk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.risk-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.risk-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.risk-icon {
    width: 40px;
    height: 40px;
    border-radius: var(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.risk-icon.cvss {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.risk-icon.epss {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Enhanced Gauge */
.gauge-display {
    text-align: center;
}

.gauge-container {
    position: relative;
    width: 140px;
    height: 80px;
    margin: 0 auto 1rem;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-background {
    fill: none;
    stroke: var(--bg-secondary-3);
    stroke-width: 12;
    opacity: 0.5;
}

.gauge-fill {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-fill.critical {
    stroke: #dc2626;
    filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.4));
}

.gauge-fill.high {
    stroke: #f59e0b;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.gauge-fill.medium {
    stroke: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.gauge-fill.low {
    stroke: #10b981;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.gauge-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.gauge-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* EPSS Display */
.epss-display {
    text-align: center;
}

.epss-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.epss-percentile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(999px);
    font-size: 0.875rem;
    font-weight: 600;
    color: #f59e0b;
}

/* Metadata Bar */
.metadata-bar {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-icon {
    width: 36px;
    height: 36px;
    border-radius: var(8px);
    background: var(--bg-secondary-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
}

.meta-content {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.severity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(999px);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.severity-badge i {
    font-size: 0.875rem;
}

.severity-CRITICAL {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.severity-HIGH {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.severity-MEDIUM {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.severity-LOW {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Description Section */
.description-section {
    background: var(--bg-secondary);
    border-radius: var(12px);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.description-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.description-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.description-header i {
    color: var(--accent-red);
    opacity: 0.7;
}

.cve-description {
    line-height: 1.75;
    font-size: 1rem;
    color: var(--text-primary);
}

.cvss-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cvss-vector {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-secondary-2);
    padding: 0.75rem 1rem;
    border-radius: var(8px);
    margin-top: 0.5rem;
    word-break: break-all;
}

/* Content Sections */
.info-section {
    background: var(--bg-secondary);
    border-radius: var(12px);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--accent-red);
    opacity: 0.7;
    font-size: 1rem;
}

.affected-products {
    display: grid;
    gap: 1rem;
}

.product-item {
    background: var(--bg-secondary-2);
    padding: 1.25rem;
    border-radius: var(8px);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.product-item:hover {
    border-color: var(--accent-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-header {
    margin-bottom: 0.75rem;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.vendor-name {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.versions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.version-tag {
    background: var(--bg-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: var(4px);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.references-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reference-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary-2);
    border-radius: var(8px);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.reference-item:hover {
    background: var(--bg-secondary-3);
    border-color: var(--accent-red);
}

.reference-tags {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.reference-tag {
    background: var(--accent-red-bg);
    color: var(--accent-red);
    padding: 0.125rem 0.5rem;
    border-radius: var(4px);
    font-size: 0.75rem;
}

.articles-section {
    margin-top: 2rem;
}

.article-list {
    display: grid;
    gap: 1rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    border-color: var(--border-color);
    transform: none;
}

.article-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.813rem;
    color: var(--text-secondary);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.article-meta i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.cvss-details {
    background: var(--bg-secondary-2);
    padding: 1rem;
    border-radius: var(8px);
    margin-top: 1rem;
}

.cvss-vector {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    word-break: break-all;
}

/* Sightings styles */
.sightings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sighting-item {
    background: var(--bg-secondary-2);
    padding: 1rem;
    border-radius: var(8px);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.sighting-item:hover {
    border-color: var(--accent-red);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sighting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.sighting-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: var(4px);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sighting-date {
    font-size: 0.813rem;
    color: var(--text-secondary);
}

.sighting-source {
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
}

.sighting-source a {
    color: var(--accent-red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.sighting-source a:hover {
    text-decoration: underline;
}

.misp-source {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.813rem;
}

.sighting-author {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.error-message {
    background: var(--danger-color-bg);
    color: var(--danger-color);
    padding: 1rem;
    border-radius: var(8px);
    margin-bottom: 1rem;
}

/* Timeline Styles */
.timeline-section {
    background: var(--bg-secondary);
    border-radius: var(12px);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(0 1px 3px rgba(0, 0, 0, 0.1));
    border: 1px solid var(--border-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.timeline-header .section-title {
    margin-bottom: 0;
}

.timeline-controls {
    display: flex;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
}

.toggle-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-container {
    position: relative;
    height: 80px;
    margin: 2rem 0 3rem 0;
    padding: 2rem 3rem;
}

.timeline-track {
    position: absolute;
    top: 40px;
    left: 3rem;
    right: 3rem;
    height: 2px;
    background: var(--accent-red);
    opacity: 0.3;
}

.timeline-point {
    position: absolute;
    top: 40px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 1;
    transition: left 0.3s ease, opacity 0.3s ease;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-red);
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 2px var(--accent-red);
}

/* CVE event gets a different style */
.timeline-point.cve-event .timeline-dot {
    width: 16px;
    height: 16px;
    background: #dc2626;
    box-shadow: 0 0 0 2px #dc2626, 0 0 12px rgba(220, 38, 38, 0.4);
}

.timeline-point.epss-event .timeline-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #f59e0b;
}

.timeline-point.sighting-event .timeline-dot {
    background: #3b82f6;
    box-shadow: 0 0 0 2px #3b82f6;
}

.timeline-point:hover .timeline-dot {
    transform: scale(1.3);
    filter: brightness(1.2);
}

.timeline-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary-3);
    border: 1px solid var(--border-color);
    border-radius: var(8px);
    font-size: 0.75rem;
    white-space: normal;
    min-width: 180px;
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    text-align: center;
}

.timeline-point:hover .timeline-tooltip {
    opacity: 1;
    visibility: visible;
}

.timeline-tooltip strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-tooltip small {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.event-label {
    margin-top: 0.5rem;
    padding: 2px 8px;
    background: var(--accent-red);
    color: white;
    border-radius: var(4px);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.event-label.danger {
    background: #dc2626;
}

.event-label.warning {
    background: #f59e0b;
}

.event-label.info {
    background: #3b82f6;
}

.timeline-date {
    position: absolute;
    top: 55px;
    left: 0;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.timeline-time {
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2, 0.5rem);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: var(--font-weight-medium, 500);
    padding: var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem);
    margin-bottom: var(--spacing-4, 1rem);
    border-radius: var(8px, 0.5rem);
    transition: all var(--transition-fast, 0.2s ease);
}

.back-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary-3, rgba(0, 0, 0, 0.05));
}

.back-btn i {
    font-size: 14px;
}


/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb i {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

/* =============================================================================
   Saved Page Styles
   ============================================================================= */

.content-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.filter-tabs-container {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.folder-selector .form-select {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.saved-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-sm {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.unsave-btn {
    color: var(--accent-red);
    border-color: rgba(220, 38, 38, 0.3);
}

.unsave-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.5);
    color: var(--accent-red);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.folders-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.folder-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.folder-item.active {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-red);
}

.folder-item span:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.folder-item .count {
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 12px;
}

.folder-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.folder-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Folder Management Modal */
.folder-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.folder-modal-content {
    position: relative;
    background: var(--bg-primary);
    margin: 50px auto;
    padding: 2rem;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.folder-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.folder-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.folder-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.folder-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.folder-form {
    margin-bottom: 1.5rem;
}

.folder-form-group {
    margin-bottom: 1rem;
}

.folder-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.folder-form input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.folder-form input:focus {
    outline: none;
    border-color: var(--accent-red);
}

.folder-list-modal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.folder-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.folder-list-item:hover {
    border-color: var(--border-light);
}

.folder-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.folder-actions-modal {
    display: flex;
    gap: 0.5rem;
}

.btn-danger {
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--accent-red);
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.5);
}

/* Override Bootstrap primary button for red theme */
.btn-primary {
    background: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: white !important;
}

.btn-primary:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

.btn-primary:focus,
.btn-primary:active {
    background: #991b1b !important;
    border-color: #991b1b !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25) !important;
}

/* Folder Item Modal Styles */
.folder-item-modal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.folder-item-modal:hover {
    border-color: var(--border-light);
}

.folder-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.folder-actions-modal .btn-icon-sm {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.folder-actions-modal .btn-icon-sm:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.folder-actions-modal .delete-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-red);
}
