
:root {
    --primary-color: #27ae60;
    --secondary-color: #27ae60;
    --background-color: #f5f7fa;
    --text-color: #34495e;
}
body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}
.container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}
h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
#qrcode {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    position: relative;
}
#qrcode img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.form-group {
    margin-bottom: 0.75rem;
}
label {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.9rem;
}
input, select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}
.color-picker {
    display: flex;
    align-items: center;
}
.color-picker input[type="color"] {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}
.color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 5px;
    border: 1px solid #ddd;
}
.button-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.button-group button {
    flex: 1;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.button-group button:hover {
    background-color: #27ae60;
}
#downloadPngBtn {
    background-color: var(--secondary-color);
}
#downloadPngBtn:hover {
    background-color: #27ae60;
}
#printBtn {
    background-color: #27ae60;
}
#printBtn:hover {
    background-color: #27ae60;
}
#generateQRBtn, #downloadSourceBtn {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
}
#generateQRBtn:hover, #downloadSourceBtn:hover {
    background-color: #27ae60;
}

@media print {
    body * {
        visibility: hidden;
    }
    #qrcode, #qrcode *, #qrText {
        visibility: visible;
    }
    #qrcode {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    #qrText {
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        text-align: center;
        margin-top: 1rem;
    }
}
