/* Cybersecurity Threat Intelligence Dashboard v2 Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-danger: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    padding-top: 4rem;
}

/* Navigation */
.navbar {
    background: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Dashboard Branding */
.dashboard-branding {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
}

.dashboard-logo {
    font-family: 'Orbitron', 'Courier New', monospace !important;
    font-weight: 900 !important;
    font-size: 1.8rem !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    background: linear-gradient(45deg, #ffffff, #ffd700, #ffffff) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
    display: inline-block !important;
    position: relative !important;
    font-style: normal !important;
}

.dashboard-logo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.dashboard-branding .alert-heading {
    color: white;
    font-weight: 600;
}

.dashboard-branding .badge {
    background: #ff6b6b !important;
    color: white !important;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid white;
    animation: pulse 2s ease-in-out infinite;
}

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

.dashboard-branding .alert-link {
    color: #ffd700 !important;
    text-decoration: none;
}

.dashboard-branding .alert-link:hover {
    text-decoration: underline;
}

/* Main Container */
.main-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin: 20px;
    padding: 30px;
    min-height: calc(100vh - 120px);
}

/* Loading State */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Tabs */
.nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 12px 20px;
    margin: 0 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: var(--light-color);
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
}

.card-body {
    padding: 20px;
}

/* Executive Summary */
.executive-summary {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.executive-summary h3 {
    color: white;
    margin-bottom: 20px;
}

.executive-summary-content {
    line-height: 1.6;
}

.executive-summary-content h1,
.executive-summary-content h2,
.executive-summary-content h3 {
    color: white;
    margin-top: 20px;
    margin-bottom: 15px;
}

.executive-summary-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 8px;
}

.executive-summary-content p {
    margin-bottom: 15px;
}

.executive-summary-content ul,
.executive-summary-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Responsive tables in executive summary */
.executive-summary-content .table-responsive {
    margin: 20px 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    position: relative;
}

/* Only add overflow and scroll indicators on smaller screens */
@media (max-width: 768px) {
    .executive-summary-content .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .executive-summary-content .table-responsive.scrollable::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2));
        pointer-events: none;
        z-index: 1;
    }
}

.executive-summary-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.executive-summary-content th,
.executive-summary-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    word-wrap: break-word;
    max-width: 300px;
}

/* Make first column (usually the name/title) take more space */
.executive-summary-content th:first-child,
.executive-summary-content td:first-child {
    min-width: 150px;
    width: 30%;
}

/* Make other columns distribute remaining space */
.executive-summary-content th:not(:first-child),
.executive-summary-content td:not(:first-child) {
    width: auto;
    min-width: 100px;
}

/* On mobile, allow text wrapping and reduce padding */
@media (max-width: 768px) {
    .executive-summary-content table {
        min-width: 500px;
    }
    
    .executive-summary-content th,
    .executive-summary-content td {
        padding: 8px 10px;
        white-space: normal;
        word-wrap: break-word;
        max-width: none;
    }
    
    /* Reset column widths on mobile for better text wrapping */
    .executive-summary-content th:first-child,
    .executive-summary-content td:first-child,
    .executive-summary-content th:not(:first-child),
    .executive-summary-content td:not(:first-child) {
        width: auto;
        min-width: 80px;
    }
}

.executive-summary-content th {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.executive-summary-content tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.executive-summary-content tr:last-child td {
    border-bottom: none;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stats-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tables */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

/* Ensure executive summary tables override general table styles */
.executive-summary-content .table {
    background: rgba(255, 255, 255, 0.1);
}

.table thead {
    background: var(--gradient-primary);
    color: white;
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 500;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
}

/* Severity Colors */
.severity-critical { color: var(--danger-color); }
.severity-high { color: var(--warning-color); }
.severity-medium { color: var(--info-color); }
.severity-low { color: var(--success-color); }

.cvss-critical { background-color: var(--danger-color); }
.cvss-high { background-color: var(--warning-color); }
.cvss-medium { background-color: var(--info-color); }
.cvss-low { background-color: var(--success-color); }

/* Search and Filters */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    border-radius: 25px;
    padding-left: 45px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tag {
    background: var(--light-color);
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Charts */
.charts-container {
    margin: 20px 0;
}

.charts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.charts-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
}

.chart-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.chart-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

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

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.chart-header h4 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.chart-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.chart-container {
    position: relative;
    height: 300px;
    padding: 20px;
}

.chart-full-width .chart-container {
    height: 400px;
}

.btn-refresh {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-refresh:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

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

.btn-retry {
    background: var(--warning-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn-retry:hover {
    background: #e0a800;
}

.loading, .error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.error {
    color: var(--danger-color);
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        margin: 10px;
        padding: 20px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    /* Responsive tables for executive summary */
    .executive-summary-content table {
        font-size: 0.8rem;
    }
    
    .executive-summary {
        padding: 20px 15px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .executive-summary-content table {
        font-size: 0.75rem;
    }
    
    .executive-summary-content th,
    .executive-summary-content td {
        padding: 6px 8px;
    }
    
    .executive-summary {
        padding: 15px 10px;
    }
}

/* Animations */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s;
}

.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

.slide-enter-active, .slide-leave-active {
    transition: all 0.3s ease;
}

.slide-enter-from {
    transform: translateX(-100%);
}

.slide-leave-to {
    transform: translateX(100%);
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Incidents Table Component */
.incidents-container {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
}

.incident-list {
    padding: 0;
}

.incident-item {
    border: 3px solid #007bff !important;
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    position: relative;
    overflow: hidden;
}

.incident-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #007bff, #0056b3, #007bff);
}

.incident-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #007bff, #0056b3, #007bff);
}

.incident-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3) !important;
    border-color: #0056b3 !important;
}

.incident-item:last-child {
    margin-bottom: 0 !important;
}

.incident-summary {
    padding: 1.5rem;
    cursor: pointer;
    margin: 0;
}

.incident-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.incident-title-section {
    flex: 1;
}

.incident-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.incident-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.incident-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expand-icon {
    transition: transform 0.2s ease;
    font-size: 1.2rem;
    color: #6c757d;
}

.expand-icon.expanded {
    transform: rotate(180deg);
}

.incident-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin-top: 0.75rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.incident-preview strong {
    color: #495057;
    font-size: 0.85rem;
}

.incident-details {
    border-top: 2px solid #e9ecef;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    margin: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.incident-details-content {
    padding: 1.5rem;
}

.incident-details h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Vulnerabilities Table Component */
.vulnerabilities-container {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
}

.vulnerability-list {
    padding: 0;
}

.vulnerability-item {
    border: 3px solid #dc3545 !important;
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    position: relative;
    overflow: hidden;
}

.vulnerability-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #dc3545, #a02533, #dc3545);
}

.vulnerability-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #dc3545, #a02533, #dc3545);
}

.vulnerability-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3) !important;
    border-color: #a02533 !important;
}

.vulnerability-item:last-child {
    margin-bottom: 0 !important;
}

.vulnerability-summary {
    padding: 1.5rem;
    cursor: pointer;
    margin: 0;
}

.vulnerability-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.vulnerability-title-section {
    flex: 1;
}

.vulnerability-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.vulnerability-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.vulnerability-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vulnerability-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin-top: 0.75rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.vulnerability-preview strong {
    color: #495057;
    font-size: 0.85rem;
}

.vulnerability-details {
    border-top: 2px solid #e9ecef;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    margin: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.vulnerability-details-content {
    padding: 1.5rem;
}

.vulnerability-details h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.cvss-vector-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.cvss-vector-display code {
    background: transparent;
    color: #495057;
    font-weight: 500;
}

/* Table Controls */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-container {
    min-width: 250px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-controls .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.spin-icon {
    animation: spin 1s linear infinite;
}

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

.incident-details ul {
    margin-bottom: 1rem;
}

.incident-details li {
    padding: 0.25rem 0;
    line-height: 1.4;
}

.severity-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.table-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    min-width: 250px;
}

.search-container .input-group {
    max-width: 400px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.spin-icon {
    animation: spin 1s linear infinite;
}

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

/* Threat Actors Table Component */
.threat-actors-container {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
}

.threat-actor-list {
    padding: 0;
}

.threat-actor-item {
    border: 3px solid #6f42c1 !important;
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    position: relative;
    overflow: hidden;
}

.threat-actor-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #6f42c1, #563d7c, #6f42c1);
}

.threat-actor-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #6f42c1, #563d7c, #6f42c1);
}

.threat-actor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3) !important;
    border-color: #563d7c !important;
}

.threat-actor-item:last-child {
    margin-bottom: 0 !important;
}

.threat-actor-summary {
    padding: 1.5rem;
    cursor: pointer;
    margin: 0;
}

.threat-actor-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.threat-actor-title-section {
    flex: 1;
}

.threat-actor-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.threat-actor-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.threat-actor-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.threat-actor-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #6f42c1;
    margin-top: 0.75rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.threat-actor-preview strong {
    color: #495057;
    font-size: 0.85rem;
}

.threat-actor-details {
    border-top: 2px solid #e9ecef;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    margin: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.threat-actor-details-content {
    padding: 1.5rem;
}

.threat-actor-details h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.risk-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.threat-actor-details ul {
    margin-bottom: 1rem;
}

.threat-actor-details li {
    padding: 0.25rem 0;
    line-height: 1.4;
}

/* Analytics Dashboard Styles */
.analytics-section {
    margin-bottom: 3rem;
}

.section-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
}

.analytics-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.analytics-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
}

.analytics-card .card-header h6 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
}

.analytics-card .card-body {
    padding: 1.5rem;
}

/* Risk Gauge Styles */
.risk-gauge-card {
    text-align: center;
}

.risk-gauge {
    margin: 1rem 0;
    height: 80px;
    position: relative;
}

.gauge-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-background {
    position: absolute;
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.gauge-fill {
    position: absolute;
    height: 20px;
    background: var(--warning-color);
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: width 0.5s ease;
    left: 0;
}

.gauge-label {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.risk-label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Summary Cards */
.summary-card .summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.5rem 0;
}

.summary-card .card-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Risk Factors and Recommendations */
.risk-factors, .recommendations {
    padding: 0;
}

.risk-factor-item, .recommendation-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9rem;
    line-height: 1.4;
}

.risk-factor-item:last-child, .recommendation-item:last-child {
    border-bottom: none;
}

.risk-factor-item i, .recommendation-item i {
    flex-shrink: 0;
    font-size: 1rem;
}

/* Chart Container Overrides */
.analytics-card .chart-container {
    height: 250px;
    padding: 1rem;
}

.analytics-card .card-body {
    position: relative;
}

/* Responsive adjustments for analytics */
@media (max-width: 768px) {
    .analytics-section {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .analytics-card .card-body {
        padding: 1rem;
    }
    
    .analytics-card .chart-container {
        height: 200px;
        padding: 0.5rem;
    }
    
    .summary-number {
        font-size: 2rem !important;
    }
    
    .risk-gauge {
        height: 60px;
    }
    
    .gauge-background, .gauge-fill {
        height: 15px;
    }
    
    .incident-main {
        flex-direction: column;
        gap: 1rem;
    }
    
    .incident-badges {
        width: 100%;
        justify-content: flex-end;
    }
    
    .incident-preview .row {
        gap: 1rem;
    }
    
    .threat-actor-main {
        flex-direction: column;
        gap: 1rem;
    }
    
    .threat-actor-badges {
        width: 100%;
        justify-content: flex-end;
    }
    
    .threat-actor-preview .row {
        gap: 1rem;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-container .input-group {
        max-width: none;
    }
}