/* Live Metricz Tab Styles */
.nav-tab.live-metricz-tab {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    border: 2px solid #ff6b35;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-tab.live-metricz-tab:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ffa500 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Sub-Navigation Styles */
.sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-nav-tab {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.sub-nav-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.sub-nav-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    font-weight: bold;
}

/* Stats Section Styles */
.stats-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-section h4 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-activity {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.system-activity h4 {
    color: #ffa500;
    margin-bottom: 10px;
    font-size: 14px;
}

.no-activity {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Time Comparison Layout */
.time-comparison {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.time-period {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.time-period:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.time-period.current {
    border-color: rgba(0, 255, 127, 0.3);
    background: rgba(0, 255, 127, 0.05);
}

.time-period.last {
    border-color: rgba(255, 165, 0, 0.3);
    background: rgba(255, 165, 0, 0.05);
}

.time-period h5 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.time-period.current h5 {
    color: #00ff7f;
}

.time-period.last h5 {
    color: #ffa500;
}

/* Metric Change Indicators */
.metric-change {
    font-size: 0.8em;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-change.positive {
    color: #00ff7f;
    background: rgba(0, 255, 127, 0.1);
    border: 1px solid rgba(0, 255, 127, 0.3);
}

.metric-change.negative {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.metric-change.neutral {
    color: #ffa500;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.metric-change:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Continue with existing styles from original file */

/* Subsection Content Styles */
.subsection-content {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.subsection-content.active {
    display: block;
}

.subsection-content:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.subsection-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.subsection-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #fff;
    font-weight: bold;
}

.subsection-subtitle {
    margin: 5px 0 0 0;
    color: #999;
    font-size: 0.9em;
}

/* Resource Breakdown Styles */
.resource-breakdown {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-breakdown h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.resource-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #4CAF50;
}

.resource-name {
    color: #fff;
    font-weight: 500;
}

.resource-value {
    color: #4CAF50;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* Activity Lists */
.global-tracks-list, .tias-activity, .pias-activity, .sias-activity, .advertising-activity {
    margin-top: 20px;
}

.global-tracks-list h4, .tias-activity h4, .pias-activity h4, .sias-activity h4, .advertising-activity h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.no-activity {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.no-live-tracks {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

/* Live Metrics Grid Adjustments */
.live-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.live-metric {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.live-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.metric-label {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.metric-change {
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.metric-change.positive {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.metric-change.negative {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Live Indicator - Video Camera Style */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    position: relative;
    animation: camera-blink 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
}

.live-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #ff0000;
    border-radius: 50%;
    animation: camera-pulse 1.5s infinite;
    opacity: 0.8;
}

.live-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    animation: camera-outer-pulse 1.5s infinite;
}

@keyframes camera-blink {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        background: #ff0000;
    }
    50% { 
        opacity: 0.3; 
        transform: scale(0.8);
        background: #ff3333;
    }
}

@keyframes camera-pulse {
    0%, 100% { 
        opacity: 0.8; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.4; 
        transform: scale(1.2);
    }
}

@keyframes camera-outer-pulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.1; 
        transform: scale(1.4);
    }
}

.live-text {
    color: #ff0000;
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: text-flicker 2s infinite;
}

@keyframes text-flicker {
    0%, 100% { 
        opacity: 1; 
        color: #ff0000;
    }
    92% { 
        opacity: 1; 
        color: #ff0000;
    }
    93% { 
        opacity: 0.7; 
        color: #ff3333;
    }
    94% { 
        opacity: 1; 
        color: #ff0000;
    }
}

/* Live Tracks */
.live-tracks {
    margin-top: 20px;
}

.live-tracks h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sub-nav {
        justify-content: center;
    }
    
    .sub-nav-tab {
        font-size: 0.8em;
        padding: 6px 12px;
    }
    
    .live-metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
