/* 기본 폰트 및 스타일 초기화 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

.qr-decoder-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
}

.qr-decoder-container {
    color: #212529;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    margin: 20px auto;
    border-radius: 8px;
}

/* 헤더 */
.qr-decoder-header {
    padding: 0px 0px 24px;
    border-bottom: 1px solid #e9ecef;
}
.qr-decoder-header h1 {
    font-size: 24px;
    font-weight: 800;
    text-align: left;
    line-height: 1.2;
}
.qr-decoder-header-description {
    margin-top: 8px;
    font-size: 15px;
    color: #495057;
}

/* 메인 컨텐츠 */
.qr-decoder-main-content { padding: 30px 0px 30px; }

/* 섹션 제목 */
.qr-decoder-input-section h3,
.qr-decoder-result-section h3,
.qr-decoder-reference-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* 입력 라벨/필드 */
.qr-decoder-input-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.qr-decoder-file-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
}

.qr-decoder-dropzone {
    margin-top: 12px;
    padding: 18px;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    color: #495057;
    font-size: 14px;
    text-align: center;
    transition: all .2s ease;
    background-color: #f8f9fa;
}
.qr-decoder-dropzone.dragover {
    border-color: #4c6ef5;
    background-color: #eef2ff;
}

/* 프리뷰 */
.qr-decoder-preview {
    margin-top: 16px;
    width: 100%;
    overflow: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
}
.qr-decoder-canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
}

/* 버튼 */
.qr-decoder-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.qr-decoder-btn {
    padding: 14px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}
.qr-decoder-btn-reset {
    background-color: #f1f3f5;
    color: #495057;
}
.qr-decoder-btn-reset:hover { background-color: #e9ecef; }
.qr-decoder-btn-copy {
    background-color: #4c6ef5;
    color: #ffffff;
    flex: 2;
}
.qr-decoder-btn-copy:hover { background-color: #364fc7; }
.qr-decoder-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* 구분선 */
.qr-decoder-divider {
    border: 0;
    height: 1px;
    background-color: #e9ecef;
    margin: 32px 0;
}

/* 결과 */
#qr-decoder-result-list { list-style: none; padding: 0; }
.qr-decoder-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    font-size: 15px;
}
.qr-decoder-result-item:last-child { margin-bottom: 0; }
.qr-decoder-result-item .label { font-weight: 600; color: #495057; }
.qr-decoder-result-item .value {
    font-size: 16px;
    font-weight: 700;
    color: #4c6ef5;
    word-break: break-all;
}

/* 안내사항 */
.qr-decoder-reference-section ul { list-style: none; padding-left: 0; }
.qr-decoder-reference-section li {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 4px;
}
