/**
 * Icon Styles
 * 
 * Styles for icons in charts and tables
 */

.bhi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

/* Size variants */
.bhi-icon-small {
    font-size: 14px;
    width: 16px;
    height: 16px;
}

.bhi-icon-normal {
    font-size: 16px;
    width: 20px;
    height: 20px;
}

.bhi-icon-large {
    font-size: 24px;
    width: 28px;
    height: 28px;
}

.bhi-icon-xlarge {
    font-size: 32px;
    width: 36px;
    height: 36px;
}

/* Dashicons */
.bhi-icon-dashicon .dashicons {
    width: 1em;
    height: 1em;
    font-size: inherit;
    line-height: inherit;
}

/* Font Awesome */
.bhi-icon-fontawesome i {
    font-size: inherit;
    line-height: inherit;
}

/* Emoji */
.bhi-icon-emoji {
    font-size: inherit;
    line-height: 1;
    display: inline-block;
}

/* SVG */
.bhi-icon-svg svg {
    width: 1em;
    height: 1em;
    display: block;
}

.bhi-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Image icons */
.bhi-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Table cell icons */
.bhi-table-cell-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bhi-table-cell-icon .bhi-icon {
    flex-shrink: 0;
}

.bhi-table-cell-icon-text {
    flex: 1;
}

/* Chart legend icons */
.bhi-chart-legend-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.bhi-chart-legend-icon .bhi-icon {
    flex-shrink: 0;
}

/* Flag icons */
.bhi-icon-flag {
    font-size: 1.2em;
    line-height: 1;
}

/* Icon in tooltip */
.bhi-tooltip-icon {
    margin-right: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .bhi-icon-normal {
        font-size: 14px;
        width: 18px;
        height: 18px;
    }
    
    .bhi-icon-large {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
}
