/* Cache Clear Tool Styles */

#cache-clear-icon {
    transition: all 0.2s ease-in-out;
}

#cache-clear-icon:hover {
    transform: scale(1.05);
}

#cache-clear-icon:active {
    transform: scale(0.95);
}

#cache-clear-icon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#cache-clear-icon svg {
    transition: transform 0.2s ease-in-out;
}

#cache-clear-icon:hover svg {
    transform: rotate(180deg);
}

/* Loading animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Custom notification styles */
.cache-clear-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark mode support */
.dark #cache-clear-icon {
    color: #9CA3AF;
}

.dark #cache-clear-icon:hover {
    background-color: #374151;
    color: #F3F4F6;
}

/* Focus styles for accessibility */
#cache-clear-icon:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #cache-clear-icon {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
}

/* Ensure button aligns properly with other header buttons */
#cache-clear-icon {
    flex-shrink: 0;
}

