/* ========== 사진 미리보기 ========== */
.photo-preview-container {
    margin-top: 10px;
    display: none;
    text-align: center;
}

.photo-preview {
    position: relative;
    width: 400px;
    height: 400px;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    margin: 0 auto;
    background: #f0f0f0;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
}

/* ========== 카메라 모달 ========== */
#cameraModal .modal-content {
    max-width: 500px !important;
    width: 95%;
    padding: 20px;
}

.camera-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.camera-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #4CAF50;
    color: white;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.camera-btn.active {
    background: var(--primary-color);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-color);
}

.camera-btn:last-child {
    background: var(--primary-color);
}

#cameraVideo {
    width: 100%;
    height: auto;
    max-height: 60vh;
    border-radius: 10px;
    background: #000;
    object-fit: cover;
}

.capture-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    border: 4px solid #f0f0f0;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.capture-btn:active {
    transform: scale(0.95);
    background: #f0f0f0;
}

.capture-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f44336;
    border: 2px solid white;
}