body {
    margin: 0;
    font-family: Arial, sans-serif;
}

#container {
    display: flex;
    height: 100vh;
}

#country-list {
    width: 300px;
    padding: 20px;
    background-color: #f0f0f0;
    overflow-y: auto;
}

#map {  /* 将 #globe 改为 #map */
    flex-grow: 1;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

button {
    margin-left: 10px;
}

#error-message {
    margin-top: 10px;
    font-size: 14px;
}

#color-picker {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.color-box {
    width: 30px;
    height: 30px;
    border: 1px solid #000;
    cursor: pointer;
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10000!;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-control-button {
    background-color: white;
    color: #1f2937;
    padding: 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: background-color 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.map-control-button:hover {
    background-color: #e5e7eb;
}

#map-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
