/**
 * SST Camera Upload Styles
 */

/* Camera Button */
.sst-camera-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.sst-camera-btn:hover {
    background: #005a87;
}

.sst-camera-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Photo added message */
.sst-photo-added {
    display: inline-block;
    margin-left: 10px;
    color: #46b450;
    font-weight: 500;
}

/* Camera Modal */
.sst-camera-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.sst-camera-modal-content {
    position: relative;
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 640px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.sst-camera-modal-content h3 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #1d2327;
}

/* Close button */
.sst-camera-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.sst-camera-close:hover {
    color: #000;
}

/* Video/Preview area */
.sst-camera-modal video,
.sst-camera-preview img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
}

.sst-camera-preview {
    margin-bottom: 20px;
}

/* Camera controls */
.sst-camera-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.sst-camera-controls button {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.sst-capture-btn {
    background: #dc3232;
    color: #fff;
}

.sst-capture-btn:hover {
    background: #c32222;
}

.sst-retake-btn {
    background: #f0f0f0;
    color: #1d2327;
}

.sst-retake-btn:hover {
    background: #e0e0e0;
}

.sst-use-btn {
    background: #46b450;
    color: #fff;
}

.sst-use-btn:hover {
    background: #3a9a42;
}

/* Error message */
.sst-camera-error {
    margin-top: 15px;
    padding: 12px;
    background: #fef1f1;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    color: #a02525;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .sst-camera-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .sst-camera-controls {
        flex-direction: column;
    }
    
    .sst-camera-controls button {
        width: 100%;
    }
}

/* Status messages */
.sst-photo-status {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

.sst-photo-success {
    color: #155724;
    background: #d4edda;
}

.sst-photo-error {
    color: #721c24;
    background: #f8d7da;
}
