.elpris-container {
    max-width: 100%;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.controls {
    margin-bottom: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 6px;
}

.control-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.control-group {
    flex: 1;
    min-width: 250px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

#regionDropdown,
#companyDropdown {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.3s ease;
}

#regionDropdown:focus,
#companyDropdown:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#companyDropdown:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

#loading-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

#elpris-summary-box {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #1E5134 0%, #2D7A4D 50%, #3A8F5F 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 81, 52, 0.3);
    color: white;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.price-item:hover {
    transform: translateY(-2px);
}

.price-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.price-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

#chart-container {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

#elPrisGraf {
    max-width: 100%;
    height: 400px !important;
    border-radius: 4px;
}

.error-box {
    padding: 15px;
    background: #ffe6e6;
    border: 1px solid #ff9999;
    border-radius: 6px;
    color: #cc0000;
    margin-bottom: 20px;
    border-left: 4px solid #cc0000;
}

/* Responsive design */
@media (max-width: 768px) {
    .elpris-container {
        padding: 15px;
        margin: 10px;
    }
    
    .control-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .control-group {
        min-width: auto;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #elPrisGraf {
        height: 300px !important;
    }
}

/* Animation for loading */
#loading-message::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}