/* TV Display Optimized Styles */
/* Designed for viewing from 10-15 feet distance */

:root {
    --tv-bg-primary: #000;
    --tv-bg-secondary: #1a1a1a;
    --tv-text-primary: #fff;
    --tv-text-secondary: rgba(255, 255, 255, 0.8);
    --tv-success: #4caf50;
    --tv-warning: #ff9800;
    --tv-error: #f44336;
    --tv-info: #2196f3;
}

/* Hide scrollbars on TV displays */
.tv-container::-webkit-scrollbar {
    display: none;
}

.tv-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Responsive font scaling for different TV sizes */
@media (min-width: 1920px) {
    .tv-metric-value {
        font-size: 5rem !important;
    }
    
    .tv-header {
        font-size: 4rem !important;
    }
    
    .tv-product-name {
        font-size: 3rem !important;
    }
}

@media (min-width: 3840px) { /* 4K TVs */
    .tv-metric-value {
        font-size: 8rem !important;
    }
    
    .tv-header {
        font-size: 6rem !important;
    }
    
    .tv-product-name {
        font-size: 4.5rem !important;
    }
    
    .tv-metric-label {
        font-size: 3rem !important;
    }
}

/* Animations for alerts */
@keyframes alert-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.tv-alert-critical {
    animation: alert-pulse 1.5s infinite;
}

/* High contrast mode for better visibility */
@media (prefers-contrast: high) {
    .tv-container {
        background-color: #000 !important;
    }
    
    .tv-metric-value {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Prevent text selection on TV displays */
.tv-container * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Large touch targets for TV remotes with pointer functionality */
.tv-container button,
.tv-container .mud-icon-button {
    min-width: 60px;
    min-height: 60px;
}

/* Status indicators with better visibility */
.tv-status-indicator {
    box-shadow: 0 0 20px currentColor;
    animation: status-glow 2s ease-in-out infinite;
}

@keyframes status-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Better visibility for progress bars */
.tv-progress-bar .mud-progress-linear-bars {
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

/* Ensure MudBlazor components are visible on dark background */
.tv-container .mud-paper {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Clock display styling */
.tv-clock {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}