:root {
    --bg-primary: #050c1b;
    --bg-card: #111c2d;
    --bg-card-alt: #182338;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
}
.threat-actor-dashboard {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 14px;
    color-scheme: dark;
    padding: 32px;
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-primary);
}
@media (max-width: 768px) {
    .threat-actor-dashboard {
        padding: 24px;
    }
}
.threat-actor-dashboard h1 {
    text-align: center;
    margin-bottom: 32px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffffff;
}
.threat-actor-dashboard h1,
.threat-actor-dashboard h2,
.threat-actor-dashboard h3,
.threat-actor-dashboard h4,
.threat-actor-dashboard h5,
.threat-actor-dashboard h6 {
    color: #ffffff;
}
.threat-actor-dashboard .charts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
@media (max-width: 1200px) {
    .threat-actor-dashboard .charts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .threat-actor-dashboard .charts-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
.threat-actor-dashboard .chart-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-alt));
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
}
.threat-actor-dashboard .chart-card h3 {
    margin-top: 0;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.threat-actor-dashboard .chart-card img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #00000025;
    border-radius: 12px;
    cursor: zoom-in;
}
.threat-actor-dashboard .table-wrapper {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid rgba(148, 163, 184, 0.08);
}
.threat-actor-dashboard #actors-table {
    width: 100%;
    margin-top: 16px;
    table-layout: fixed;
}
.threat-actor-dashboard #actors-table thead th {
    background: transparent;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.72rem;
}
.threat-actor-dashboard #actors-table tbody td {
    color: var(--text-primary);
    font-size: 0.72rem;
}
.threat-actor-dashboard #actors-table th,
.threat-actor-dashboard #actors-table td {
    text-align: left;
    padding: 8px 10px;
    white-space: normal;
    word-break: break-word;
}
.threat-actor-dashboard #actors-table thead th:first-child,
.threat-actor-dashboard #actors-table tbody td:first-child {
    text-align: center;
}
.threat-actor-dashboard #actors-table tbody tr {
    background: transparent;
}
.threat-actor-dashboard table.dataTable.display tbody tr:hover {
    background-color: rgba(148, 163, 184, 0.05);
}
.threat-actor-dashboard .actor-link {
    background: var(--accent);
    color: #021524;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.threat-actor-dashboard .actor-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}
.threat-actor-dashboard .dataTables_wrapper .dataTables_length label,
.threat-actor-dashboard .dataTables_wrapper .dataTables_filter label,
.threat-actor-dashboard .dataTables_wrapper .dataTables_info,
.threat-actor-dashboard .dataTables_wrapper .dataTables_paginate {
    color: var(--text-secondary);
}
.threat-actor-dashboard .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-secondary) !important;
}
.threat-actor-dashboard #actors-table thead tr.filters-row th {
    border-bottom: none;
    padding: 8px 10px;
}
.threat-actor-dashboard .column-filter {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0.04));
    color: var(--text-primary);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    padding: 6px 34px 6px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}
.threat-actor-dashboard .column-filter:focus,
.threat-actor-dashboard .column-filter:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
    outline: none;
    transform: translateY(-1px);
}
.threat-actor-dashboard .column-filter option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}
.threat-actor-dashboard .modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 100;
}
.threat-actor-dashboard .modal.show {
    display: flex;
}
.threat-actor-dashboard .modal-card {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
}
.threat-actor-dashboard .modal-card p {
    color: #ffffff;
}
.threat-actor-dashboard .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.threat-actor-dashboard .modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}
.threat-actor-dashboard .detail-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.threat-actor-dashboard .detail-section h4 {
    margin-bottom: 8px;
    color: var(--accent);
}
.threat-actor-dashboard .detail-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.threat-actor-dashboard .detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(148, 163, 184, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}
.threat-actor-dashboard .detail-label {
    min-width: 180px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.threat-actor-dashboard .detail-value {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}
.threat-actor-dashboard pre {
    background: #00000040;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
}
.threat-actor-dashboard .image-modal {
    align-items: center;
    justify-content: center;
}
.threat-actor-dashboard .image-modal .modal-card {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 90vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.threat-actor-dashboard .image-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(5,12,27,0.7);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.threat-actor-dashboard .image-modal img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.65);
    object-fit: contain;
}
.threat-actor-dashboard .clamped-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    max-height: calc(1.35em * 5);
}
.threat-actor-dashboard .read-more {
    display: none;
    margin-top: 4px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.threat-actor-dashboard .clamped-wrapper {
    display: flex;
    flex-direction: column;
}
