/* Power BI TV Dashboard Styles - Optimized for TV Display */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow: hidden;
}
body {
    display: flex;
    flex-direction: column;
}
/* Status Bar */
#status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

#status-bar .label {
    font-size: 18px;
    font-weight: 600;
    margin-right: 10px;
    opacity: 0.9;
}

#current-selection, #timer {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
}

#selection-value {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 5px;
    min-width: 200px;
    text-align: center;
}

#countdown {
    color: #ffd700;
    font-weight: 700;
    font-size: 24px;
    min-width: 60px;
    text-align: center;
}

/* Dashboard Container */
#dashboard-container {
    margin-top: 60px;     /* Account for fixed status bar */
    width: 100%;
    height: calc(100vh - 60px);  /* Explicit height calculation */
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

#embed-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Loading Message */
#loading-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
}

#loading-message p {
    font-size: 24px;
    margin-top: 20px;
    color: #ffffff;
}

.spinner {
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #667eea;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
#error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

#error-message.hidden {
    display: none;
}

#error-message h2 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 28px;
}

#error-message p {
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
}

#error-message button {
    background-color: #667eea;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#error-message button:hover {
    background-color: #5568d3;
}

/* Power BI iframe styling */
iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Responsive adjustments for different TV sizes */
@media (min-width: 1920px) {
    #status-bar {
        height: 70px;
        padding: 0 50px;
    }
    
    #status-bar .label {
        font-size: 20px;
    }
    
    #current-selection, #timer {
        font-size: 22px;
    }
    
    #selection-value {
        font-size: 22px;
        padding: 8px 20px;
    }
    
    #countdown {
        font-size: 28px;
    }
    
    #dashboard-container {
        margin-top: 70px;
    }
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

