.photo-upload-container {
    text-align: center;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 25px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.photo-upload-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.1), transparent);
    transition: left 0.5s ease;
}

.photo-upload-container:hover::before {
    left: 100%;
}

.photo-upload-container:hover {
    border-color: #2e7d32;
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.1);
}

.photo-preview {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 3px solid #ddd;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-preview:hover::before {
    opacity: 1;
}

.photo-preview:hover {
    border-color: #2e7d32;
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.2);
}

.photo-preview i {
    font-size: 3.5em;
    color: #bbb;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    z-index: 1;
}

.photo-preview:hover i {
    color: #2e7d32;
    transform: scale(1.1);
}

.photo-preview span {
    color: #666;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    z-index: 1;
    transition: color 0.3s ease;
}

.photo-preview:hover span {
    color: #2e7d32;
    font-weight: 500;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.photo-preview:hover img {
    transform: scale(1.05);
}

.photo-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-photo {
    padding: 10px 18px;
    border: 2px solid #2e7d32;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    color: #2e7d32;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.1), transparent);
    transition: left 0.3s ease;
}

.btn-photo:hover::before {
    left: 100%;
}

.btn-photo:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-photo:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.btn-remove {
    border-color: #d32f2f;
    color: #d32f2f;
}

.btn-remove:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

/* Modal da câmera */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.camera-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 95%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.camera-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.camera-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.close-btn:hover {
    background-color: #f5f5f5;
    color: #333;
    transform: scale(1.1);
}

.camera-body {
    padding: 25px;
    text-align: center;
    background: #fafafa;
}

#camera-video {
    width: 100%;
    max-width: 450px;
    height: 350px;
    border-radius: 15px;
    background-color: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.camera-controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-capture, .btn-retake, .btn-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-capture {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-capture:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-retake {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-retake:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.btn-confirm {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Efeito de pulse para o botão de captura */
.btn-capture {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(46, 125, 50, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    }
}

/* Indicador de upload/processamento */
.upload-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.upload-indicator.show {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff40;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .photo-preview {
        width: 150px;
        height: 150px;
    }
    
    .photo-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .btn-photo {
        width: 200px;
        justify-content: center;
    }
    
    .camera-modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .camera-header {
        padding: 15px 20px;
    }
    
    .camera-body {
        padding: 20px 15px;
    }
    
    #camera-video {
        height: 280px;
    }
    
    .camera-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .btn-capture, .btn-retake, .btn-confirm {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .photo-upload-container {
        padding: 20px 15px;
    }
    
    .photo-preview {
        width: 120px;
        height: 120px;
    }
    
    .photo-preview i {
        font-size: 2.5em;
        margin-bottom: 10px;
    }
    
    .photo-preview span {
        font-size: 12px;
    }
    
    .btn-photo {
        padding: 8px 15px;
        font-size: 13px;
        width: 180px;
    }
    
    #camera-video {
        height: 240px;
    }
}

/* Estados de validação */
.photo-upload-container.error {
    border-color: #d32f2f;
    background: linear-gradient(135deg, #ffeaea 0%, #ffebee 100%);
}

.photo-upload-container.success {
    border-color: #4caf50;
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
}

/* Mensagem de validação */
.photo-validation-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.photo-validation-message.error {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.photo-validation-message.success {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.photo-validation-message.show {
    display: block;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}