/* LiDAR Distance Measurement UI Styles */

.lidar-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.lidar-badge-small {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lidar-setup-phase {
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid #667eea;
}

.lidar-instructions {
    margin-bottom: 1.5rem;
}

.lidar-instructions h3 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 700;
}

.lidar-instructions p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.lidar-instructions strong {
    color: #667eea;
    font-weight: 600;
}

.lidar-distance-indicator {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.distance-bar-container {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.distance-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.distance-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.distance-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.distance-status span {
    font-size: 0.95rem;
    color: #2d3748;
}

.distance-message {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(72, 187, 120, 0.1);
}

.distance-message[style*="f56565"] {
    background: rgba(245, 101, 101, 0.1);
}

.btn-lock-distance {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-lock-distance:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-lock-distance:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.distance-monitor-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.75rem 0;
}

#live-distance-bar {
    height: 100%;
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

#distance-warning {
    padding: 0.75rem;
    background: rgba(245, 101, 101, 0.1);
    border-left: 3px solid #f56565;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #c53030;
    margin-top: 0.5rem;
}

.test-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lidar-monitor-panel {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
}

.lidar-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.movement-pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 12px;
}

.movement-pause-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.movement-pause-content h3 {
    color: #f56565;
    margin-bottom: 1rem;
}

.movement-pause-content p {
    color: #4a5568;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.btn-resume-test {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-resume-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.obstruction-warning {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #f56565;
    z-index: 10001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.obstruction-warning-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.warning-icon {
    font-size: 1.5rem;
}

.obstruction-warning-content p {
    margin: 0;
    color: #2d3748;
    font-weight: 500;
}

