/* Historia cen - style dla frontendu */
.dg-price-history {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dg-history-title {
    color: #2c3e50;
    font-size: 1.4em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
}

.dg-history-title:before {
    content: "↑";
    margin-right: 10px;
    font-size: 1.2em;
}

.dg-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dg-history-entry {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.dg-history-entry:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dg-history-entry.dg-change-increase {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #f8f9fa 100%);
}

.dg-history-entry.dg-change-decrease {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f8f9fa 100%);
}

.dg-history-entry.dg-change-neutral {
    border-left: 4px solid #6c757d;
    background: linear-gradient(135deg, #e2e3e5 0%, #f8f9fa 100%);
}

.dg-history-date {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.dg-history-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.dg-old-price {
    font-size: 1.1em;
    color: #6c757d;
    text-decoration: line-through;
    font-weight: 500;
}

.dg-arrow {
    color: #3498db;
    font-weight: bold;
    font-size: 1.2em;
}

.dg-new-price {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
}

.dg-history-change {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.dg-change-increase .dg-history-change {
    color: #28a745;
}

.dg-change-decrease .dg-history-change {
    color: #dc3545;
}

.dg-change-neutral .dg-history-change {
    color: #6c757d;
}

.dg-history-reason {
    font-size: 0.9em;
    color: #495057;
    font-style: italic;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.dg-no-history {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

.dg-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin: 20px 0;
}

/* Responsywność */
@media (max-width: 768px) {
    .dg-price-history {
        padding: 15px;
        margin: 15px 0;
    }
    
    .dg-history-title {
        font-size: 1.2em;
    }
    
    .dg-history-prices {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .dg-arrow {
        transform: rotate(90deg);
        align-self: center;
    }
    
    .dg-old-price,
    .dg-new-price {
        font-size: 1em;
    }
    
    .dg-new-price {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .dg-history-entry {
        padding: 12px;
    }
    
    .dg-history-title {
        font-size: 1.1em;
    }
    
    .dg-history-date {
        font-size: 0.8em;
    }
    
    .dg-history-change {
        font-size: 0.9em;
    }
    
    .dg-history-reason {
        font-size: 0.8em;
    }
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dg-history-entry {
    animation: fadeInUp 0.5s ease-out;
}

.dg-history-entry:nth-child(1) { animation-delay: 0.1s; }
.dg-history-entry:nth-child(2) { animation-delay: 0.2s; }
.dg-history-entry:nth-child(3) { animation-delay: 0.3s; }
.dg-history-entry:nth-child(4) { animation-delay: 0.4s; }
.dg-history-entry:nth-child(5) { animation-delay: 0.5s; }
