/* Icon Fixes for Notus Tailwind JS */

/* Ensure SVG icons display properly */
svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Fix for stroke-based icons that need to be converted to fill */
svg[fill="currentColor"] {
    fill: currentColor;
}

/* Ensure proper sizing for all icons */
.w-4, .w-5, .w-6, .w-8, .w-12, .w-16 {
    width: 1rem;
}

.h-4, .h-5, .h-6, .h-8, .h-12, .h-16 {
    height: 1rem;
}

.w-4, .h-4 { width: 1rem; height: 1rem; }
.w-5, .h-5 { width: 1.25rem; height: 1.25rem; }
.w-6, .h-6 { width: 1.5rem; height: 1.5rem; }
.w-8, .h-8 { width: 2rem; height: 2rem; }
.w-12, .h-12 { width: 3rem; height: 3rem; }
.w-16, .h-16 { width: 4rem; height: 4rem; }

/* Ensure icons are properly aligned in flex containers */
.flex svg {
    flex-shrink: 0;
}

/* Fix for icon containers */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure proper spacing around icons */
svg + span,
span + svg {
    margin-left: 0.5rem;
}

/* Fix for button icons */
button svg {
    pointer-events: none;
}

/* Ensure icons in buttons are properly sized */
.btn svg {
    width: 1em;
    height: 1em;
}

/* Notus specific icon fixes */
.notus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Fix for icon colors in different states */
.icon-primary {
    color: #3b82f6;
}

.icon-success {
    color: #10b981;
}

.icon-warning {
    color: #f59e0b;
}

.icon-danger {
    color: #ef4444;
}

.icon-gray {
    color: #6b7280;
}

/* Fix for icon animations */
.icon-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fix for icon hover effects */
.icon-hover:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

/* Fix for icon in cards */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Fix for icon in navigation */
.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
}

/* Fix for icon in forms */
.form-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Fix for icon in alerts */
.alert-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
}

/* Responsive icon sizing */
@media (max-width: 768px) {
    .w-8, .h-8 { width: 1.5rem; height: 1.5rem; }
    .w-12, .h-12 { width: 2rem; height: 2rem; }
    .w-16, .h-16 { width: 2.5rem; height: 2.5rem; }
}

/* Fix for icon accessibility */
.icon-accessible {
    aria-hidden: true;
}

/* Fix for icon loading states */
.icon-loading {
    opacity: 0.6;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
} 