/* Custom Styles für WindPark Dashboard */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --error-gradient: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    font-variation-settings: 'opsz' 32;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.6); }
}

@keyframes windFlow {
    0% { transform: translateX(-100px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(100vw); opacity: 0; }
}

.turbine-rotor {
    animation: spin linear infinite;
}

.wind-flow {
    animation: windFlow 8s linear infinite;
}

.metric-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.turbine-marker {
    transition: all 0.3s ease;
    cursor: pointer;
}

.turbine-marker:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.7));
}

.turbine-marker.selected {
    transform: scale(1.3);
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 1));
}

/* Loading Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

/* Progress Bars */
.progress-bar {
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 9999px;
    height: 8px;
    transition: width 0.5s ease;
}

/* Status Indicators */
.status-operational {
    background: radial-gradient(circle, #10b981, #059669);
    animation: pulse 2s infinite;
}

.status-maintenance {
    background: radial-gradient(circle, #ef4444, #dc2626);
    animation: pulse 2s infinite;
}

.status-warning {
    background: radial-gradient(circle, #f59e0b, #d97706);
    animation: pulse 2s infinite;
}

/* Chart Styles */
.chart-line {
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-gradient {
    background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .metric-card {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .turbine-marker {
        transform: scale(0.8);
    }
}

/* High DPI Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .turbine-marker {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Enhancements */
.dark-mode-toggle {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .no-print {
        display: none !important;
    }
}