/* Styles for QR Code Generator (qrgen.html) */
.qr-table-form {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}
.qr-table-form tr td {
    height: 36px;
    vertical-align: middle;
    padding: 2px 6px;
}
.qr-label-col {
    width: 44%;
    min-width: 120px;
    max-width: 180px;
    font-weight: bold;
    font-size: 1em;
    text-align: right;
    padding-right: 10px;
    white-space: nowrap;
}
.qr-value-col {
    width: 56%;
    min-width: 140px;
    max-width: 220px;
    text-align: left;
}
.qr-table-form input[type="text"],
.qr-table-form input[type="number"],
.qr-table-form select {
    width: 100%;
    box-sizing: border-box;
}
.qr-table-form label {
    font-weight: bold;
    font-size: 1em;
}
.qr-flex-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 24px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.qr-flex-settings {
    width: 48%;
    flex: 1 1 48%;
    padding-right: 20px;
    box-sizing: border-box;
}
.qr-flex-preview {
    width: 48%;
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.qr-preview-box {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px dashed #ccc;
    position: relative;
}
#qrcanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}
.qr-download-btn {
    color: #fff;
    background: #222;
    border: 1px solid #888;
    padding: 4px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.2s;
    display: inline-block;
    margin: 0 4px;
}
.qr-download-btn:hover {
    background: #444;
}
@media (max-width: 800px) {
    .qr-flex-wrap {
        flex-direction: column;
    }
    .qr-flex-settings, 
    .qr-flex-preview {
        width: 100%;
        flex: 1 1 100%;
        padding-right: 0;
    }
    .qr-flex-preview {
        margin-top: 24px;
    }
}
