/* Photo capture dialog for the registration tablet app. Large touch targets for tablets. */

.camera-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.camera-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: min(560px, 100%);
    text-align: center;
}

.camera-title {
    margin: 0 0 4px;
}

.camera-hint {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.camera-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
}

.camera-frame video,
.camera-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Circle the patient lines the face up with. Only a guide; the saved photo is the full square. */
.camera-guide {
    position: absolute;
    inset: 12%;
    border: 3px dashed rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    pointer-events: none;
}

.camera-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
}

.camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.camera-actions .btn {
    min-height: 56px;
    min-width: 150px;
}
