.input-group {
    margin-bottom: 1.5rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
}

.color-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-input {
    width: 60px;
    height: 45px;
    border: 2px solid rgba(58, 85, 140, 0.5);
    border-radius: 8px;
    background: rgba(58, 85, 140, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.color-input:hover {
    border-color: rgba(114, 164, 242, 0.8);
}

.color-input:focus {
    outline: none;
    border-color: rgba(114, 164, 242, 0.8);
    box-shadow: 0 0 0 3px rgba(114, 164, 242, 0.2);
}

.color-text {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(58, 85, 140, 0.3);
    border: 2px solid rgba(58, 85, 140, 0.5);
    border-radius: 8px;
    color: var(--text-white);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.color-text:focus {
    background: rgba(58, 85, 140, 0.4);
    border-color: rgba(114, 164, 242, 0.8);
    box-shadow: 0 0 0 3px rgba(114, 164, 242, 0.2);
}

.qrcode-result {
    text-align: center;
    padding: 2rem;
    background: rgba(20, 26, 55, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 193, 219, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

#qrcode {
    display: inline-block;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

#qrcode img,
#qrcode canvas {
    display: block;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 300px !important;
    max-height: 300px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.btn-download {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #2b3a87 0%, #4a6fa5 100%);
    border: none;
    border-radius: 25px;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-family);
    margin-top: 1rem;
}

.btn-download:hover {
    background: linear-gradient(135deg, #3545a0 0%, #5a80c5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 111, 165, 0.35);
}

.btn-download:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    #qrcode img,
    #qrcode canvas {
        max-width: 250px !important;
        max-height: 250px !important;
    }
}

@media (max-width: 480px) {
    #qrcode {
        padding: 1rem;
    }

    #qrcode img,
    #qrcode canvas {
        max-width: 200px !important;
        max-height: 200px !important;
    }

}
