/* Mobile-specific chart styling to ensure proper card heights */

/* Make the main Data Analytics Preview container taller on mobile to show both cards */
@media (max-width: 767px) {
    /* This is the main container that holds both Most Frequent Numbers and AI Prediction cards */
    .data-analytics-preview {
        height: 750px !important; /* Increased from 570px to show both cards */
        overflow: visible !important;
    }
    
    /* Reset individual chart containers to normal sizes */
    .chart-container-mobile,
    .bar-chart-container {
        min-height: 180px !important;
        height: auto !important;
    }
    
    /* Keep chart cards at reasonable sizes */
    .chart-card {
        height: 350px !important; /* Keep original size */
        margin-bottom: 1rem !important;
    }
    
    /* AI predictions container should be compact and fully visible */
    .ai-predictions-container {
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }
    
    /* Make AI predictions more compact on mobile */
    .mobile-prediction-item {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .mobile-prediction-item .numbers-container {
        margin-top: 4px !important;
    }
    
    /* Reduce spacing in AI predictions header */
    .mobile-prediction-item .d-flex.justify-content-between {
        margin-bottom: 6px !important;
    }
    
    /* Fix AI prediction ball shapes - make perfectly circular */
    .mobile-prediction-item .lottery-number {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        border-radius: 50% !important;
        font-size: 13px !important;
        line-height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 2px 1px !important;
    }
    
    /* Make bonus balls same size as main balls */
    .mobile-prediction-item .bonus-number {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        border-radius: 50% !important;
        font-size: 13px !important;
        line-height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 2px 1px !important;
    }
}

/* Very small mobile devices - even taller container */
@media (max-width: 480px) {
    .data-analytics-preview {
        height: 800px !important; /* Even more space for very small screens */
    }
    
    .chart-container-mobile,
    .bar-chart-container {
        min-height: 160px !important;
    }
    
    .mobile-prediction-item {
        padding: 6px !important;
        margin-bottom: 6px !important;
    }
    
    /* Ensure balls stay circular on very small screens */
    .mobile-prediction-item .lottery-number,
    .mobile-prediction-item .bonus-number {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
        font-size: 12px !important;
        line-height: 30px !important;
    }
}