/* Settings dynamic styles - Extracted from Settings.js */

.camera-preview {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.camera-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    display: flex;
    gap: 1rem;
}

.error-message, .success-message {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.error-message i {
    color: #ff4444;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.success-message i {
    color: #00C851;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.success-message.fade-out {
    opacity: 0;
}

.current-photo-view {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.current-photo-view img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.7);
    transition: transform 0.2s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

.save-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeInOut 2s ease-in-out;
    z-index: 1000;
}

.save-status i {
    font-size: 18px;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}
