/* Equal Height Cards for Latest Lottery Results and Data Analytics Preview */

/* Force equal height for both cards in the row */
.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-row > .col-lg-6 {
    display: flex;
    flex-direction: column;
}

.equal-height-row .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.equal-height-row .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Latest Lottery Results card - compact to fit exactly 6 lottery types */
@media (min-width: 992px) {
    .equal-height-row .col-lg-6:first-child .card {
        min-height: 395px;
        max-height: 395px;
    }
    
    .equal-height-row .card-body.results-body {
        max-height: 345px;
        overflow: hidden;
    }
}

/* Data Analytics card - optimized for its content */
.data-analytics-preview {
    height: auto !important;
    min-height: 520px !important;
    max-height: none !important;
}

.data-analytics-preview .card-body {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 12px !important;
}

/* Adjust chart containers for optimal analytics display */
.data-analytics-preview .chart-card {
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
    overflow: visible !important;
}

.data-analytics-preview .hot-cold-container {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    overflow: visible !important;
}

.data-analytics-preview .bar-chart-container {
    height: 270px !important;
    max-height: 270px !important;
}

.data-analytics-preview .bar-chart-container svg {
    height: 250px !important;
    max-height: 250px !important;
}