/* Import a modern font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* A nice, subtle gradient background */
    background: linear-gradient(120deg, #f0f4f8, #d9e2ec);
    color: #4A5568; /* A softer black for text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-size: 16px;
}

main {
    background-color: #ffffff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 550px;
    width: 90%;
    border-top: 5px solid #3B82F6; /* A blue accent line */
}

h1 {
    color: #1A202C;
    font-size: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Add a shield icon before the H1 title using CSS */
h1::before {
    content: '🛡️'; /* Shield emoji */
    font-size: 2.2rem;
    line-height: 1;
}

p {
    margin-top: -10px;
    margin-bottom: 30px;
    color: #718096;
}

#check-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#url-input {
    padding: 15px;
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#url-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

button {
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

#result-container {
    margin-top: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    border-width: 1px;
    border-style: solid;
}

.safe {
    background-color: #E6F4EA;
    color: #34A853;
    border-color: #A8D5B9;
}

.unsafe {
    background-color: #FCE8E6;
    color: #EA4335;
    border-color: #FAD2CF;
}

.checking {
    color: #718096;
    background-color: #F7FAFC;
    border-color: #E2E8F0;
}
