/* Stream Preview Styles */

.stream-preview {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

/* Health Indicator */
.health-indicator {
    font-size: 20px;
    animation: pulse 2s infinite;
}

.health-good {
    color: #28a745;
}

.health-warning {
    color: #ffc107;
}

.health-bad {
    color: #dc3545;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Preview Image */
.preview-image {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.preview-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
    color: #666;
    font-size: 14px;
}

.preview-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: monospace;
}

/* Stream Stats */
.stream-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    font-family: monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .stream-stats {
        grid-template-columns: 1fr;
    }
}