/* General Styles */
body {
    font-family: 'Lato', sans-serif;
    background-color: white;
    color: black;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Widget Specific Styles */
.widget-body {
    margin: 0;
    padding: 0;
}

.price-box {
    background-color: white;
    border: 1px solid #cd8805;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.region {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #cd8805;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0.5rem 0;
    line-height: 1.2;
}

.unit {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.2;
}

.trend-indicator {
    font-size: 1.2rem;
    margin: 0.25rem 0;
    display: inline-block;
    line-height: 1;
}

.trend-value {
    font-size: 0.8rem;
    margin-left: 0.2rem;
}

.trend-up {
    color: #dc3545;
    animation: pulse 1s ease-in-out infinite;
}

.trend-down {
    color: #198754;
    animation: pulse 1s ease-in-out infinite;
}

.trend-stable {
    color: #6c757d;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Average Prices Styles */
.averages {
    margin-top: 0.5rem;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    font-size: 0.9rem;
}

.average-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.2rem 0;
    line-height: 1.2;
}

.average-label {
    color: #666;
}

.average-value {
    font-weight: bold;
}

/* Error message */
.error-message {
    text-align: center;
    color: #dc3545;
    padding: 0.5rem;
    border: 1px solid #dc3545;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Container adjustments */
.container-fluid {
    padding: 0.5rem !important;
    height: 100%;
}

.row {
    margin: 0 !important;
}

.col {
    padding: 0.5rem !important;
}

/* Chart Container Styles */
.chart-container {
    background-color: white;
    border: 1px solid #cd8805;
    border-radius: 8px;
    padding: 1rem;
    height: calc(100% - 1rem);
    display: flex;
    flex-direction: column;
}

#priceChart {
    flex: 1;
    min-height: 0;
    max-height: 65vh;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.region-btn {
    border-color: #cd8805 !important;
    color: #cd8805 !important;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: white !important;
}

.region-btn:hover,
.region-btn:focus,
.region-btn.active {
    background-color: #cd8805 !important;
    border-color: #cd8805 !important;
    color: white !important;
    box-shadow: none !important;
}

.btn-outline-primary.region-btn {
    border-color: #cd8805 !important;
    color: #cd8805 !important;
}

.btn-outline-primary.region-btn:hover,
.btn-outline-primary.region-btn:focus,
.btn-outline-primary.region-btn.active {
    background-color: #cd8805 !important;
    border-color: #cd8805 !important;
    color: white !important;
}