.mycamera .open-camera-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mycamera .image-preview canvas {
    display: none;
    max-width: 40vw;
    max-height: 40vh;
    border-radius: 15px;
    justify-self: center;
}

.mycamera .camera-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: none;
    z-index: 1000;
}

.mycamera .camera-view {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mycamera .close-camera-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    gap: 10px;
    z-index: 1002;
}

.mycamera .flip-camera-btn {
    position: fixed;
    bottom: 45px;
    left: calc(50% + 50px);
    gap: 10px;
    z-index: 1002;
}

.mycamera .flip-camera-btn, .close-camera-btn {
    background: white;
    color: #928989;
    padding: 10px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 14px;
    border: 4px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.mycamera .capture-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    z-index: 1001;
    border: 4px solid #ddd;
    transition: all 0.2s;
}
  
.mycamera .capture-btn:active {
    transform: translateX(-50%) scale(0.9);
    background: #f0f0f0; /* Leve escurecimento */
    border-color: rgba(255, 255, 255, 0.8);
}
  
@keyframes mycamera-flash {
    0% { opacity: 1; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.flash-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1002;
    pointer-events: none;
    animation: mycamera-flash 0.4s;
}