/* Panel infografis di sebelah kanan */
#map-infographics-container {
    position: fixed;
    top: 0;
    right: -400px; /* Mulai di luar layar */
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 20;
    border-left: 3px solid #667eea;
    padding: 20px;
    overflow-y: auto;
    transition: right 0.4s ease-out;
    box-sizing: border-box;
}

#map-infographics-container.visible {
    right: 0; /* Tampilkan panel */
}

/* Handle panel header */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.close-btn {
    width: 30px;
    height: 30px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
}

.close-btn:hover {
    background: #e5e7eb;
}

/* Info Grid dan Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.info-card {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.info-panel-title {
    font-size: 24px;
    font-weight: bold;
}

.card-label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #4b5563;
}

.card-value {
    font-size: 22px;
    font-weight: 700;
}

/* Warna-warna kartu - Sistem warna konsisten */
.card-blue { 
    background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
}
.card-blue .card-label { 
    color: #667eea;
    font-weight: 600;
}
.card-blue .card-value {
    color: #3730a3;
}

.card-pink { 
    background: linear-gradient(135deg, #fce7f3 0%, #fecdd3 100%);
}
.card-pink .card-label { 
    color: #be185d;
    font-weight: 600;
}
.card-pink .card-value {
    color: #831843;
}

.card-purple { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.card-purple .card-label { 
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}
.card-purple .card-value { 
    color: white;
}

.card-yellow { 
    background: linear-gradient(135deg, #fef08a 0%, #fed7aa 100%);
}
.card-yellow .card-label { 
    color: #b45309;
    font-weight: 600;
}
.card-yellow .card-value {
    color: #78350f;
}

.card-green { 
    background: linear-gradient(135deg, #ccfbf1 0%, #a7f3d0 100%);
}
.card-green .card-label { 
    color: #0f766e;
    font-weight: 600;
}
.card-green .card-value {
    color: #134e4a;
}

/* Card dengan lebar penuh (2 kolom) */
.total-wide {
    grid-column: span 2;
}

/* Tombol panel mini */
.panel-mini-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.panel-mini-button.visible {
    opacity: 1;
    visibility: visible;
}

.panel-mini-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.panel-mini-button::after {
    content: "i";
    color: white;
    font-size: 24px;
    font-weight: bold;
    font-style: italic;
}

/* Responsive untuk layar kecil */
@media (max-width: 768px) {
    #map-infographics-container {
        width: 300px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #map-infographics-container {
        width: 100%;
        right: -100%;
    }
}