/* Performance optimization styles for low-end devices */

/* Reduce transitions globally */
body.low-performance * {
    transition-duration: 0.1s !important;
    animation-duration: 0.1s !important;
}

/* Disable all animations/videos on low performance */
body.low-performance video,
body.low-performance .video-background,
body.low-performance .animated-logo-video {
    display: none !important;
}

/* Disable complex CSS animations */
body.low-performance .notification,
body.low-performance .modal-content {
    animation: none !important;
}

/* Disable hover effects for better performance */
body.low-performance .btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

body.low-performance .stat-card:hover,
body.low-performance .quick-link-card:hover {
    transform: none !important;
    box-shadow: initial !important;
}

/* Simplify box shadows */
body.low-performance * {
    box-shadow: none !important;
}

/* Disable complex gradients and effects */
body.low-performance .video-overlay {
    display: none !important;
}

/* Use solid background for low performance mode */
body.low-performance::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -2;
}

/* Prevent layout shifts */
body.low-performance .main-content {
    transition: none !important;
}

body.low-performance .sidebar {
    transition: none !important;
}

/* Reduce JavaScript intensive elements */
body.low-performance .loading-spinner {
    animation: none !important;
}

/* Disable GPU acceleration for performance */
body.low-performance * {
    transform: none !important;
    will-change: auto !important;
}