* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    padding-top: 30px;
    padding-bottom: 50px;
}

.page-header {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.filters-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.filters-card .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.filters-card .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.filters-card .form-select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.btn-filter {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 6px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #c9a134 0%, #e8c738 100%);
    color: white;
}

.content-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.content-card h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #d4af37;
}

.price-table {
    overflow-x: auto;
}

.table {
    margin-top: 20px;
}

.table thead th {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px;
    text-align: center;
    white-space: nowrap;
}

.table tbody tr {
    transition: all 0.2s;
}

.table tbody tr:hover {
    background-color: #fff8e1;
    transform: scale(1.01);
}

.table td {
    padding: 12px;
    vertical-align: middle;
    text-align: center;
}

.price {
    font-weight: 600;
    font-size: 1.05rem;
}

.price.buy {
    color: #2e7d32;
}

.price.sell {
    color: #c9302c;
}

.badge-vendor {
    font-size: 0.9rem;
    padding: 6px 12px;
    font-weight: 600;
}

.chart-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.chart-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.chart-title .location-tag {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 10px;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-data-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-data-text {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header .subtitle {
        font-size: 0.95rem;
    }

    .content-card {
        padding: 20px;
    }

    .table {
        font-size: 0.9rem;
    }

    .table td,
    .table th {
        padding: 8px 4px;
    }

    .chart-wrapper {
        height: 300px;
    }
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.spinner-overlay.active {
    display: flex;
}
