/* Base styles - Light theme (default) */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: white;
    color: #212529;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Dark theme */
div.dark-theme {
    background: black;
    color: #ffffff;
}

.validation-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.loading-container {
    text-align: center;
    max-width: 400px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-theme .loading-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.video-container {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

#biotrust-video {
    width: 640px;
    height: 480px;
    display: block;
    background: #000;
    transform: scaleX(-1);
}

/* Camera overlay - Light theme (white, fully opaque) */
.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Camera overlay - Dark theme (black, fully opaque) */
.dark-theme .camera-overlay {
    background: rgb(0, 0, 0);
}

.camera-overlay.normal {
    mask: radial-gradient(ellipse 100px 125px at 50% 50%, transparent 100%, black 100%);
    -webkit-mask: radial-gradient(ellipse 100px 125px at 50% 50%, transparent 100%, black 100%);
}

.camera-overlay.approach {
    mask: radial-gradient(ellipse 140px 175px at 50% 50%, transparent 100%, black 100%);
    -webkit-mask: radial-gradient(ellipse 140px 175px at 50% 50%, transparent 100%, black 100%);
}

/* Camera instruction inside the frame */
.camera-instruction {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    max-width: 90%;
    box-sizing: border-box;
}

.dark-theme .camera-instruction {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.camera-instruction span {
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.challenge-progress {
    font-size: 12px;
    opacity: 0.8;
    color: #87ceeb;
}

.dark-theme .challenge-progress {
    color: #4a90e2;
}

/* Simple oval border for initial challenges */
.oval-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid rgba(0, 255, 136, 0.8);
    pointer-events: none;
    transition: all 0.5s ease;
}

.oval-border.normal {
    width: 200px;
    height: 250px;
}

.oval-border.approach {
    width: 280px;
    height: 350px;
    border-color: rgba(255, 165, 0, 0.8);
}

/* Oval segments container */
.oval-segments-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.5s ease;
}

.oval-segments-container.normal {
    width: 250px;
    height: 276px;
}

.oval-segments-container.approach {
    width: 280px;
    height: 350px;
}

/* SVG for precise oval arc segments */
.oval-segments-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: inherit;
}

/* Arc segments styling */
.arc-segment {
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 3px rgba(200, 200, 200, 0.3));
}

.arc-segment.active {
    stroke: #00ff88 !important;
    stroke-width: 8 !important;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.8)) drop-shadow(0 0 16px rgba(0, 255, 136, 0.4));
    animation: arcPulse 2s ease-in-out infinite;
}

@keyframes arcPulse {
    0%,
    100% {
        stroke-width: 8;
        opacity: 1;
    }
    50% {
        stroke-width: 10;
        opacity: 0.8;
    }
}

/* Arrow indicators container */
.arrow-indicators {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Arrow indicators - circular containers */
.arrow-indicator {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.dark-theme .arrow-indicator {
    background: rgb(125 125 125 / 20%);
    border: 2px solid rgb(170 170 170 / 40%);
}

.arrow-indicator.active {
    background: rgba(0, 255, 136, 0.3);
    border-color: rgba(0, 255, 136, 1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    transform: scale(1.15);
}

/* Position arrow indicators on the outer arc perimeter */
.arrow-top {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-right {
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
}

.arrow-bottom {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-left {
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
}

/* Active state positioning adjustments */
.arrow-indicator.active.arrow-top {
    transform: translateX(-50%) scale(1.15);
}

.arrow-indicator.active.arrow-right {
    transform: translateY(-50%) scale(1.15);
}

.arrow-indicator.active.arrow-bottom {
    transform: translateX(-50%) scale(1.15);
}

.arrow-indicator.active.arrow-left {
    transform: translateY(-50%) scale(1.15);
}

.arrow {
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.dark-theme .arrow {
    color: rgb(178 178 178 / 80%);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.arrow-indicator.active .arrow {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 136, 1), 0 0 20px rgba(0, 255, 136, 0.8);
    transform: scale(1.1);
}

/* Success feedback */
.success-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 255, 136, 0.9);
    color: white;
    padding: 20px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: successPop 1.5s ease-out;
    min-width: 120px;
    min-height: 120px;
    text-align: center;
}

.success-icon {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 8px;
}

.success-feedback span {
    font-size: 14px;
    font-weight: 600;
}

@keyframes successPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.challenge-controls {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.cancel-btn {
    background: linear-gradient(135deg, #ff4444, #cc3333);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #cc3333, #aa2222);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(128, 128, 128, 0.3);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.dark-theme .loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #00ff88;
}

.camera-error {
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid #ff4444;
    color: #ff6666;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.dark-theme .camera-error {
    background: rgba(255, 68, 68, 0.3);
    border: 2px solid #ff6666;
    color: #ff8888;
}

.camera-error h4 {
    margin: 0 0 15px 0;
    color: #ff4444;
    font-size: 20px;
}

.dark-theme .camera-error h4 {
    color: #ff6666;
}

.retry-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.retry-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile responsive adjustments - Adaptive design */
@media (max-width: 768px) {
    .validation-container {
        padding: 10px;
    }

    .challenge-container {
        height: 100vh;
        gap: 15px;
        padding: 10px;
        justify-content: space-between;
    }

    #biotrust-video {
        width: 100vw;
        height: calc(100vw * 0.75);
        max-width: 90vw;
        max-height: 70vh;
        transform: scaleX(-1);
    }

    .video-container {
        width: 100%;
        max-width: 90vw;
    }

    .camera-instruction {
        top: 10px;
        padding: 8px 16px;
        max-width: 85%;
    }

    .camera-instruction span {
        font-size: 14px;
    }

    .challenge-progress {
        font-size: 11px;
    }

    .oval-segments-container.normal {
        width: 180px;
        height: 200px;
    }

    .oval-segments-container.approach {
        width: 200px;
        height: 230px;
    }

    .arrow-indicator {
        width: 30px;
        height: 30px;
    }

    .arrow {
        font-size: 14px;
    }

    .oval-border.normal {
        width: 320px; /* Aumentando tamanho do oval para mobile */
        height: 400px; /* Aumentando tamanho do oval para mobile */
    }

    .oval-border.approach {
        width: 300px; /* Aumentando proporcionalmente */
        height: 375px; /* Aumentando proporcionalmente */
    }

    .camera-overlay.normal {
        mask: radial-gradient(ellipse 75px 95px at 50% 50%, transparent 100%, black 100%);
        -webkit-mask: radial-gradient(ellipse 75px 95px at 50% 50%, transparent 100%, black 100%);
    }

    .camera-overlay.approach {
        mask: radial-gradient(ellipse 90px 110px at 50% 50%, transparent 100%, black 100%);
        -webkit-mask: radial-gradient(ellipse 90px 110px at 50% 50%, transparent 100%, black 100%);
    }

    .success-feedback {
        min-width: 100px;
        min-height: 100px;
        padding: 15px;
    }

    .success-icon {
        font-size: 36px;
    }

    .success-feedback span {
        font-size: 12px;
    }

    .cancel-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .loading-container {
        padding: 30px;
        max-width: 90vw;
    }

    .camera-error {
        padding: 20px;
        margin: 10px 0;
    }

    /* Adjust SVG viewBox for mobile */
    .oval-segments-svg {
        transform: scale(0.8);
    }

    .arrow-top {
        top: -30px;
    }

    .arrow-right {
        right: -20px;
    }

    .arrow-bottom {
        bottom: -30px;
    }

    .arrow-left {
        left: -15px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .challenge-container {
        gap: 10px;
        padding: 5px;
    }

    #biotrust-video {
        max-height: 60vh;
    }

    .camera-instruction {
        top: 5px;
        padding: 6px 12px;
    }

    .camera-instruction span {
        font-size: 13px;
    }

    .cancel-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .oval-segments-container.normal {
        width: 160px;
        height: 180px;
    }

    .success-feedback {
        min-width: 80px;
        min-height: 80px;
        padding: 12px;
    }

    .success-icon {
        font-size: 28px;
    }

    .success-feedback span {
        font-size: 12px;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .challenge-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    #biotrust-video {
        width: 60vw;
        height: 80vh;
        max-width: 400px;
        max-height: 300px;
        transform: scaleX(-1);
    }

    .camera-instruction {
        top: 5px;
        font-size: 12px;
    }

    .challenge-controls {
        position: absolute;
        bottom: 10px;
        right: 10px;
    }
}

/* Manager Container Styles */
.manager-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dark-theme .manager-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.manager-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dark-theme .manager-header {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.manager-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dark-theme .manager-title {
    color: #ffffff;
}

.manager-content {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

/* Photo Capture Section */
.capture-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dark-theme .capture-section {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.capture-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.dark-theme .capture-header {
    background: #1a1a1a;
    border-bottom: 1px solid #404040;
}

.capture-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.dark-theme .capture-header h3 {
    color: #ffffff;
}

.capture-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.manager-video-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#manager-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.manager-camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    /* Máscara da câmera proporcional ao oval maior do Manager (200px × 250px) */
    mask: radial-gradient(ellipse 125px 160px at 50% 50%, transparent 100%, black 100%);
    -webkit-mask: radial-gradient(ellipse 125px 160px at 50% 50%, transparent 100%, black 100%);
    pointer-events: none;
}

.dark-theme .manager-camera-overlay {
    background: rgba(0, 0, 0, 0.9);
}

/* Responsivo para telas menores */
@media (max-width: 768px) {
    .manager-camera-overlay {
        mask: radial-gradient(ellipse 150px 190px at 50% 50%, transparent 100%, black 100%);
        -webkit-mask: radial-gradient(ellipse 150px 190px at 50% 50%, transparent 100%, black 100%);
    }
}

.manager-instruction {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

.dark-theme .manager-instruction {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.capture-controls {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.manager-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.manager-btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.manager-btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.manager-btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.manager-btn-success:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.manager-btn-secondary {
    background: #6c757d;
    color: white;
}

.manager-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.manager-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Form Section */
.form-section {
    width: 350px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark-theme .form-section {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.dark-theme .form-header {
    background: #1a1a1a;
    border-bottom: 1px solid #404040;
}

.form-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.dark-theme .form-header h3 {
    color: #ffffff;
}

.form-body {
    padding: 20px;
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.dark-theme .form-label {
    color: #ffffff;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.dark-theme .form-input {
    background: #1a1a1a;
    border-color: #404040;
    color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.dark-theme .form-select {
    background: #1a1a1a;
    border-color: #404040;
    color: #ffffff;
}

.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Photo Preview */
.photo-preview {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    overflow: hidden;
    background: #f8f9fa;
}

.dark-theme .photo-preview {
    border-color: #404040;
    background: #1a1a1a;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.dark-theme .photo-placeholder {
    color: #adb5bd;
}

/* Status Messages */
.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 500;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dark-theme .status-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-color: #28a745;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dark-theme .status-error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border-color: #dc3545;
}

.status-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.dark-theme .status-info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
    border-color: #17a2b8;
}

/* Loading States */
.manager-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    flex-direction: column;
    gap: 16px;
}

.manager-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.dark-theme .manager-spinner {
    border-color: #404040;
    border-top-color: #007bff;
}

/* Captured Photo Preview */
.captured-photo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.captured-photo-preview {
    width: 100%;
    height: 100%;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 136, 0.6);
}

.photo-controls {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 11;
}

/* Responsive Design */
@media (max-width: 768px) {
    .manager-content {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .form-section {
        width: 100%;
    }

    .manager-header {
        padding: 16px;
    }

    .manager-title {
        font-size: 20px;
    }

    .capture-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .manager-btn {
        justify-content: center;
    }

    .captured-photo-preview {
        max-width: 95%;
        max-height: 75%;
        object-fit: contain;
    }

    .photo-controls {
        bottom: 40px;
        flex-direction: column;
        align-items: center;
    }
}

/* Adicionando estilos elegantes para o card de foto capturada */
.captured-photo-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.photo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.photo-card-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

.capture-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #059669;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-icon {
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.photo-card-content {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.photo-preview-container {
    flex-shrink: 0;
}

.captured-photo-elegant {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.person-info-card {
    flex: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
}

.info-value {
    color: #1e293b;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.photo-card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirm,
.btn-retake {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
}

.btn-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-retake {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-retake:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-icon {
    font-size: 1rem;
}

/* Dark theme support for photo card */
.dark-theme .captured-photo-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .photo-card-header h3 {
    color: #f1f5f9;
}

.dark-theme .photo-card-header {
    border-bottom-color: #475569;
}

.dark-theme .person-info-card {
    background: #334155;
    border-color: #475569;
}

.dark-theme .info-row {
    border-bottom-color: #475569;
}

.dark-theme .info-label {
    color: #cbd5e1;
}

.dark-theme .info-value {
    color: #f1f5f9;
}

/* Adding styles for edit mode info note */
.info-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #92400e;
}

.note-icon {
    font-size: 1rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.dark-theme .info-note {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.dark-theme .note-icon {
    color: #fbbf24;
}

.manager-oval-border.normal{
    width: 270px;
    height: 335px;
}