/* Main Styles */
.whois-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Search Box Styles */
.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.domain-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.domain-input:focus {
    border-color: #2563eb;
    outline: none;
}

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

.search-button:hover {
    background: #1d4ed8;
}

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

/* Loader Animation */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Result Container Styles */
.result-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.domain-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

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

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

.status-badge.registered {
    background: #dbeafe;
    color: #1e40af;
}

/* Info Grid Styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
}

.info-card h4 {
    color: #1f2937;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.info-content p {
    margin: 0.5rem 0;
    color: #4b5563;
}

.info-content strong {
    color: #1f2937;
}

.nameserver-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nameserver-list li {
    padding: 0.5rem 0;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.nameserver-list li:last-child {
    border-bottom: none;
}

/* Error Message Styles */
.error-message {
    background: #fee2e2;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: #991b1b;
    margin-top: 1rem;
    text-align: center;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-button {
        width: 100%;
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}