* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 0; /* Allows flex item to shrink */
}

.info-panel {
    width: 350px;
    min-width: 300px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    margin: 20px 20px 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.info-panel h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-panel p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-panel .stat {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 10px 0;
    font-weight: bold;
}

#map {
    width: 100%;
    height: 100%;
}

.country {
    fill: #4a90e2;
    stroke: #2c5282;
    stroke-width: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country:hover {
    fill: #667eea;
    stroke: #764ba2;
    stroke-width: 1.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.country.selected {
    fill: #764ba2;
    stroke: #667eea;
    stroke-width: 2;
}

.zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zoom-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.zoom-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.reset-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.welcome-message {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 50px;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    font-size: 18px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fallback-message {
    text-align: center;
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin: 20px;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .info-panel {
        width: 100%;
        max-width: none;
        height: 200px;
        margin: 0 20px 20px 20px;
        padding: 20px;
    }
    
    .map-container {
        margin: 20px 20px 0 20px;
    }
}

@media (max-width: 768px) {
    .info-panel {
        height: 150px;
        padding: 15px;
    }
    
    .info-panel h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .zoom-controls {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
    
    .zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .reset-btn {
        top: 10px;
        left: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }
}