
/* Domain Generator Styles */
.domain-generator {
    /* max-width: 800px; */
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); */
}

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

.search {
    flex: 1;
    padding: 1rem;
    border: 1px solid #e2e8f086;
    /* border-radius: 8px; */
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search:focus {
    border-color: #5c5d86;
    outline: none;
}

.tld-select {
    padding: 1rem;
    border: 1px solid #e2e8f086;
    border-radius: 5px;
    background-color: white;
    min-width: 120px;
}

.search-button {
    padding: 1rem 2rem;
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #4f46e5;
}

.domain-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.domain-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: 0.3s;
}

.domain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.domain-name {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.domain-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.available {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.taken {
    background-color: #fee2e2;
    color: #991b1b;
}

.domain-price {
    font-size: 1.25rem;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 1rem;
}

.register-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.register-button:hover {
    background-color: #4f46e5;
}

.register-button.taken {
    background-color: #e2e8f0;
    cursor: not-allowed;
}

/* Loading State */
.loader {
    display: none;
    justify-content: center;
    margin: 2rem 0;
}

.loader.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }
    .domain-generator {
       padding: 0 ;
    }


    .tld-select {
        width: 100%;
    }

    .domain-results {
        grid-template-columns: 1fr;
    }
}