/* General Body and Typography */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
    overflow-x: hidden;
    transition: background 0.8s ease-in-out; /* Smooth transition for background changes */
}

/* --- NEW: Background Gradient Classes --- */
.bg-gradient-1 {
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
}
.bg-gradient-2 {
    background: linear-gradient(to right, #ff416c 0%, #ff4b2b 100%);
}
.bg-gradient-3 {
    background: linear-gradient(to right, #00b09b 0%, #96c93d 100%);
}
.bg-gradient-4 {
    background: linear-gradient(to right, #141e30 0%, #243b55 100%);
}

/* --- NEW: Color Switcher --- */
.color-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.color-box {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.2s;
}
.color-box:hover {
    transform: scale(1.1);
}
.color-box[data-bg="bg-gradient-1"] { background: linear-gradient(to right, #6a11cb, #2575fc); }
.color-box[data-bg="bg-gradient-2"] { background: linear-gradient(to right, #ff416c, #ff4b2b); }
.color-box[data-bg="bg-gradient-3"] { background: linear-gradient(to right, #00b09b, #96c93d); }
.color-box[data-bg="bg-gradient-4"] { background: linear-gradient(to right, #141e30, #243b55); }

/* Main Container - The Card */
main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 3rem 3rem 3rem; /* Adjusted padding for image */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 550px;
    transition: transform 0.3s ease-in-out;
}

/* --- NEW: Image Container --- */
.image-container {
    width: 150px;
    height: 150px;
    margin: -80px auto 1.5rem auto; /* Pulls the image up */
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}
.image-container img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}


h1 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 2.2rem;
    font-weight: 700;
}

p {
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Form and Result Message Styles (largely unchanged) */
#url-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#url-input {
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: calc(100% - 2.4rem);
    outline: none;
}
#url-input:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
}

button {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
button:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

#result-message {
    margin-top: 2rem;
    padding: 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    min-height: 26px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(10px);
}
#result-message.show {
    opacity: 1;
    transform: translateY(0);
}
.allowed {
    background-color: #e6ffed;
    color: #28a745;
    border: 1px solid #a3e0b8;
}
.blocked {
    background-color: #fff0f0;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}