/*
    PhotoCapture overlay styles - kept next to photo-capture.js so the widget can be
    dropped into any view with a single script + stylesheet reference.
*/
.photo-capture-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
}

.photo-capture-overlay.active {
    display: flex;
}

.photo-capture-dialog {
    background: #fff;
    border-radius: 10px;
    width: 320px;
    max-width: 92vw;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.photo-capture-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.photo-capture-close {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #6c757d;
}

.photo-capture-body {
    padding: 14px;
}

.photo-capture-frame {
    position: relative;
    width: 100%;
    height: 240px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.photo-capture-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-capture-frame i.fa-user {
    color: #aaa;
    font-size: 88px;
}

.photo-capture-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d4d;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.photo-capture-remove:hover {
    background: #ff4d4d;
    color: #fff;
}
