/* Bootstrap Icons v1.11.3 - Extended Utilities */

/* Icon Size Utilities */
.icon-xs {
    font-size: 0.75rem;
    line-height: 0.75rem;
}

.icon-sm {
    font-size: 0.875rem;
    line-height: 0.875rem;
}

.icon-md {
    font-size: 1rem;
    line-height: 1rem;
}

.icon-lg {
    font-size: 1.25rem;
    line-height: 1.25rem;
}

.icon-xl {
    font-size: 1.5rem;
    line-height: 1.5rem;
}

.icon-2xl {
    font-size: 2rem;
    line-height: 2rem;
}

.icon-3xl {
    font-size: 2.5rem;
    line-height: 2.5rem;
}

.icon-4xl {
    font-size: 3rem;
    line-height: 3rem;
}

/* Icon Spacing Utilities */
.icon-left {
    margin-right: 0.5rem;
}

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

.icon-mx-1 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

.icon-mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* Icon Color Utilities */
.icon-primary {
    color: #667eea;
}

.icon-secondary {
    color: #764ba2;
}

.icon-navy {
    color: #2c3e50;
}

.icon-white {
    color: #ffffff;
}

.icon-success {
    color: #198754;
}

.icon-warning {
    color: #ffc107;
}

.icon-danger {
    color: #dc3545;
}

.icon-info {
    color: #0dcaf0;
}

.icon-whatsapp {
    color: #128c7e;
}

/* Icon Alignment Utilities */
.icon-align-top {
    vertical-align: top;
}

.icon-align-middle {
    vertical-align: middle;
}

.icon-align-bottom {
    vertical-align: bottom;
}

.icon-align-text-bottom {
    vertical-align: text-bottom;
}

.icon-align-text-top {
    vertical-align: text-top;
}

/* Icon Rotation Utilities */
.icon-rotate-90 {
    transform: rotate(90deg);
    display: inline-block;
}

.icon-rotate-180 {
    transform: rotate(180deg);
    display: inline-block;
}

.icon-rotate-270 {
    transform: rotate(270deg);
    display: inline-block;
}

.icon-flip-horizontal {
    transform: scaleX(-1);
    display: inline-block;
}

.icon-flip-vertical {
    transform: scaleY(-1);
    display: inline-block;
}

/* Icon Animation Utilities */
.icon-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

.icon-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Interactive Icon States */
.icon-hover-scale:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.icon-hover-bounce {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-hover-bounce:hover {
    transform: scale(1.1) translateY(-2px);
}

.icon-hover-color:hover {
    color: #667eea;
    transition: color 0.3s ease;
}

/* Icon Button Styles */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: inherit;
}

.icon-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.icon-button.primary {
    color: #667eea;
}

.icon-button.primary:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

.icon-button.danger {
    color: #dc3545;
}

.icon-button.danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.icon-button.success {
    color: #198754;
}

.icon-button.success:hover {
    background-color: rgba(25, 135, 84, 0.1);
}

/* Icon Badge */
.icon-badge {
    position: relative;
    display: inline-block;
}

.icon-badge::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    background-color: #dc3545;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon in Text */
.text-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Icon Sizes */
@media (max-width: 768px) {
    .icon-responsive-sm {
        font-size: 0.75rem;
    }

    .icon-responsive-md {
        font-size: 1rem;
    }

    .icon-responsive-lg {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .icon-responsive-sm {
        font-size: 0.65rem;
    }

    .icon-responsive-md {
        font-size: 0.875rem;
    }

    .icon-responsive-lg {
        font-size: 1rem;
    }
}
