/* ===== PREMIUM ICONS CSS ===== */

/* Icon Container */
.premium-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Icon Wrapper with hover effects */
.icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.icon-wrapper:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.icon-wrapper:hover::after {
    opacity: 1;
}

/* Sidebar Icons */
.sidebar-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Nav item icon integration */
.nav-item .nav-icon {
    width: 28px;
    height: 28px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.1);
    padding: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    background: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.nav-item.active .nav-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}

/* Stat card icons */
.stat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

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

/* Object card icons */
.object-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

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

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

.icon-sm {
    width: 20px;
    height: 20px;
}

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

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

.icon-xl {
    width: 48px;
    height: 48px;
}

.icon-2xl {
    width: 64px;
    height: 64px;
}

/* Animated icon glow */
.icon-glow {
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.6));
    }
}

/* Icon pulse animation */
.icon-pulse svg {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Icon spin for loading */
.icon-spin svg {
    animation: iconSpin 1s linear infinite;
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Icon gradient text colors */
.icon-gradient-text {
    background: linear-gradient(135deg, #06B6D4, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mini icon badge */
.icon-badge {
    position: relative;
}

.icon-badge::after {
    content: attr(data-badge);
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: linear-gradient(135deg, #06B6D4, #8B5CF6);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status indicators on icons */
.icon-status {
    position: relative;
}

.icon-status::before {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--color-background);
}

.icon-status.online::before {
    background: #22C55E;
}

.icon-status.offline::before {
    background: #EF4444;
}

.icon-status.warning::before {
    background: #F59E0B;
}