/* Server Rack Loading Animation Styles - Optimized */
:root {
    --rack-bg: #1a1a1a;
    --server-bg: #2C3E50;
    --led-green: #27C93F;
    --led-amber: #FFA500;
    --led-red: #FF5F56;
    --led-blue: #3498DB;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-bg);
    z-index: 9999;
    transition: opacity 0.3s ease;
}
        
.loader-container.hidden {
    opacity: 0;
    pointer-events: none;
}
        
.server-rack {
    width: 280px;
    height: 360px;
    background-color: var(--rack-bg);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(78, 205, 196, 0.1);
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    margin-bottom: 30px;
}
        
.rack-frame-top,
.rack-frame-bottom {
    height: 15px;
    background-color: #111;
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}
        
.rack-frame-top {
    justify-content: space-between;
}
        
.rack-brand {
    font-size: 8px;
    color: #666;
    font-weight: bold;
    letter-spacing: 1px;
}
        
.rack-holes {
    display: flex;
    gap: 15px;
}
        
.rack-hole {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #222;
    border: 1px solid #333;
}
        
.server {
    height: 40px;
    background-color: var(--server-bg);
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0.5;
    transition: all 0.3s ease;
}
        
.server.active {
    opacity: 1;
    box-shadow: inset 0 0 10px rgba(78, 205, 196, 0.2);
}
        
.server-front {
    display: flex;
    align-items: center;
    gap: 8px;
}
        
.server-handle {
    width: 4px;
    height: 25px;
    background-color: #444;
    border-radius: 2px;
}
        
.server-model {
    font-size: 8px;
    color: #aaa;
    letter-spacing: 0.5px;
}
        
.server-leds {
    display: flex;
    gap: 8px;
}
        
.led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #333;
    position: relative;
    transition: all 0.2s ease;
}
        
.led.green.active {
    background-color: var(--led-green);
    box-shadow: 0 0 5px var(--led-green);
}
        
.led.amber.active {
    background-color: var(--led-amber);
    box-shadow: 0 0 5px var(--led-amber);
}
        
.led.red.active {
    background-color: var(--led-red);
    box-shadow: 0 0 5px var(--led-red);
}
        
.led.blue.active {
    background-color: var(--led-blue);
    box-shadow: 0 0 5px var(--led-blue);
}
        
.led.blink {
    animation: blinkLed 0.8s infinite;
}
        
@keyframes blinkLed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
        
.server-status {
    margin-top: 20px;
    font-family: 'Courier New', monospace;
    text-align: center;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}
        
.loader-progress {
    width: 280px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}
        
.loader-progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary);
    transition: width 0.2s ease;
}
        
.system-stats {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    font-family: 'Courier New', monospace;
}
        
.system-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
        
.stat-value {
    font-size: 16px;
    color: var(--primary);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(78, 205, 196, 0.5);
}
        
.stat-label {
    font-size: 10px;
    color: #aaa;
    margin-top: 5px;
}
        
.loading-message {
    margin-top: 20px;
    font-size: 12px;
    color: #888;
    font-family: 'Courier New', monospace;
    text-align: center;
    min-height: 16px;
}

/* Responsive adjustments for loader */
@media (max-width: 480px) {
    .server-rack {
        width: 240px;
        height: 320px;
    }
    
    .loader-progress {
        width: 240px;
    }
    
    .system-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 20px;
    }
    
    .server-status {
        font-size: 16px;
    }
}