:root {
    --theme-color: #4CAF50;
    --theme-color-hover: #45a049;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
    background: linear-gradient(
        -45deg,
        rgba(255, 240, 245, 0.7),  /* Muted pink */
        rgba(240, 248, 255, 0.7),  /* Muted blue */
        rgba(240, 255, 240, 0.7),  /* Muted green */
        rgba(255, 250, 240, 0.7)   /* Muted yellow */
    );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    -webkit-text-size-adjust: 100%;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.9);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap');

h1 {
    text-align: center;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--theme-color), #2196F3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.seo-content {
    background-color: #f5f5f5;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.seo-content h2 {
    font-size: 1.2em;
    margin-top: 0;
    color: #444;
}

.seo-content p {
    font-size: 0.9em;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    background-color: var(--theme-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

button:hover {
    background-color: var(--theme-color-hover);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

button.processing {
    background-color: var(--theme-color-hover);
    position: relative;
}

button.processing::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

button.secondary {
    background-color: #666;
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

@media (min-width: 480px) {
    button.secondary {
        width: auto;
        padding: 8px 16px;
    }
}

button.secondary:hover {
    background-color: #555;
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

@media (min-width: 480px) {
    .profile-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

#profileSelect {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

@media (min-width: 480px) {
    #profileSelect {
        width: auto;
        min-width: 150px;
    }
}

.info-display {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

#qrcode {
    margin: 30px auto;
    text-align: center;
}

#qrcode img {
    width: 100%;
    max-width: 400px;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}
