/* ========== CYBERMAP PAGE ========== */
.cybermap-page {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: #050a18;
    position: relative;
    overflow: hidden;
}

.cybermap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0.5rem;
}

.header-left, .header-right {
    min-width: 150px;
}

.header-right {
    text-align: left;
}

.brand-access {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0,212,255,0.5);
    letter-spacing: 2px;
}

.cybermap-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    text-align: center;
}

.cybermap-header h1 span {
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0,212,255,0.5);
}

.view-toggle {
    background: rgba(0,212,255,0.15);
    border: 1px solid rgba(0,212,255,0.4);
    color: #00d4ff;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-toggle:hover {
    background: rgba(0,212,255,0.3);
    box-shadow: 0 0 15px rgba(0,212,255,0.3);
}

/* ========== MAIN CONTAINER ========== */
.cybermap-container {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 0;
    height: calc(100vh - 220px);
    padding: 0 1rem;
    max-height: 500px;
}

/* ========== STATS PANEL ========== */
.stats-panel {
    background: rgba(10,20,40,0.9);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 10;
}

.panel-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,212,255,0.2);
}

.panel-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.panel-header h2 {
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 2px;
}

.panel-subtitle {
    font-size: 0.75rem;
    color: #ff4444;
    margin-top: 0.3rem;
    letter-spacing: 1px;
}

.attack-stats {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-label {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.stat-label.oas { color: #00ff88; }
.stat-label.ods { color: #ff4444; }
.stat-label.mav { color: #ff8800; }
.stat-label.wav { color: #00ccff; }
.stat-label.ids { color: #ff00ff; }
.stat-label.vul { color: #ffff00; }
.stat-label.kas { color: #ff6699; }
.stat-label.rmw { color: #88ff00; }
.stat-label.ddos { color: #ff0066; }

.stat-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
}

.detections-info {
    font-size: 0.7rem;
    color: #666;
    margin-top: 1rem;
    text-align: center;
}

.total-attacks {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,212,255,0.2);
    text-align: center;
}

.total-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.3rem;
}

.total-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px rgba(0,212,255,0.5);
}

/* ========== GLOBE CONTAINER ========== */
.globe-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(0,30,50,0.5) 0%, transparent 70%);
    max-height: 400px;
}

.globe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 400px;
}

#globeCanvas {
    width: 100%;
    height: 100%;
    max-height: 400px;
}

.attack-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.attack-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: particleFade 1.5s ease-out forwards;
}

@keyframes particleFade {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

/* ========== COUNTRY PANEL ========== */
.country-panel {
    background: rgba(10,20,40,0.9);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 10;
}

.country-panel h3 {
    font-size: 1rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 1px;
}

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

.country-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    background: rgba(0,212,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(0,212,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-item:hover {
    background: rgba(0,212,255,0.15);
    border-color: rgba(0,212,255,0.4);
}

.country-name {
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.country-flag {
    font-size: 1.1rem;
}

.country-count {
    color: #00d4ff;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* ========== BOTTOM STATS ========== */
.bottom-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0.8rem 1rem;
    background: rgba(10,20,40,0.95);
    border-top: 1px solid rgba(0,212,255,0.3);
}

.bottom-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border-right: 1px solid rgba(0,212,255,0.15);
    min-width: 100px;
}

.bottom-stat:first-child {
    border-right: none;
}

.stat-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.stat-type {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.stat-type.oas { color: #00ff88; }
.stat-type.ods { color: #ff4444; }
.stat-type.mav { color: #ff8800; }
.stat-type.wav { color: #00ccff; }
.stat-type.ids { color: #ff00ff; }
.stat-type.vul { color: #ffff00; }
.stat-type.kas { color: #ff6699; }
.stat-type.rmw { color: #88ff00; }
.stat-type.ddos { color: #ff0066; }

/* ========== LEGEND ========== */
.legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.8rem;
    background: rgba(10,20,40,0.9);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #888;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.oas { background: #00ff88; }
.dot.ods { background: #ff4444; }
.dot.mav { background: #ff8800; }
.dot.wav { background: #00ccff; }
.dot.ids { background: #ff00ff; }
.dot.vul { background: #ffff00; }
.dot.kas { background: #ff6699; }
.dot.rmw { background: #88ff00; }
.dot.ddos { background: #ff0066; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .cybermap-container {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .stats-panel, .country-panel {
        max-width: 500px;
        margin: 0 auto;
    }

    .globe-container {
        height: 350px;
        max-height: 350px;
    }

    .bottom-stats {
        flex-wrap: wrap;
    }

    .legend {
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .cybermap-header h1 {
        font-size: 1.3rem;
    }

    .bottom-stat {
        padding: 0.5rem 0.8rem;
        min-width: 70px;
    }

    .stat-num {
        font-size: 0.9rem;
    }
}
