/* ─── Ransomware-specific typography ─────────────────────── */

.chart-title {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.heading.bold {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    color: #1a1a2e;
}

.section-heading {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--black-3);
}

.coordinates {
    font-family: 'Rajdhani', monospace;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #8a8fa3;
}

.time-container .label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8a8fa3;
}

.time-container .value {
    font-family: 'DS-Digital', monospace;
    font-size: 50px;
}


/* ─── Layout ─────────────────────────────────────────────── */

.globe-container {
    display: flex;
    overflow: hidden;
}


.globe-info {
    font-size: 16px;
    font-weight: 500;
    padding: 24px;
    width: 100%;
    max-width: 320px;
    background: var(--bg);
    border-radius: 24px;
    border: 2px solid lightgrey;
}

.section-heading {
    color: var(--black-2);
    padding: 10px 0px 30px 0px;
}


.coordinates {
    font-size: 16px;
    padding: 10px 0px;
    color: var(--black-3);
}


.time-container {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.time-container .label {
    font-size: 16px;
    color: var(--black-3);
    margin-bottom: 8px;
}

.time-container .value {
    font-size: 32px;
    color: var(--pink);
    font-weight: bold;
    margin-bottom: 8px;
}

.tips {
    font-size: 14px;
    font-weight: 500;
    color: var(--black-3);
}

#globe-canvas {
    position: relative;
    align-items: center;
    min-width: 550px;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    max-height: 650px;
    width: 100%;
}


#globe-svg {
    cursor: grab;
    height: 100%;
    width: 100%;
}

#globe-svg:active {
    cursor: grabbing;
}

.search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 15px;
    border-radius: 15px;
    border: 2px solid var(--pink);
    background: white;
}

.suggestions-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0 0;
    padding: 0;
    list-style: none;
    background: white;
    border: 2px solid lightgray;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.suggestions-list li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.suggestions-list li:first-child {
    border-radius: 12px 12px 0 0;
}

.suggestions-list li:last-child {
    border-radius: 0 0 12px 12px;
}

.suggestions-list li:hover,
.suggestions-list li.active {
    background: var(--pink-light);
    color: var(--pink);
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.btn-content {
    display: flex;
}

.search-btn {
    cursor: pointer;
    border-radius: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    border: none;
    background: none;
}

#tooltip {
    position: absolute;
    background: white;
    color: black;
    padding: 15px 15px;
    border-radius: 15px;
    pointer-events: none;
    display: none;
    font-size: 16px;
    font-weight: 500;
    z-index: 999;
    border: 2px solid var(--pink);
}


/* ─── Country ranking toggle + overlay ──────────────────── */

.ranking-toggle-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--black-2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ranking-toggle-btn:hover {
    background: rgba(255,255,255,0.95);
    border-color: var(--pink);
    color: var(--pink);
}

.ranking-toggle-btn.active {
    background: var(--pink);
    border-color: var(--pink);
    color: white;
}

.ranking-chevron {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.ranking-toggle-btn.active .ranking-chevron {
    transform: rotate(180deg);
}

.ranking-overlay {
    position: absolute;
    top: 46px;
    right: 12px;
    width: 300px;
    max-height: 460px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    border: 1.5px solid #e8e8e8;
    z-index: 10;
    padding: 8px 16px 12px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.ranking-overlay.open {
    display: block;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.ranking-table th {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8a8fa3;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid #e8e8e8;
}

.ranking-table th:first-child {
    width: 40px;
    text-align: center;
}

.ranking-table th:last-child {
    text-align: right;
}

.ranking-table td {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ranking-table td:first-child {
    text-align: center;
    color: #8a8fa3;
    font-weight: 700;
}

.ranking-table td:last-child {
    text-align: right;
    color: var(--pink);
    font-weight: 700;
}

.ranking-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
}

.ranking-table tbody tr:hover {
    background: var(--pink-light, #fff0f3);
}


/* ─── Attacker statistics charts ─────────────────────────── */

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.chart-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    min-height: 260px;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.chart-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 61, 107, 0.2);
    box-shadow: 0 8px 24px rgba(245, 61, 107, 0.08);
}

.chart-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.chart-container {
    width: 100%;
}

.chart-container svg {
    width: 100%;
    display: block;
}

.chart-container .bar-label {
    font-size: 13px;
    fill: var(--black-2);
    font-weight: 600;
}

.chart-container .bar-value {
    font-size: 14px;
    fill: white;
    font-weight: 700;
}

.chart-container .bar-value-outside {
    font-size: 14px;
    fill: var(--black-3);
    font-weight: 700;
}

.chart-container .no-data {
    font-size: 16px;
    fill: var(--black-3);
    font-weight: 500;
    text-anchor: middle;
}


/* ─── Sector distribution chart ─────────────────────────── */

.sector-chart-wrapper {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    background: white;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid #e8e8e8;
}

.sector-chart-wrapper .chart-container {
    width: 100%;
}


/* ─── View toggle ────────────────────────────────────── */

.view-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    background: #f0f0f0;
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.view-toggle-btn {
    border: none;
    background: transparent;
    padding: 8px 20px;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8a8fa3;
    cursor: pointer;
    transition: all 0.25s ease;
}

.view-toggle-btn.active {
    background: white;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-toggle-btn:hover:not(.active) {
    color: #1a1a2e;
}


/* ─── CTA banner ─────────────────────────────────────────── */

.cta-banner {
    text-align: center;
    padding: 40px 24px;
    margin-top: 24px;
}

.cta-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--black-3);
    margin-bottom: 16px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--pink);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background: #e0345f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 61, 107, 0.3);
}


/* ─── Interactive legend ───────────────────────────────── */
