:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --error-color: #ef4444;
    --success-color: #22c55e;
}

.ip-lookup-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 0 auto;
}

.ip-lookup-container h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

#ipInput {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-left: 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--background);
    color: var(--text-primary);
}

#ipInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

#lookupBtn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#lookupBtn:hover {
    background-color: var(--primary-hover);
}

#lookupBtn:disabled {
    background-color: var(--text-secondary);
    cursor: not-allowed;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin: 1rem 0;
}

.error {
    background-color: #fef2f2;
    color: var(--error-color);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result {
    background-color: var(--background);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.result-value {
    color: var(--text-primary);
    font-weight: 600;
}

.map {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    background-color: var(--background);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}