/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #0d6efd;
    color: white;
    padding: 40px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
}

main {
    flex: 1;
    padding: 40px 0;
}

#input-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

textarea, input[type="number"], input[type="color"], select, input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out;
}

textarea:focus, input:focus, select:focus {
    border-color: #0d6efd;
    outline: none;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.option-group {
    display: flex;
    flex-direction: column;
}

button {
    background-color: #198754;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
}

button:hover {
    background-color: #157347;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

#output-section {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

#qrcode {
    margin: 20px auto;
    display: inline-block;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    background: white;
}

#download-btn {
    margin-top: 20px;
    width: auto;
}

.hidden {
    display: none;
}

.ad {
    text-align: center;
    margin: 30px 0;
}

#affiliates {
    background: #e9ecef;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

#affiliates h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

footer {
    background-color: #0d6efd;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    #input-section, #output-section {
        padding: 20px;
    }

    button {
        padding: 10px 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#output-section:not(.hidden) {
    animation: fadeIn 0.5s ease-out;
}