/* --- 형님이 주신 기존 CSS 시작 --- */
body {
    margin: 0;
    background: #f0f2f5;
    font-family: -apple-system, sans-serif;
    overscroll-behavior: none;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #007bff;
    color: #fff;
    padding: 12px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.1rem;
}

main {
    padding: 12px;
}

#reader-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #007bff;
    background: #000;
    position: relative;
}

#reader {
    width: 100% !important;
    border: none !important;
}

#reader video {
    width: 100% !important;
    display: block;
}

.cam-overlay-btn {
    position: absolute;
    top: 10px;
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    z-index: 100;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#zoom-wrapper {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.zoom-text {
    font-size: 0.85rem;
    color: #555;
    font-weight: bold;
    min-width: 30px;
}

#zoom-slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

#zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.manual-input-container {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

#manual-barcode {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

#manual-add-btn {
    padding: 0 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
}

.list-container {
    margin-top: 15px;
    flex: 1;
}

.list-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

#scanned-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
}

#scanned-list li {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scan-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 420px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 20000;
    transition: bottom 0.4s;
    border: 1px solid #eee;
}

.scan-banner.active {
    bottom: 20px;
}

.banner-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.check-icon {
    background: #28a745;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.banner-text {
    font-size: 1.1rem;
    color: #333;
    font-weight: bold;
}

.btn-large {
    width: 100%;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-top: 12px;
    font-weight: bold;
}

.delete-btn {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    display: none;
    z-index: 10000;
}

.flash {
    animation: flash_anim 0.3s ease-out;
}

@keyframes flash_anim {
    0% {
        background-color: #28a745;
    }

    100% {
        background-color: #ffffff;
    }
}

/* --- 형님이 주신 기존 CSS 끝 --- */

/* 🌟 추가된 푸터 스타일 */
.p2w-footer {
    text-align: center;
    padding: 20px 0;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.3);
    letter-spacing: 1.2px;
    font-family: sans-serif;
    margin-top: auto;
    text-transform: uppercase;
}

.footer-email {
    color: rgba(0, 0, 0, 0.4);
    text-decoration: underline;
    font-weight: bold;
}