﻿<style id="lightmetricsModalCSS" >
.lm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lm-modal-header {
    background: #2196F3;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lm-modal-title {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.lm-icon {
    margin-right: 10px;
}

.lm-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

    .lm-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.lm-modal-body {
    padding: 20px;
}

.lm-status-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.lm-status-message {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.lm-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #2196F3;
    border-radius: 50%;
    animation: lm-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes lm-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lm-timer {
    background: #666;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-family: monospace;
    font-weight: bold;
}

.lm-video-section {
    margin-bottom: 20px;
}

.lm-video-container, .lm-video-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

    .lm-video-container video {
        width: 100%;
        height: 100%;
        background: #000;
    }

.lm-video-placeholder {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.lm-placeholder-content h3 {
    margin: 10px 0 5px 0;
    font-size: 1.5em;
}

.lm-placeholder-content p {
    margin: 0;
    opacity: 0.8;
}

.lm-placeholder-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.lm-progress-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

    .lm-progress-section h4 {
        margin: 0 0 15px 0;
        color: #333;
        font-size: 1.1em;
    }

.lm-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lm-step {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.lm-step-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.lm-step.active .lm-step-icon {
    color: #2196F3;
    animation: lm-pulse 1.5s infinite;
}

.lm-step.completed .lm-step-icon {
    color: #4caf50;
}

    .lm-step.completed .lm-step-icon::before {
        content: '✓';
    }

.lm-step.error .lm-step-icon {
    color: #f44336;
}

    .lm-step.error .lm-step-icon::before {
        content: '✗';
    }

@keyframes lm-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.lm-info-section {
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #d1ecf1;
}

    .lm-info-section h4 {
        margin: 0 0 15px 0;
        color: #333;
    }

.lm-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.lm-info-item {
    display: flex;
    flex-direction: column;
}

    .lm-info-item label {
        font-weight: 600;
        color: #666;
        font-size: 0.9em;
        margin-bottom: 5px;
    }

    .lm-info-item span {
        font-family: monospace;
        background: white;
        padding: 8px;
        border-radius: 4px;
        border: 1px solid #ddd;
        font-size: 0.85em;
        word-break: break-all;
    }

.lm-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.lm-badge-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.lm-badge-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lm-badge-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lm-modal-footer {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.lm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .lm-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.lm-btn-danger {
    background: #dc3545;
    color: white;
}

    .lm-btn-danger:hover:not(:disabled) {
        background: #c82333;
    }

.lm-btn-secondary {
    background: #6c757d;
    color: white;
}

    .lm-btn-secondary:hover {
        background: #5a6268;
    }

.lm-status-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.lm-status-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

@media (max-width: 768px) {
    .lm-modal {
        width: 95%;
        margin: 10px;
    }

    .lm-info-grid {
        grid-template-columns: 1fr;
    }

    .lm-modal-footer {
        flex-direction: column;
    }

    .lm-status-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

</style >
