/* ==============================================================================
   REPLACEABLE ICON SYSTEM STYLESHEET
   ==============================================================================
   This CSS ensures consistent sizing, vertical alignment, and spacing for all icons
  whether they are rendered as inline SVG or image files. */

.app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    line-height: 1;
    vertical-align: -0.15em;
    font-style: normal;
    font-size: 1.15em;
    user-select: none;
    flex-shrink: 0;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

/* Vector SVG icon scaling inside the container */
.app-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.app-icon.icon-logout svg {
    fill: none;
}

/* SVG image scaling inside the container */
.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Size utility variants */
.app-icon.icon-xs {
    font-size: 0.75rem;
    width: 0.875rem;
    height: 0.875rem;
}

.app-icon.icon-sm {
    font-size: 0.875rem;
    width: 1rem;
    height: 1rem;
}

.app-icon.icon-md {
    font-size: 1.15rem;
    width: 1.25rem;
    height: 1.25rem;
}

.app-icon.icon-lg {
    font-size: 1.5rem;
    width: 1.75rem;
    height: 1.75rem;
}

.app-icon.icon-xl {
    font-size: 2.25rem;
    width: 2.5rem;
    height: 2.5rem;
}

/* Spacing helpers for buttons and text labels */
.icon-start {
    margin-right: 0.5rem;
}

.icon-end {
    margin-left: 0.5rem;
}
