/* Icon System */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-primary); /* Use text-primary color by default */
    vertical-align: middle;
}

.icon svg {
    width: 100%;
    height: 100%;
}

/* Ensure SVGs inherit the color of their parent */
.icon svg * {
    stroke: currentColor;
}

/* Icon sizes */
.icon--sm {
    width: 16px;
    height: 16px;
}

.icon--md {
    width: 24px;
    height: 24px;
}

.icon--lg {
    width: 32px;
    height: 32px;
}

/* Note: We have removed all background-image properties and are using SVGs directly */

/* Add more icons as needed */
.icon--loader {
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
