
body {
    overflow-y: scroll;
}

#qrForm {
    display: grid;
    gap: 12px;
}

#fieldsContainer {
    display: grid;
    gap: 10px;
}

.formField {
    display: grid;
    gap: 6px;
}

.formField label {
    font-size: 0.95rem;
    color: #333;
}

.formField input,
.formField select,
#qrType {
    width: 100%;
}

#qrType,
.formField input:not([type="checkbox"]),
.formField select {
    padding: 16px;
    font-size: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 20px;
    background-color: #fff;
}

.formField input[type="checkbox"] {
    width: auto;
    justify-self: start;
    margin-bottom: 0;
}

.passwordField {
    position: relative;
    margin-bottom: 20px;
}

.passwordField input {
    margin-bottom: 0 !important;
    padding-right: 52px;
}

.passwordToggleBtn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #666;
    cursor: pointer;
}

.passwordToggleBtn:hover {
    background-color: #f1f1f1;
    color: #333;
}

.passwordToggleBtn i {
    line-height: 1;
}

#resetBtn,
#printBtn,
#saveBtn {
    margin-top: 12px;
    margin-right: 8px;
}

#qrContainer {
    width: 100%;
    min-height: 300px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    border-radius: 12px;
    background-color: white;
}

#qrContainer span {
    font-size: 1rem;
    color: #888;
}

.resetBtn {
    background-color: #f44336;
}

#qrContainer img {
    max-width: 100%;
    height: auto;
}

/* 印刷用スタイル */
@media print {
    @page {
        size: portrait;
        margin: 0;
    }
    
    body * {
        visibility: hidden;
    }
    #qrContainer, #qrContainer * {
        visibility: visible;
    }
    #qrContainer {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        background: white;
    }
}