* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 90%;
    max-width: 600px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
}

.query-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#ipInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 200px;
}

#ipInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

#queryBtn {
    background: #667eea;
    color: white;
}

#queryBtn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#clearBtn {
    background: #f0f0f0;
    color: #333;
}

#clearBtn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.result-item {
    display: flex;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.result-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.label {
    font-weight: bold;
    color: #555;
    width: 120px;
    flex-shrink: 0;
}

.result-item span:last-child {
    color: #333;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.map-section {
    margin-bottom: 30px;
}

.map-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

#mapContainer {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
}

.info-section {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    border-left: 5px solid #2196f3;
}

.info-section h3 {
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    color: #424242;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.info-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .query-section {
        flex-direction: column;
    }
    
    #ipInput {
        min-width: auto;
    }
    
    button {
        min-width: auto;
    }
    
    .result-item {
        flex-direction: column;
    }
    
    .label {
        width: auto;
        margin-bottom: 5px;
    }
}