:root {
    --primary-color: #4a90e2;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background-gradient);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    text-align: center;
}

h1 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
    background: -webkit-linear-gradient(#4a90e2, #2c3e50);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

input[type="url"],
input[type="text"] {
    width: 80%;
    /* Adjusted for padding */
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    outline: none;
}

input[type="url"]:focus,
input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 80%;
    margin: 0 auto;
    /* Center the wrapper like the inputs were */
}

.input-wrapper input[type="text"] {
    width: 100%;
    /* Take remaining space */
    margin: 0;
}

#appIconPreview {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s;
}

.generate-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

.generate-btn:active {
    transform: translateY(0);
}

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

#status {
    margin-top: 20px;
    min-height: 24px;
    font-size: 14px;
}

.loading {
    display: none;
    margin-top: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.download-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    animation: fadeIn 0.5s;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.footer {
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.github-link {
    display: inline-flex;
    align-items: center;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    gap: 8px;
}

.github-link:hover {
    color: var(--primary-color);
}

.github-icon {
    fill: currentColor;
    width: 20px;
    height: 20px;
}