/* --- Global Styles & Background --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f7f6;
    background-image: radial-gradient(circle, #e0e8ff 0%, #f4f7f6 60%);
    color: #333;
    padding: 1rem;
}

/* --- Main Content Card --- */
.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e7e7e7;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* --- Form & Inputs --- */
#check-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

#url-input {
    flex-grow: 1;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

#url-input::placeholder {
    color: #999;
}

#url-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

#submit-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(45deg, #4a90e2, #2d5a8d);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: translateY(0);
    box-shadow: none;
}

/* --- Result & Loader --- */
.result-box {
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 10px;
    border: 2px dashed #e0e0e0;
    background-color: #f8f9fa;
    transition: all 0.4s ease;
}

.result-message {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    line-height: 1.6;
}

.result-message code {
    background-color: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Success State */
.result-success {
    background-color: #e9f7ef;
    border-color: #28a745;
}
.result-success .result-message {
    color: #155724;
}

/* Error State */
.result-error {
    background-color: #fbebed;
    border-color: #dc3545;
}
.result-error .result-message {
    color: #721c24;
}

.loader {
    border: 5px solid #e0e0e0;
    border-top: 5px solid #4a90e2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Info Text --- */
.info-text {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #777;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    #check-form {
        flex-direction: column;
    }
    
    .container {
        padding: 2rem 1.5rem;
    }
}