.tools-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.tool-hero {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.tool-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.tool-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tool-description {
    color: #6c757d;
    margin-bottom: 2rem;
}

.ip-lookup-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ip-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.ip-input:focus {
    border-color: #007bff;
    outline: none;
}

.search-button {
    padding: 0.75rem 2rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-button:hover {
    background: #0056b3;
}

.search-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.result-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.ip-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.error {
    background: #f8d7da;
    color: #721c24;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-content p {
    margin: 0.5rem 0;
    color: #6c757d;
}

.info-content strong {
    color: #2c3e50;
}

.map-card {
    grid-column: 1 / -1;
}

.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.error-message {
    display: none;
    padding: 1rem;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.error-message.visible {
    display: block;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-button {
        width: 100%;
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}