/* Agriculture Page - Advanced Features Styles */

/* Reuse stats dashboard from education-advanced.css */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-card {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Crop Calendar */
.crop-calendar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.crop-calendar h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.calendar-item {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.calendar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.crop-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.crop-timing {
    margin: 10px 0;
    color: #666;
}

.timing-label {
    font-weight: 600;
    color: #4caf50;
}

/* Market Price Tracker */
.price-tracker {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.price-tracker h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.price-card {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #ffc107;
    transition: transform 0.3s;
}

.price-card:hover {
    transform: scale(1.05);
}

.price-crop {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.price-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f57c00;
    margin: 10px 0;
}

.price-unit {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.price-trend {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
}

.trend-up {
    background: #c8e6c9;
    color: #2e7d32;
}

.trend-down {
    background: #ffcdd2;
    color: #c62828;
}

.trend-neutral {
    background: #e0e0e0;
    color: #666;
}

.price-note {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 20px;
    font-style: italic;
}

/* Scheme Calculator - Reuse from education */
.calculator-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 40px 0;
}

.calculator-card h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.calculator-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4caf50;
}

.btn-primary {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: #ff9800;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #f57c00;
}

.result-box {
    margin-top: 25px;
    padding: 25px;
    border-radius: 12px;
    animation: fadeIn 0.5s;
}

.result-positive {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
}

.result-positive h4 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.result-positive ul {
    list-style: none;
    padding-left: 0;
}

.result-positive li {
    padding: 10px 0;
    border-bottom: 1px solid #c8e6c9;
}

.result-negative {
    background: #ffebee;
    border-left: 5px solid #f44336;
}

.result-negative h4 {
    color: #c62828;
    margin-bottom: 10px;
}

/* FPO Section */
.fpo-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.fpo-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.fpo-info {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    justify-content: center;
}

.fpo-stat {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    min-width: 150px;
}

.fpo-stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4caf50;
}

.fpo-stat-label {
    color: #666;
    margin-top: 5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #ff9800;
}

.product-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f57c00;
}

.fpo-contact {
    margin-top: 25px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 10px;
}

.fpo-contact h4 {
    color: #1976d2;
    margin-bottom: 10px;
}

.fpo-contact p {
    margin: 5px 0;
    color: #333;
}

/* Success Stories */
.success-stories {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.success-stories h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.story-card {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.story-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.story-card h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.story-type {
    color: #7b1fa2;
    font-weight: 600;
    margin-bottom: 15px;
}

.story-achievement {
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

/* Charts */
.chart-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid,
    .price-grid,
    .product-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .fpo-info {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .stats-dashboard {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}