/* Market Section Specific Styles */
.market-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 80px 0;
}

.market-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.crop-selector,
.state-selector {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    min-width: 200px;
}

.crop-selector:focus,
.state-selector:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.market-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.market-prices {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.market-prices h3 {
    margin-bottom: 25px;
    color: #2E7D32;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.market-prices h3::before {
    content: '\f3d5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 12px;
    color: #FFC107;
}

.price-table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.price-table th,
.price-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.price-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.price-table tr:hover {
    background-color: #f8f9fa;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-change {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.price-up {
    color: #4CAF50;
}

.price-down {
    color: #F44336;
}

.price-change::before {
    margin-right: 5px;
}

.price-up::before {
    content: '\f0d8';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.price-down::before {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.market-chart {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.market-chart h3 {
    margin-bottom: 25px;
    color: #2E7D32;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.market-chart h3::before {
    content: '\f201';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 12px;
    color: #FFC107;
}

.chart-container {
    height: 350px;
    margin-top: 20px;
    position: relative;
}

.market-prediction {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.market-prediction h3 {
    margin-bottom: 25px;
    color: #2E7D32;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.market-prediction h3::before {
    content: '\f0e0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 12px;
    color: #FFC107;
}

.prediction-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.prediction-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.prediction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.prediction-card h4 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prediction-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 10px;
}

.prediction-confidence {
    color: #777;
    font-size: 0.9rem;
}

.prediction-confidence span {
    font-weight: 600;
    color: #FFC107;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2E7D32;
}

.stat-label {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}

.market-trends {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.market-trends h3 {
    margin-bottom: 25px;
    color: #2E7D32;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.market-trends h3::before {
    content: '\f062';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 12px;
    color: #FFC107;
}

.trend-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.trend-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.trend-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.trend-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: #2E7D32;
}

.trend-content h4 {
    margin-bottom: 5px;
    color: #333;
}

.trend-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .market-container {
        grid-template-columns: 1fr;
    }
    
    .prediction-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .market-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .market-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .crop-selector,
    .state-selector {
        min-width: auto;
    }
    
    .prediction-container {
        grid-template-columns: 1fr;
    }
    
    .trend-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .market-stats {
        grid-template-columns: 1fr;
    }
    
    .price-table {
        font-size: 0.9rem;
    }
    
    .price-table th,
    .price-table td {
        padding: 10px;
    }
}
/* Removed the empty .price-table rule */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.price-table th,
.price-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.price-table th {
    background: #f4f4f4;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.price-table tr:hover {
    background-color: #f8f9fa;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-change {
    font-weight: 600;
    display: flex;
    align-items: center;
}