/* Crops Management Page Styles */

.crops-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.crops-header {
    text-align: center;
    margin-bottom: 3rem;
}

.crops-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.crops-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.crops-dashboard {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    overflow: hidden;
}

.dashboard-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.tab-button {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    color: #27ae60;
    background: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #27ae60;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.crop-lifecycle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lifecycle-stage {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border: 2px solid #d4edda;
    transition: all 0.3s ease;
    position: relative;
}

.lifecycle-stage.current {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    transform: scale(1.05);
}

.lifecycle-stage .stage-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.lifecycle-stage.current .stage-icon {
    animation: pulse 2s infinite;
}

.lifecycle-stage h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.lifecycle-stage p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.recommendation-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #27ae60;
}

.recommendation-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.recommendation-card h3 i {
    margin-right: 0.5rem;
    color: #27ae60;
}

.recommendation-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.recommendation-priority {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-high {
    background: #fee;
    color: #e74c3c;
}

.priority-medium {
    background: #fff4e6;
    color: #f39c12;
}

.priority-low {
    background: #e8f5e8;
    color: #27ae60;
}

/* Current Crops Section */
.current-crops {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.crops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center; /* Center align the crop cards */
}

/* Crop Calendar Section */
.crop-calendar-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.calendar-container {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.current-month-year {
    text-align: center;
}

.current-month-year h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.current-month-year span {
    font-size: 1.2rem;
    opacity: 0.9;
}

.calendar-wrapper {
    padding: 0;
}

.calendar-grid {
    background: var(--bg-white);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.day-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 80px;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    background: var(--bg-white);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.calendar-day:hover {
    background: #f0f8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-day.prev-month,
.calendar-day.next-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.calendar-day.today .date {
    color: white;
    font-weight: 700;
}

.calendar-day .date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.today-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.calendar-day.has-activity {
    background: #f0f8f0;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    bottom: 8px;
    left: 8px;
}

.activity-dot.wheat-activity {
    background: #f39c12;
}

.activity-dot.rice-activity {
    background: #27ae60;
}

.activity-dot.sugarcane-activity {
    background: #8e44ad;
}

.activity-dot.general-activity {
    background: #3498db;
}

.calendar-day.multiple-activities .activity-dot:first-of-type {
    left: 8px;
}

.calendar-day.multiple-activities .activity-dot:nth-of-type(2) {
    left: 20px;
}

.activity-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    min-width: 200px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.activity-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-dark);
}

.calendar-day:hover .activity-tooltip {
    opacity: 1;
    visibility: visible;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    font-size: 1rem;
}

.activity-text {
    flex: 1;
    font-weight: 500;
}

.activity-time {
    font-size: 0.75rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.calendar-legend {
    padding: 2rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.calendar-legend h4 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-weight: 600;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Crop Card Styling */
.crop-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 450px;
    margin: 0 auto; /* Center align individual cards */
}

.crop-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.crop-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.crop-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.crop-icon.wheat {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.crop-icon.rice {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.crop-icon.sugarcane {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.crop-info {
    flex: 1;
}

.crop-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.crop-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.crop-status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crop-status.excellent {
    background: #d4edda;
    color: #155724;
}

.crop-status.good {
    background: #fff3cd;
    color: #856404;
}

.crop-status.attention {
    background: #f8d7da;
    color: #721c24;
}

.crop-progress {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.crop-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    width: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.crop-alerts {
    margin-bottom: 1.5rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.alert.urgent {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert.medium {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert i {
    flex-shrink: 0;
}

.crop-actions {
    display: flex;
    gap: 0.75rem;
}

.crop-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

/* Crop Health Monitoring Section */
.crop-health-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), 
                url('../images/crop-health-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.crop-health-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23FF9800" fill-opacity="0.05" d="M0,160L48,138.7C96,117,192,75,288,64C384,53,480,75,576,106.7C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: 0;
}

.section-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--theme-crops);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--theme-crops);
    border-radius: 2px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
}

.health-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin: 3rem auto;
    max-width: 1200px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.health-tool-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border-top: 5px solid transparent;
}

.health-tool-card.photo-diagnosis {
    border-top-color: #FF9800;
}

.health-tool-card.satellite-monitoring {
    border-top-color: #2196F3;
}

.health-tool-card.sensor-integration {
    border-top-color: #9C27B0;
}

.health-tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    margin: 2rem auto 1.5rem;
    display: flex;
    justify-content: center;
    position: relative;
}

.icon-background {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.icon-background::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.2);
    z-index: -1;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.photo-diagnosis .icon-background {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3);
}

.satellite-monitoring .icon-background {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
}

.sensor-integration .icon-background {
    background: linear-gradient(135deg, #9C27B0, #6A1B9A);
    box-shadow: 0 10px 20px rgba(156, 39, 176, 0.3);
}

.tool-content {
    text-align: center;
    padding: 0 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-content h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.photo-diagnosis .tool-content h3 {
    color: #FF9800;
}

.satellite-monitoring .tool-content h3 {
    color: #2196F3;
}

.sensor-integration .tool-content h3 {
    color: #9C27B0;
}

.tool-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.tool-features {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.feature-tag {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.photo-diagnosis .feature-tag {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.satellite-monitoring .feature-tag {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.sensor-integration .feature-tag {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
    border: 1px solid rgba(156, 39, 176, 0.2);
}

.tool-btn {
    margin-top: auto;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 85%;
    align-self: center;
    transition: all 0.3s ease;
}

.photo-diagnosis .tool-btn {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    border: none;
    box-shadow: 0 8px 15px rgba(255, 152, 0, 0.3);
}

.photo-diagnosis .tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 152, 0, 0.4);
}

.satellite-monitoring .tool-btn {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
    color: white;
    border: none;
    box-shadow: 0 8px 15px rgba(33, 150, 243, 0.3);
}

.satellite-monitoring .tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(33, 150, 243, 0.4);
}

.sensor-integration .tool-btn {
    background: transparent;
    color: #9C27B0;
    border: 2px solid #9C27B0;
}

.sensor-integration .tool-btn:hover {
    background: rgba(156, 39, 176, 0.1);
    transform: translateY(-3px);
}

/* Health Reports Section */
.health-reports-section {
    max-width: 1200px;
    margin: 3rem auto;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.reports-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.health-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.health-report-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    height: 100%;
}

.health-report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.crop-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.crop-details h4 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.field-size {
    font-size: 0.9rem;
    color: #666;
}

.report-date {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.health-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.health-status-badge.excellent {
    background: #d4edda;
    color: #155724;
}

.health-status-badge.good {
    background: #fff3cd;
    color: #856404;
}

.health-status-badge.attention {
    background: #f8d7da;
    color: #721c24;
}

.health-metrics {
    margin-bottom: 1.5rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
}

.metric-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.metric-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.metric-value .value {
    font-weight: 600;
}

.metric-value .rating {
    font-size: 0.8rem;
    opacity: 0.8;
}

.risk-indicator {
    width: 40px;
    height: 8px;
    border-radius: 4px;
}

.risk-indicator.low {
    background: #27ae60;
}

.risk-indicator.medium {
    background: #f39c12;
}

.risk-indicator.high {
    background: #e74c3c;
}

.stress-bar {
    width: 60px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.stress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #27ae60, #f39c12, #e74c3c);
}

.alert-message {
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-message.urgent {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.report-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary-small, .btn-outline-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* Additional Interactive Elements */
.health-report-card.selected {
    border-color: #27ae60;
    box-shadow: 0 16px 48px rgba(39, 174, 96, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.metric-item {
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.25rem 0;
}

.health-tool-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Enhanced Animation Keyframes */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Loading States */
.tool-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tool-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Hover Effects */
.health-tool-card:hover .icon-background {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
}

.health-tool-card:hover .feature-tag {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .crops-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .calendar-controls {
        padding: 1rem;
    }
    
    .current-month-year h3 {
        font-size: 1.5rem;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.5rem;
    }
    
    .day-header {
        padding: 0.75rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .legend-items {
        justify-content: center;
    }
    
    .activity-tooltip {
        min-width: 180px;
        font-size: 0.8rem;
    }
    
    .crop-card {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .crop-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .crop-actions {
        flex-direction: column;
    }
    
    .crop-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .health-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .health-reports-grid {
        grid-template-columns: 1fr;
    }
    
    .crop-health-section {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}
