/**
 * Dashboard CSS - Modern TV Display
 * Glassmorphism + Smooth Animations + Modern Colors
 */

:root {
    --card-columns: 4;
    --font-scale: 1.0;
    
    /* Modern Color Palette */
    --bg-gradient-start: #0f0c29;
    --bg-gradient-mid: #302b63;
    --bg-gradient-end: #24243e;
    
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: rgba(0, 0, 0, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    
    /* Status Colors - Vibrant */
    --status-on-track: #00d9a5;
    --status-on-track-glow: rgba(0, 217, 165, 0.4);
    --status-delayed: #ffa726;
    --status-delayed-glow: rgba(255, 167, 38, 0.4);
    --status-finished: #42a5f5;
    --status-finished-glow: rgba(66, 165, 245, 0.4);
    --status-absent: #78909c;
    --status-absent-glow: rgba(120, 144, 156, 0.3);
    --status-off: #546e7a;
    --status-off-glow: rgba(84, 110, 122, 0.3);
    
    /* Accent */
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animated Background */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(-45deg, var(--bg-gradient-start), var(--bg-gradient-mid), var(--bg-gradient-end), #1a1a2e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Particles Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--card-shadow);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo Container with Effects */
.logo-container {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: logoFloat 4s ease-in-out infinite, logoRotateSlow 20s linear infinite;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-logo:hover {
    transform: scale(1.15) rotate(10deg);
    filter: drop-shadow(0 8px 25px rgba(102, 126, 234, 0.6));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes logoRotateSlow {
    0% { filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4)) hue-rotate(0deg); }
    50% { filter: drop-shadow(0 4px 12px rgba(0, 217, 165, 0.4)) hue-rotate(30deg); }
    100% { filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4)) hue-rotate(0deg); }
}

/* Logo Glow Effect */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { 
        opacity: 0.5; 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* Logo Pulse Ring */
.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    z-index: 2;
    animation: pulsRing 2s ease-out infinite;
}

@keyframes pulsRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Logo Status Indicator */
.logo-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border: 2px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo-status-indicator .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--status-on-track);
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--status-on-track);
}

.logo-status-indicator.status-good .status-dot {
    background: var(--status-on-track);
    box-shadow: 0 0 10px var(--status-on-track);
}

.logo-status-indicator.status-warning .status-dot {
    background: var(--status-delayed);
    box-shadow: 0 0 10px var(--status-delayed);
    animation: statusPulseWarning 1s ease-in-out infinite;
}

.logo-status-indicator.status-excellent .status-dot {
    background: var(--status-finished);
    box-shadow: 0 0 15px var(--status-finished), 0 0 30px var(--status-finished);
    animation: statusPulseExcellent 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes statusPulseWarning {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px var(--status-delayed);
    }
    50% { 
        transform: scale(1.3);
        box-shadow: 0 0 20px var(--status-delayed), 0 0 30px var(--status-delayed);
    }
}

@keyframes statusPulseExcellent {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px var(--status-finished);
    }
    50% { 
        transform: scale(1.4);
        box-shadow: 0 0 25px var(--status-finished), 0 0 40px var(--status-finished);
    }
}

/* Brand Text */
.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-title {
    font-size: calc(1.8rem * var(--font-scale));
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: calc(0.75rem * var(--font-scale));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--status-on-track), var(--status-finished), var(--status-on-track));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.btn-fullscreen {
    background: var(--accent-gradient);
    border: none;
    color: white;
    padding: 14px 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-fullscreen:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Workers Grid */
.workers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    align-content: start;
}

/* Worker Card - Glassmorphism */
.worker-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    min-height: fit-content;
}

.worker-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.worker-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card Glow Effect */
.worker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success-gradient);
    border-radius: 24px 24px 0 0;
    transition: all 0.4s ease;
}

.worker-card.status-delayed::before {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.worker-card.status-finished::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.worker-card.status-absent::before,
.worker-card.status-off::before {
    background: linear-gradient(90deg, #636363, #a2a2a2);
}

/* Card Inner Glow */
.worker-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--status-on-track-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.worker-card:hover::after {
    opacity: 0.3;
}

.worker-card.status-delayed::after {
    background: radial-gradient(circle, var(--status-delayed-glow) 0%, transparent 70%);
}

.worker-card.status-finished::after {
    background: radial-gradient(circle, var(--status-finished-glow) 0%, transparent 70%);
}

/* Worker Photo Container */
.worker-photo-container {
    width: calc(85px * var(--font-scale));
    height: calc(85px * var(--font-scale));
    min-width: 70px;
    min-height: 70px;
    max-width: 120px;
    max-height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto calc(12px * var(--font-scale));
    border: calc(2.5px * var(--font-scale)) solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Worker Photo */
.worker-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.worker-card:hover .worker-photo-container {
    transform: scale(1.15) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.worker-card:hover .worker-photo {
    transform: scale(1.1);
}

/* Worker Name */
.worker-name {
    font-size: calc(1.15rem * var(--font-scale));
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

/* Status Badge - Animated */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: calc(0.75rem * var(--font-scale));
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Status Badge Pulse Dot */
.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Status Badge Wave Animation */
.status-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.status-badge.status-on-track {
    background: rgba(0, 217, 165, 0.15);
    color: var(--status-on-track);
    border: 1px solid var(--status-on-track);
    box-shadow: 0 0 20px var(--status-on-track-glow);
    animation: badgePulse-green 2s ease-in-out infinite;
}

@keyframes badgePulse-green {
    0%, 100% { box-shadow: 0 0 20px var(--status-on-track-glow); }
    50% { box-shadow: 0 0 35px var(--status-on-track-glow), 0 0 50px var(--status-on-track-glow); }
}

.status-badge.status-delayed {
    background: rgba(255, 167, 38, 0.15);
    color: var(--status-delayed);
    border: 1px solid var(--status-delayed);
    box-shadow: 0 0 20px var(--status-delayed-glow);
    animation: badgePulse-orange 1.5s ease-in-out infinite;
}

@keyframes badgePulse-orange {
    0%, 100% { box-shadow: 0 0 20px var(--status-delayed-glow); }
    50% { box-shadow: 0 0 35px var(--status-delayed-glow), 0 0 50px var(--status-delayed-glow); }
}

.status-badge.status-finished {
    background: rgba(66, 165, 245, 0.15);
    color: var(--status-finished);
    border: 1px solid var(--status-finished);
    box-shadow: 0 0 20px var(--status-finished-glow);
}

.status-badge.status-absent,
.status-badge.status-off {
    background: rgba(120, 144, 156, 0.15);
    color: var(--status-absent);
    border: 1px solid var(--status-absent);
}

.status-badge.status-absent::before,
.status-badge.status-off::before {
    animation: none;
    opacity: 0.5;
}

.status-badge.status-absent::after,
.status-badge.status-off::after {
    animation: none;
}

/* Specialization Badge - White, Stable, No Effects */
.specialization-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 18px;
    font-size: calc(0.75rem * var(--font-scale));
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Site Location Badge - Similar style but slightly different color */
.site-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 18px;
    font-size: calc(0.7rem * var(--font-scale));
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Quantity Display */
.quantity-display {
    font-size: calc(1rem * var(--font-scale));
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.quantity-numbers {
    font-weight: 700;
    color: var(--text-primary);
    font-size: calc(1.1rem * var(--font-scale));
}

/* Percentage Display - Smooth Counter */
.percentage-display {
    font-size: calc(3rem * var(--font-scale));
    font-weight: 800;
    margin: 10px 0;
    text-align: center;
    min-height: calc(4rem * var(--font-scale));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.percentage-display.off-day {
    font-size: calc(1.4rem * var(--font-scale));
    background: linear-gradient(135deg, var(--status-off) 0%, #90a4ae 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.percentage-display.high-performance {
    background: linear-gradient(135deg, #00d9a5 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 217, 165, 0.5)); }
    50% { filter: drop-shadow(0 0 25px rgba(0, 217, 165, 0.8)); }
}

/* Progress Bar - Smooth */
.progress-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 10px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 217, 165, 0.5);
}

/* Progress Bar Shine Animation */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar.delayed {
    background: linear-gradient(90deg, #f093fb, #f5576c);
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.5);
}

.progress-bar.finished {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

.progress-bar.off {
    background: linear-gradient(90deg, #636363, #a2a2a2);
    box-shadow: none;
}

.progress-bar.off::after {
    animation: none;
}

/* Work Type Badge - Similar to Status Badge */
.work-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: calc(0.75rem * var(--font-scale));
    font-weight: 600;
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: rgba(102, 126, 234, 0.15);
    color: #ffffff;
    border: 1px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    animation: workTypePulse 2s ease-in-out infinite;
}

.work-type-text {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.work-type-icon {
    font-size: calc(1rem * var(--font-scale));
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

/* Hammer Icon Animation */
.hammer-icon {
    animation: hammerSwing 2s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes hammerSwing {
    0%, 100% { 
        transform: rotate(0deg);
    }
    25% { 
        transform: rotate(-15deg);
    }
    50% { 
        transform: rotate(15deg);
    }
    75% { 
        transform: rotate(-10deg);
    }
}

/* Work Type Badge Pulse Animation */
@keyframes workTypePulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 35px rgba(102, 126, 234, 0.5), 0 0 50px rgba(102, 126, 234, 0.3);
        transform: scale(1.05);
    }
}

/* Work Type Badge Wave Animation - RTL then LTR in loop */
.work-type-badge::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    border-radius: 30px;
    animation: waveRTLtoLTR 3s ease-in-out infinite;
}

@keyframes waveRTLtoLTR {
    0% { 
        left: -100%;
        right: auto;
    }
    50% { 
        left: 100%;
        right: auto;
    }
    50.01% { 
        left: auto;
        right: -100%;
    }
    100% { 
        left: auto;
        right: 100%;
    }
}

.worker-card:hover .work-type-badge {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6), 0 0 60px rgba(102, 126, 234, 0.4);
    animation-play-state: paused;
}

.worker-card:hover .hammer-icon {
    animation-duration: 1s;
    transform: rotate(25deg);
}

/* Footer */
.dashboard-footer {
    margin-top: 20px;
    padding: 16px 24px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--card-shadow);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.summary-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-label {
    font-size: calc(0.95rem * var(--font-scale));
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: calc(1.4rem * var(--font-scale));
    font-weight: 700;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: calc(0.9rem * var(--font-scale));
    color: var(--text-secondary);
}

.refresh-countdown {
    margin-top: 4px;
    font-size: calc(0.85rem * var(--font-scale));
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--status-on-track);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Cursor Auto-hide */
body.cursor-hidden {
    cursor: none !important;
}

body.cursor-hidden * {
    cursor: none !important;
}

/* Responsive */
@media (max-width: 1920px) {
    .workers-grid {
        gap: 20px;
    }
}

@media (max-width: 1366px) {
    .dashboard-container {
        padding: 16px;
    }
    
    .worker-card {
        padding: 20px 16px;
    }
}

/* Fullscreen styles */
body:fullscreen,
body:-webkit-full-screen,
body:-moz-full-screen,
body:-ms-fullscreen {
    background-size: 400% 400%;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    text-align: center;
    gap: 16px;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}
