:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-dark: #121212;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.05);
    --accent-glow: 0 0 20px rgba(106, 17, 203, 0.5);
}

body {
    background: linear-gradient(135deg, var(--background-dark), #1a1a2e);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    overflow-x: hidden;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    max-width: 500px;
    width: 90%;
    animation: fadeIn 1s ease-in-out;
}

h1 {
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ddd;
}

select,
input[type="file"] {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
}

select:focus,
input[type="file"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(37, 117, 252, 0.3);
}

option {
    background: #222;
    color: #fff;
}

.btn-generate {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--accent-glow);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 117, 252, 0.6);
}

.btn-generate:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.preview-container {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    text-align: center;
}

.preview-container img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.result-container {
    margin-top: 2rem;
    text-align: center;
    display: none;
    animation: slideUp 0.5s ease-out;
}

.result-container img {
    max-width: 100%;
    border-radius: 10px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* File Input Customization Override */
input[type="file"]::file-selector-button {
    background: var(--input-bg);
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.1);
}