/* MIT PV.dk Custom Styles */

/* KPI Cards Animation */
.kpi-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Energy Flow Visualization */
.energy-flow {
    position: relative;
}

.energy-arrow {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 1px;
}

.energy-arrow::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -2px;
    width: 0;
    height: 0;
    border-left: 6px solid #3b82f6;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

/* Performance indicators */
.performance-good {
    color: #10b981;
}

.performance-medium {
    color: #f59e0b;
}

.performance-poor {
    color: #ef4444;
}

/* Calendar heatmap styling */
.calendar-day {
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-day:hover {
    stroke: #374151;
    stroke-width: 2;
}

/* Chart container responsive */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Loading animation */
.loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status indicators */
.status-online {
    color: #10b981;
}

.status-offline {
    color: #ef4444;
}

.status-warning {
    color: #f59e0b;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-full {
        width: 100%;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dark-mode-card {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .dark-mode-text {
        color: #d1d5db;
    }
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Animation for value updates */
.value-update {
    animation: pulse-green 0.5s ease-in-out;
}

@keyframes pulse-green {
    0% { 
        background-color: rgba(16, 185, 129, 0.1); 
        transform: scale(1);
    }
    50% { 
        background-color: rgba(16, 185, 129, 0.3); 
        transform: scale(1.02);
    }
    100% { 
        background-color: transparent; 
        transform: scale(1);
    }
}
